Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
42 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
43 | |
39 | |
33 | |
18 | |
17 |