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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
AlejandroJuarez
Contributor III
Contributor III

if - chart function

Hello I need help with this table, I think it would be the function IF

stateprice total  
A0 if 'price total' = 0 and state A ( calcule 1)
B0 if 'price total' = 0 and state B ( calcule 2)
C0 if 'price total' = 0 and state C ( calcule 3)
D0 if 'price total' = 0 and state D ( calcule 4)

 

1 Solution

Accepted Solutions
MayilVahanan

Hi

Try like below

if('price total' = 0 ,

pick(Match(state, 'A', 'B', 'C', 'D'), Calc1, calc2, calc3, calc4))

https://help.qlik.com/en-US/sense/May2021/Subsystems/Hub/Content/Sense_Hub/Scripting/ConditionalFunc...

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

1 Reply
MayilVahanan

Hi

Try like below

if('price total' = 0 ,

pick(Match(state, 'A', 'B', 'C', 'D'), Calc1, calc2, calc3, calc4))

https://help.qlik.com/en-US/sense/May2021/Subsystems/Hub/Content/Sense_Hub/Scripting/ConditionalFunc...

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.