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'm looking to create a running total of the requests received per day across a month and compare it with the same period last year. This works fine for complete months but when looking at the current month the data from the previous year pulls back the entire month and stuffs it into the last day. There is a date slicer that is used to select months.
Total Requests = SUM('Data'[Goal 12 Completions])
Requests MTD = TOTALMTD([Total Requests],'Date Table'[Date])
Requests Last Year MTD = TOTALMTD(CALCULATE([Total Requests], SAMEPERIODLASTYEAR('Date Table'[Date])), 'Date Table'[Date])
Result =
How do I truncate the measure?
Many thanks,
Richard
Solved! Go to Solution.
Hi @Richard_W,
I have made a test with calculating the MTD and last year MTD.
For more details, you could have a look at the attachment.
Best Regards,
Cherry
Hi @Richard_W,
One of your image didn't upload successfully. If it is convenient, could you post it again?
In addition, what value do you want to calculate? YOY or MTD?
If it is convenient, could you share some data sample and your expected output, so that we can help further investigate on it?
I also have made a test, you could have a reference with the attachment.
Best Regards,
Cherry
Hi Cherry,
Here's the pictures again. What I'm trying to do is compare MTD for current year vs. same dates last year.
What I'm getting:-
What I expect:-
Many thanks,
Richard
Hi @Richard_W,
I have made a test with calculating the MTD and last year MTD.
For more details, you could have a look at the attachment.
Best Regards,
Cherry
Hi Cherry, exactly what I was looking for.
Many thanks.
Hi @Richard_W,
You're welcome. That's my pleasure!
Best Regards,
Cherry
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 |
---|---|
111 | |
99 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |