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 am trying to do a 'year to date' but my card is only showing 396.00 which is very wrong, my DAX is .
It should be a lot more does the DAX look ok?
yTD = TotalYTD(sum(adDetails[Revenue]), calender[Date], All(calender))
Solved! Go to Solution.
@Anonymous Do you have a filter or slicer applied that would alter the total on the report page?
I believe you are hitting a glitch with the inclusion of the ALL function. YOu should specify a year end date with the YTD calculation if you have a custom calendar. For exampl if my fiscal year ended on June 30th I would use:
TOTALYTD([TotalRevenue], Calendar[Date], 6/30)
I would build the [Total Revenue calculation instead of calculating it within the other measure just to make sure that if a measure broke it would be easy to troubleshoot.
TotalRevenue = SUM(adDetails[Revenue])
If I did not need the fiscal year to be defined I would leave it out.
tOTALYTD([TotalRevenue], Calendar[Date])
Proud to be a Super User!
I believe you are hitting a glitch with the inclusion of the ALL function. YOu should specify a year end date with the YTD calculation if you have a custom calendar. For exampl if my fiscal year ended on June 30th I would use:
TOTALYTD([TotalRevenue], Calendar[Date], 6/30)
I would build the [Total Revenue calculation instead of calculating it within the other measure just to make sure that if a measure broke it would be easy to troubleshoot.
TotalRevenue = SUM(adDetails[Revenue])
If I did not need the fiscal year to be defined I would leave it out.
tOTALYTD([TotalRevenue], Calendar[Date])
Proud to be a Super User!
Sorted!
@Anonymous Do you have a filter or slicer applied that would alter the total on the report page?
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 |
---|---|
112 | |
97 | |
85 | |
67 | |
59 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |