Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
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 - Specialist
Partner - Specialist

Hi, 

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

Kind regards

From Next Decision and mpc with love
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