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

Chart - dimension show only last X months

Hi QV friends,

i have a chart with a "Year-Month" dimension,

i want to show only last x months,

how can i show only them on the chart?

definition example:

Year-month = 2014-Dec

1 Solution

Accepted Solutions
ecolomer
Master II
Master II

you need to convert to date format as 'YYYY-MMM' or 'YYYY-MM'

View solution in original post

7 Replies
mdmukramali
Specialist III
Specialist III

Dear ,

You can use Dimension Limit option to display only Last x Months.

else

Can you attach the sample file.

so that we can help you in better way.

Thanks,

Mukram

its_anandrjs

Hi,

You can use SET analysis for this provide any sample data for working.

Regards

Anand

Anonymous
Not applicable
Author

how?

I only have largest,

while my dimension is Year-month, (to my understanding should be sorted by load descending - becuase it's text)

Anonymous
Not applicable
Author

my dimension is text based (year-month),

how can i set analysis it?

ecolomer
Master II
Master II

See this example for 12 months

ecolomer
Master II
Master II

you need to convert to date format as 'YYYY-MMM' or 'YYYY-MM'

its_anandrjs

Hi,

If you want to display last and latest month data then add

Dimension as MonthYear field

I assume [Test Month Name] is text field here

Expre:-

sum({<[Text Month Name] = {'$(=Text(Max( Date(Date#([Text Month Name],'MMM YYYY'),'MMM YYYY'))))'}>}  Metrics)

By this you get last months amount

Regards

Anand