Forum Discussion

tbruech's avatar
tbruech
Icon for Microsoft Employee rankMicrosoft Employee
6 years ago

Need Help Creating a Stacked Area Chart for the 30 Days Before a User Selected Date

Hello Everyone,

 

I've been trying to create a stacked area chart that shows sales data for three different sub product types for the last 30 days from a user selected date. The data comes from a table which contains daily sales and where each row represents sales for a single product for a single day, with the sales of sub-products for each day included as well.

 

A user selects a date to display data by using a page level filter with Advanced filtering and "is" for single selection. Most of the report shows KPIs for the individual day that is selected.

 

I previously tried adding a custom table that filters so that it only contains data for the user selected date and 30 days before. However, since custom tables are evaluated during data refresh, this was not dynamic for when a user changes the date. The behavior for this was that the chart would always show the 30 days previous to the most recent date in the data.

 

Here is an example of what my chart looks like:

 
 

Is there a way to display the 30 days prior to a selected date in a chart, while also showing the KPIs for a single day in the rest of the report?

 

Let me know if you have any clarifying questions.

 

 

Thanks,

 

Trevor

 

 

3 Replies