Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Always show last 12 month (Bar chart)

Hello,

I want to build a bar chart which always show the last 12 months (based in max(date)).

My real doubt is when i change the maxDate, the sort stay out of order. Even if i set a expression in sort tab:

Date#(date,'MMM-YYYY')

It stay in order without filter of data, filtering previous month, stay out of order. How to solve it?

Thanks

1 Reply
maxgro
MVP
MVP

hope to understand

you have a bar chart with month - year on x axis

maybe a calculated dimension =year(Date) & '-' & Month(Date)

try with sort by expression

max(Date)