Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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.