Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi All
I am struggling to display the rolling monthly revenue by clicking a filter linked to the months.
Based on the period filter (right top) I focus on the results of that specific month and the year to date results. The monthly and ytd revenue is calculated as follows and works fine (red circle):
Thanks a lot!
Regards
Jordy
Solved! Go to Solution.
Hi @DelVosa ,
Please try to create a measure like below and use the month from fact table as x-axis.
Measure =
var _max = MAX('Date'[Date])
return
CALCULATE(SUM(financials[ Sales]),DATESYTD(('Date'[Date]),"8/31"),'Date'[Date]<=_max)
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @DelVosa ,
Please try to create a measure like below and use the month from fact table as x-axis.
Measure =
var _max = MAX('Date'[Date])
return
CALCULATE(SUM(financials[ Sales]),DATESYTD(('Date'[Date]),"8/31"),'Date'[Date]<=_max)
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@DelVosa , if you want measure switch, You can use measure slicer
measure slicer
https://www.youtube.com/watch?v=b9352Vxuj-M
https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/50...
https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slic...
https://www.youtube.com/watch?v=vlnx7QUVYME
But if you want to changes axis column, then you have use bookmarks
Axis Slicer
Dynamically change chart axis in Power BI
bookmark -https://blog.crossjoin.co.uk/2018/04/20/dynamically-changing-a-chart-axis-in-power-bi-using-bookmarks-and-buttons/
https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 12 | |
| 11 | |
| 9 | |
| 8 | |
| 7 |