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: 
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)