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.
YTD will accumulate data. So either use
CALCULATE(SUM(case[Cost]);DATEADD('DimDate'[DateString];-1;YEAR))
or use datesytd outside
CALCULATE(SUM(case[Cost]);DATESYTD(DATEADD('DimDate'[DateString];-1;YEAR);"30/6"))
Hi,
Thank you, unfortunately neither solution worked (at the best generated the current outcome)
I have tried just creating a datetable to try and problem solve and:
I display below examples showing the problem with the datesytd / dateadd function for clarification:
Hi , @Aukje
Maybe your can refer to this post to filter out you unwanted days .
https://community.powerbi.com/t5/Desktop/Problem-with-LY-MTD-Calculations/td-p/993184
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Generally you use SAMEPERIODLASTYEAR for these kinds of things.
See if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...
In my understanding DateAdd shoudl be more versatile than sameperiodlastyear (which is limited to going one year back), in addition to being more useful when my "year" is broken up from xx0701-x10630.
Still looking for a reason why my function does not work, as I prefer getting a more in depth understanding and not only solving the current problem by a work around 🙂
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 |
---|---|
107 | |
106 | |
87 | |
73 | |
66 |
User | Count |
---|---|
124 | |
113 | |
98 | |
81 | |
72 |