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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello, wondering if someone can help me with a Date slicer / measure question.
I have a sales table linked to DATE_DIM table.
The Date slicer is to select the period(multiple months) so I can get the YTD sales figures. However I would like to update some of my measures to only display the last month on the date slicer.
For an example is I am showing YTD sales for July - December period, how can I write the measure to calculate the sales based on the last month selected in the date range (e.g. December?)
I was using the measure below however this is not working as I want the user to be able to look at prior months based on the dates selected in the slicer.
Any help would be greatly appreciated.
Thanks
Solved! Go to Solution.
Solved the query - here's my updated measure
Solved the query - here's my updated measure