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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Simple If condition in set analysis

Hi All,

I am trying use below expression to derive sales for different vehicles:

IF(vSelectedVehicle = 'MF','SUM({<vehicle={'MFV}>}sales')','SUM({<vehicle={'MAV'}>}sales)').

It is not computing the value. QVW has been attached

Thanks

Dasu.G

Labels (1)
2 Replies
alexandros17
Partner - Champion III
Partner - Champion III

this is the correct expression

=IF(vSelectedVehicle = 'MF',SUM({<vehicle={'MFV'}>}sales),SUM({<vehicle={'MAV'}>}sales))

jagan
Partner - Champion III
Partner - Champion III

Hi,

Please find attached file for solution, for Actions -> Set Variable -> MF/MA

You should not give 'MF' or 'MA' with single quotes.

Hope this helps you.

Regards,

Jagan.