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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need help in IF statement

Hi All,

I need a help from you. I have 4 images. 1.jpg,2.jpg,3.jpg,4.jpg

I have current week value, last week value and the budget value.

If the (current week value is > last week value ) and current week value is greater than budget value then 1.jpg

If the (current week value is > last week value ) and current week value is less than budget value then 2.jpg

If the (current week value is < last week value ) and current week value is greater than budget value then 3.jpg

If the (current week value is < last week value ) and current week value is less than budget value then 4.jpg

How can i do this in single IF statement?

Any help is appreciated.

Thanks,

Raghu.

Labels (1)
2 Replies
Anonymous
Not applicable
Author

did not test this but think it should be something like this:

if (current > last,

if(current > budget, 1.jpg, 2.jpg),

if(current > budget, 3.jpg, 4.jpg)

)

Anita

stephencredmond
Partner - Specialist II
Partner - Specialist II

Great QlikView! Minimize the number of entries.

Looking at things in a different way will often reveal a better approach to the one that we thought we needed to use.

Stephen