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

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.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.