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 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 @ballist1x
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 @ballist1x
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 @ballist1x
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.
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 |
---|---|
114 | |
99 | |
83 | |
70 | |
61 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |