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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

set analysis syntax errore

Hi,

am getting  syntax   errore  to find max month year sales and max month year -1 sales

1 Solution

Accepted Solutions
sunny_talwar

Try this expression for max may be:

Max Month

=Sum({$<[Month Year]= {"$(=max([Month Year]))"}>}Sales)

Max Month - 1

=Sum({$<[Month Year]= {"$(=Max(AddMonths([Month Year], -1)))"}>}Sales)

View solution in original post

1 Reply
sunny_talwar

Try this expression for max may be:

Max Month

=Sum({$<[Month Year]= {"$(=max([Month Year]))"}>}Sales)

Max Month - 1

=Sum({$<[Month Year]= {"$(=Max(AddMonths([Month Year], -1)))"}>}Sales)