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 there,
I am trying to use DATESYTD() in the regulatory year context (The regulatory year starts from 1st April and ends on 31st March). I changed the calculation based on some existing threads to the following:
YTD sum = CALCULATE([Measure], DATESYTD(Dates[Date],"31/3"))
However, it returns the blank. I assume that its not working as I have already checked [Measure] and it produces the value if
i did not use with DATESYTD(). Could anyone help me where am I making the mistake?
Solved! Go to Solution.
Hey @Dunner2020 ,
depending on your local settings the date could be false. Try maybe to change the end of year date to "3/31".
What always works is to use a regular date, the year will be ignored anyways. So try the following:
YTD sum = CALCULATE( [Measure], DATESYTD( Dates[Date], "2020-03-31" ) )
Hey @Dunner2020 ,
depending on your local settings the date could be false. Try maybe to change the end of year date to "3/31".
What always works is to use a regular date, the year will be ignored anyways. So try the following:
YTD sum = CALCULATE( [Measure], DATESYTD( Dates[Date], "2020-03-31" ) )
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 |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |