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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
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

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.