Forum Discussion

VitaliiCH17's avatar
VitaliiCH17
Frequent Visitor
3 years ago

How to limit data in the chart?

Hi,

 

In my application, I have a table that has two columns, Year Month, and Amount.

The amount is just calculated as SUM(Amount)

With such an expression table showing all data, I would like to limit it to the last six months based on the user selection. 

Current result:

 

Expected:

When the user selects January 2018 then the chart should show the data from August 2017 till January 2018.

When the user selects September 2017 then the chart should show the data from September 2017 till April 2018.

I have tried to filter data but without any results.

 

Regards,

Vitalii

1 Reply

  • Add a calendar table to your data model

    create a date column in your fact table

    Wire the calendar table into the date column

    Teach your users how to apply filters to the date column of the calendar table (Relative Date, or Advanced Filter)