Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to combine 2 different fields to make them one dimension instead of two

How to combine 2 different fields to make them one dimension instead of two

4 Replies
datanibbler
Champion
Champion

Hi abdallah,

the easiest way would  be to concatenate them into one "compount_field" in a LOAD_statement, using the &

LOAD

   ...

   ([field1] & '|' & [field2]) as [new_dimension]

   ...

FROM

...

Of  course, you could do the same on the GUI.

HTH

Best regards,

DataNibbler

cspencer3
Creator II
Creator II

you could combine them in the load script as:

Load

Field1&Field2 as NewField

;

(You could also add a character separator if it would be more meaningful)

or you can use a calculated dimension and do the same thing as the load script, just use that syntax in your calculated dimension.

Not applicable
Author

thank you very much!

cspencer3
Creator II
Creator II

Delay between me typing and posting; DataNibbler beat me to it.