Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hi, I have this measure for 12 months rolling sales:
I suggest to look at the endofmonth function, so go one month back and then endofmonth as your boundary.
https://docs.microsoft.com/nl-nl/dax/endofmonth-function-dax
Hope it helps. Kind regards, Steve.
Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article
My Community Blog Articles (check them out!)
My Blog - Power M code to automatically detect column types -
How to create test data using DAX!
hi havnt tried but maybe something like this.
might get funky if your calendar is not complete?
var minDate=EOMONTH(MAX('Calendar'[Date]),-13)
var fromDate=DATE(YEAR(minDate),MONTH(minDate),1)
var toDate=EOMONTH(MAX('Calendar'[Date]),-1)
return
CALCULATE(SUM(Table2[value]),
FILTER(ALL('Calendar'),
'Calendar'[Date]>=fromDate &&
'Calendar'[Date]<=toDate
)
)
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
17 | |
14 | |
12 | |
10 | |
9 |