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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
alec1982
Specialist II
Specialist II

Using of IF with a selection in a field

Hi.

I am trying to build an if statement as follow:

= if(sum(if([Status]<>'Completed',[Sales]) >= 10), '..\images\sm_red_traffic_light.png',

    if(sum(if([Status]<>'Completed',[Sales]) <=5 ) & sum(if([Status]<>'Completed',[Sales]) >10 ), '..\images\sm_amber_traffic_light.png',

     if(sum(if([Status]<>'Completed',[Sales]) < 5), '..\images\sm_red_traffic_light.png')))

if the sum of sales is more than 10 while the status is completed then show the first image.

if the sum of sales is more than 5 and less then 10 while the status is completed then show the second image.

if the sum of sales is less than 10 while the status is completed then show the third image.

Not sure why it is not showing the right data.

Thxs,

1 Solution

Accepted Solutions
chematos
Specialist II
Specialist II

Try and instead &

View solution in original post

2 Replies
chematos
Specialist II
Specialist II

Try and instead &

alec1982
Specialist II
Specialist II
Author

Worked perfectly!

Thxs,