cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Richard_W Frequent Visitor
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

Accepted Solutions
Community Support Team
Community Support Team

Re: YOY daily running total across a month

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.
5 REPLIES 5
Community Support Team
Community Support Team

Re: YOY daily running total across a month

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.
Richard_W Frequent Visitor
Frequent Visitor

Re: YOY daily running total across a month

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

Community Support Team
Community Support Team

Re: YOY daily running total across a month

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.
Richard_W Frequent Visitor
Frequent Visitor

Re: YOY daily running total across a month

Hi Cherry, exactly what I was looking for.

 

Many thanks.

Community Support Team
Community Support Team

Re: YOY daily running total across a month

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.