Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi i need some help. i am calculating MTD, QTD and YTD and i want to see how this is being aniversarried Year over Year.
My MTD calculation looks like this;
This works fine^^
the SAMEPERIODLAST year does not:
Solved! Go to Solution.
Hi @Anonymous
Test with a table with sales from 2018/1/1 to 2019/3/15,
Create measures
MTD sales = TOTALMTD(SUM(Sheet1[sales]),'calendar'[Date]) last date = LASTDATE(Sheet1[date]) MTD LY = TOTALMTD(SUM(Sheet1[sales]),DATEADD(FILTER(DATESMTD('calendar'[Date]),'calendar'[Date]<=[last date]),-1,YEAR))
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Is this problem sloved?
If not, please let me know.
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Test with a table with sales from 2018/1/1 to 2019/3/15,
Create measures
MTD sales = TOTALMTD(SUM(Sheet1[sales]),'calendar'[Date]) last date = LASTDATE(Sheet1[date]) MTD LY = TOTALMTD(SUM(Sheet1[sales]),DATEADD(FILTER(DATESMTD('calendar'[Date]),'calendar'[Date]<=[last date]),-1,YEAR))
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
76 | |
61 | |
37 | |
33 |
User | Count |
---|---|
99 | |
56 | |
51 | |
42 | |
40 |