Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Combine multiple variables into a single variable

Hi all,

I am having some troubles to combine multiple variables into one.

Recently, the way data is stored in our database has changed. What used to be stored as PROPERTY_DESCRIPTION it is now stored as LABEL. Both have a PROPERTY_VALUE allocated.

I am loading all the information correctly into my dashboard and I can present it with three columns where each PROPERTY_VALUE will have an allocated description looking like below (LOAD Statement and Table on Dashboard).

LOAD PROPERTY_NAME,

     PROPERTY_VALUE,

     LABEL

FROM

(qvd);

PROPERTY_DESCRIPTIONPROPERTY_VALUELABEL
PROPERTY_DESCRIPTION AVALUE A-
PROPERTY_DESCRIPTION BVALUE B-
-VALUE CLABEL C
-VALUE DLABEL D

Is there a possibility I can combine PROPERTY_DESCRIPTION and LABEL into a single variable, for example DESCRIPTION so it shows the table like the next one?

DESCRIPTIONPROPERTY_VALUE
PROPERTY_DESCRIPTION AVALUE A
PROPERTY_DESCRIPTION BVALUE B
LABEL CVALUE C
LABEL DVALUE D

Can anyone point me on the right direction?

Thank you.

1 Solution

Accepted Solutions
sunny_talwar

May be like this

LOAD If(Len(Trim(PROPERTY_NAME)) = 0, LABEL, PROPERTY_NAME) as PROPERTY_NAME,

     PROPERTY_VALUE

FROM

(qvd);

View solution in original post

2 Replies
sunny_talwar

May be like this

LOAD If(Len(Trim(PROPERTY_NAME)) = 0, LABEL, PROPERTY_NAME) as PROPERTY_NAME,

     PROPERTY_VALUE

FROM

(qvd);

Anonymous
Not applicable
Author

It has work perfectly.

Thank you very much for your help.