Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Keeping address in one column

hi all,

Please find my attached data.xls.

in that i have data like this

real.png

but i need to combine all this in one column. i need to create a column called 'Address' and in that

the value should be

Address

100 SEMI STREET

SYDNEY

NSW 6000

LONDON



any idea to achieve this please share.


thanks

1 Solution

Accepted Solutions
Not applicable
Author

It's a bit tricky, you can use the solution from

and than inside the straight table you select in the preference->presentation->wrap cell text to be 4

Untitled.png

View solution in original post

10 Replies
Not applicable
Author

Hi,

Try with this script

LOAD NAME,

     [INVESTOR INDICATOR],

     TFN,

     ABN,

     TYPE,

     ADD0,

     ADD1,

     ADD2,

     ADD3,

     ADD0 &' '& ADD1 &' '& ADD2 &' '& ADD3 as Address,

     [INVESTMENT REF],

     CCY,

     DATE,

     [GROSS AMT],

     [TFN AMT],

     [NON RES]

FROM

C:\Users\Desktop\DATA.txt

(txt, codepage is 1252, embedded labels, delimiter is ',', msq);

P.S. are you in Sydney?

trey_bayne
Partner - Creator
Partner - Creator

Try this:

Load

     ADD0&' '&ADD1&' '&ADD2&' '&ADD3 as Address,

     *

From DATA.txt;

The &' '& between the fields concatenates the values.

Not applicable
Author

hi

thnx for your kind reply,

thts fine but i need the address in down down not in one line

thnaks

Not applicable
Author

use chr(10) in the concatenation.

like this

ADD0 & chr(10) & ADD1 & chr(10) & ADD2 & chr(10) & ADD3 as ADDRESS

Not applicable
Author

If you are using it in a text box you can write something like this:

=ADD0 &'

' & ADD1 &'

'& ADD2 &'

'& ADD3

going in the above line after the &'

Not applicable
Author

@Filippo, I am in Sydney today and tomorrow.

Not applicable
Author

hi Ram & Filippo,

i need to achieve this in back end itself means in 'Edit Script'

any idea.

thanks:)

Not applicable
Author

hi filippo,

is it possible to do it in straight table instead of text box.... i tried n straight table i didnt get it . any idea

thnx:)

Not applicable
Author

It's a bit tricky, you can use the solution from

and than inside the straight table you select in the preference->presentation->wrap cell text to be 4

Untitled.png