March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
143 | |
97 | |
79 | |
68 |