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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Neha121
Contributor III
Contributor III

Using variable with if condition in textandImage chart

Hi All,

     I am using some variables in the text and Image chart function as below. the first one is working fine as its a measure however the second variable has if condition that returns text. How do I use this variable so that the return value of vL_phy_avg is available in the text. I want $66.81 instead of 0. 

I have one more variable  var1= IF(F1>F2,"greater","less") want to incorporate this variable in the text.

 

 

 

Neha121_0-1722491812999.png

 

1 Solution

Accepted Solutions
Neha121
Contributor III
Contributor III
Author

ended up doing like this

 

Neha121_0-1722575335612.png

 

View solution in original post

4 Replies
mpc
Partner Ambassador
Partner Ambassador

Hi, 

Maye by forcing the calculation result using $(=vMyVar) ? 

Kind regards

mpc
Neha121
Contributor III
Contributor III
Author

doesnt work

anat
Master
Master

You should have aggregate function to display CRA_Average.

Try like num(only(CRA_Average), '$0') 

Neha121
Contributor III
Contributor III
Author

ended up doing like this

 

Neha121_0-1722575335612.png