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.
I have been trying to create a measure to get me a card with the total value of the fiscal year up to the month selected in the slicer but it is always getting me the value to the current day and not the selected month... Here is my current measure:
Solved! Go to Solution.
I have fixed it as it had to do with the relationships my calendar data had with my main table as a new column had to be created.
In terms of the measure I ended up using, it was the following:
I have fixed it as it had to do with the relationships my calendar data had with my main table as a new column had to be created.
In terms of the measure I ended up using, it was the following:
To modify your DAX measure to calculate the total value of the fiscal year up to the month selected in the slicer, you can replace the second argument of the DATESYTD function with a custom end date. Try this:
Total Value = CALCULATE(
COUNT(TICKET_DASHBOARD_GAVATAR[ACTIONDATE_FORMATTED]),
DATESYTD(TICKET_DASHBOARD_GAVATAR[ACTIONDATE_FORMATTED], "10/1"),
FILTER(
ALLSELECTED(TICKET_DASHBOARD_GAVATAR[ACTIONDATE_FORMATTED]),
TICKET_DASHBOARD_GAVATAR[ACTIONDATE_FORMATTED] <= MAX(TICKET_DASHBOARD_GAVATAR[ACTIONDATE_FORMATTED])
)
)
The suggested measure is giving me the month to date value instead of year to date
As you see i have both represented and the ytd and mtd and they both always the same regardless of whatever month I choose in my slicer
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 |
---|---|
100 | |
100 | |
80 | |
77 | |
66 |
User | Count |
---|---|
134 | |
106 | |
104 | |
85 | |
73 |