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: 
Not applicable

last 10 months data dynamically on chart

Hi,

i want the last 10 months sales.dynamicaly for changing next month also it should be changes dynamically

let me know hoe proceed in set analysis.can i do with max(month) lik that or is there any option

2 Replies
aveeeeeee7en
Specialist III
Specialist III

Hi Mahesh

Try Something in your Expression:

Sum({1<Please Write Your Date Field Name Here = {">=$(=MonthStart(Max(Please Write Your Date Field Name Here), -10))<=$(=MonthEnd(Max(Please Write Your Date Field Name Here)))"}>}Please Write Your Field Name Here)

Hope this Helps You.

jagan
Luminary Alumni
Luminary Alumni

Hi Mahesh,

Try like this

=Sum({<YearDimensionName= , QuarterDimensionName=, MonthDimensionName=, Date={'>=$(=MonthStart(Today(), -10))<=$(=MonthEnd(Today()))'}>} Sales)

Replace YearDimensionName, QuarterDimensionName, MonthDimensionName with you Year, Quarter and Month dimension names respectively, this will ignore the selections in those columns so that you will get the last 10 month sales even you select any of this.

If you want to get the sales of last 10 months from selected Date/Other dimensions then replace Today() with Max(DateDimensionName)

Hope this helps you.

Regards,

Jagan.