Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be 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

Reply
Richard_W
Frequent Visitor

YOY daily running total across a month

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

1 ACCEPTED SOLUTION

Hi  @Richard_W,

 

I have made a test with calculating the MTD and last year MTD. 

Untitled.png

 

For more details, you could have a look at the attachment.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-piga-msft
Resident Rockstar
Resident Rockstar

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

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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. 

Untitled.png

 

For more details, you could have a look at the attachment.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Cherry, exactly what I was looking for.

 

Many thanks.

Hi @Richard_W,

 

You're welcome. That's my pleasure!Smiley Very Happy

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.