Forum Discussion

BSM1985's avatar
BSM1985
Icon for Helper IV rankHelper IV
6 years ago
Solved

Last N Months

Hello Team,

 

I have a bar chart with date on x-axis and profit on y-axis. The requireent is to have the buttons on top like "Last 1 Month", "Last 2 Months" and "Last 6 Months" as shown in attached screenshot.


When I click on the tab 'Last 1 month' then the graph should be plotted for last 30 days. When I click on the tab "Last 2 Months" then the graph should be plotted for last 60 days. Similarly for last 6 months.

 

Note: As per my analysis, this can be acheived thru bookmarks (show/hide charts as per text button selection).
Also the same can be achieved thru what-if parameter. But users have suggested to make it dynamic with buttons and one chart.

 

.pbix file here

https://1drv.ms/u/s!ArRkjWtfVLy-bH0zanIVQBIK1u4

 

screenshot here

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi BSM1985 ,

    I just updated your sample pbix file, please check if that is what you want. You can get the updated file from this link.

    Best Regards

    Rena

4 Replies