Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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)