Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
hucand
Contributor II
Contributor II

Get all YearMonths before current YearMonth

I'm attempting to use

=[date.autoCalendar.YearMonth]

as an expression to group sales by YearMonth.

How would I get all entries before the current month?

Thank you

Labels (1)
1 Solution

Accepted Solutions
sidhiq91
Specialist II
Specialist II

@hucand  Could you please try something like a below expression in your chart.

Sum({<[date.autoCalendar.YearMonth]={"<$(=Max([date.autoCalendar.YearMonth]))"}>}SalesAmount)

If this resolves your issue, please like and accept it as a solution.

View solution in original post

1 Reply
sidhiq91
Specialist II
Specialist II

@hucand  Could you please try something like a below expression in your chart.

Sum({<[date.autoCalendar.YearMonth]={"<$(=Max([date.autoCalendar.YearMonth]))"}>}SalesAmount)

If this resolves your issue, please like and accept it as a solution.