Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Dharshini
Contributor
Contributor

Assign the column multiple values in the single variable

Hi All,

I have two columns column1 and column2 in the table. Based on the language selection AE and EN, I have to store the column1 or column2 values in the target variable.

In Variable, I have used the below condition to get the value in the variable.

Variable name: result

expression : if(wildmatch([language],'AE','EN"),[column1],[coumn2])

Dharshini_0-1639975322410.png

Then use the result variable in barchart and I got the below screenshot barchart instead of values in the column.

Dharshini_1-1639975661406.png

Expected Result:

Dharshini_2-1639975725893.png

 

 

1 Reply
anat
Master
Master

can u try using pick and match like

=pick(wildmatch(lng,'eng','tel'),sum(cost),sum(sal))