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: 
Not applicable

Nested IF statement List Box

Hi All,

I have situation where I've a if statement which isn't filtering out the right way. It shows Small when it should be showing Middle and Middle when it should be showing Large.

<= 500 Small

<=12000 Middle

else Large

Please provide insights!!!!!!!!!

Thanks,

Capture.PNG

Labels (1)
19 Replies
sunny_talwar
MVP
MVP

Try this may be:

=If(RangeAvg(Sum(SepRound),Sum(OctRound),Sum(NovRound),Sum(DecRound),Sum(JanRound),Sum(FebRound)) <= 500, 'Small',

If(RangeAvg(Sum(SepRound),Sum(OctRound),Sum(NovRound),Sum(DecRound),Sum(JanRound),Sum(FebRound)) <= 12000, 'Middle', 'Large'))


Capture.PNG

sunny_talwar
MVP
MVP

Your application attached with the correct expression for the Categories 661 list box also

Capture.PNG

MK_QSL
MVP
MVP

may be try this..

MK_QSL
MVP
MVP

Middle may be 661 and not 668. May be I could be wrong..

sunny_talwar
MVP
MVP

Seems like the number keeps on getting changed everytime

sunny_talwar
MVP
MVP

Got it, it seems to be driven by an expression I get 661 still. Is 661 for Middle incorrect?

MK_QSL
MVP
MVP

661 should be correct as per my view. Have you consider Customer as well in listbox aggr?

sunny_talwar
MVP
MVP

I did not, but I think I should because that is one of the dimensions on the chart, right?

sunny_talwar
MVP
MVP

I guess if Internal ID is unique, we might not need customer.

Not applicable
Author

Thanks for all your help guys, remarkable teamwork!!!!!