Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
udaya_kumar
Specialist
Specialist

how to show latest 24 months of data in chart?

Hi,

I have a date field in the chart as x-axis.

Currently am showing 72 months of data, the full data.

now i want to show only latest 24 months of data in the x-axis in the chart.

how we can do that?

12 Replies
udaya_kumar
Specialist
Specialist
Author

Jason,


It is not working

This is the expression am using

sum({<MONTH_START_DATE={"<=$(=Date(AddMonths(Max(MONTH_START_DATE),-vMonth),'MMM YYYY')"}>}TRx_Volume)

What is the problem here?

udaya_kumar
Specialist
Specialist
Author

It is showing,

No Data to Display on the table.

only({<MONTH_START_DATE={">=$(=Date(AddMonths(Max(MONTH_START_DATE),-vMonth),'MMM YYYY')"}>}TRx_Volume)

This is the expression i tried, but also not working

Jason_Michaelides
Luminary Alumni
Luminary Alumni

Post your app and I'll take a look.