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

Set Analysis Expression Not Working

What is wrong with my expressions?

why does it show total sales for the entire model?

I can use YearMonth for the Max Month, and it works fine, but I can't for the Prev Month Expression, because it is looking for last year and my model is only for a single year.

What can I do??

MAX MONTH

sum({$<Month={$(=Max(Month))},

Year,

Quarter,

Month>}Sales)

PREVIOUS MONTH


sum({$<Month={$(=Max(Month)-1)},

Year,

Quarter,

Month>}Sales)

Labels (1)
10 Replies
Not applicable
Author

Hi Chris, ¿did it work?