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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
TerCh
Frequent Visitor

Reverse Running total with a twist

Hi

I am using the formula 

reverse = calculate([Ongoing],filter(allselected(DateTable[Date]),DateTable[Date]>=MIN(DateTable[Date])))
for reverse running total of column "Ongoing". But I need the result in the table be one month earlier.
 
This is my table now:
reverse.PNG
What I need is the result showing one month earlier
so t.ex. 2021 Jul showing 8, and 2021 Jun showing 6
I have tried using the nextmonth formula without luck.
 
Hope there is somebody out there that can help me.
1 ACCEPTED SOLUTION
TerCh
Frequent Visitor

Hi

Thank you for leading me in the right direction 🙂

The solution was as follow:

reverse running totals = calculate([Ongoing],filter(allselected(DateTable[Date]),DateTable[Date]>=MIN(DateTable[Date])+DAY ( EOMONTH (DateTable[Date], 0 ) )))
 
 

View solution in original post

5 REPLIES 5
Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @TerCh ,

 

Try this measure:

 

reverse = calculate([Ongoing],filter(allselected(DateTable[Date]),DateTable[Date]>=MIN(DateTable[Date])+1))

 

 

Mark this as a solution, if I answered your question. Kudos are always appreciated.

Thanks.

Hi

Thanks, but as you can see in column reverse2, its is not workingreverse2.PNG

Hi @TerCh ,

Try this:

reverse = calculate([Ongoing],filter(allselected(Table[Year Month]),Table[Year Month]>=MIN(Table[Year Month])+1))

 

Tanushree_Kapse_0-1631189708137.png

 

Hi

I got error 

error.PNG

I'm not sure what date table you are using, but my date field [Year Month] is text format an can not used here.

TerCh
Frequent Visitor

Hi

Thank you for leading me in the right direction 🙂

The solution was as follow:

reverse running totals = calculate([Ongoing],filter(allselected(DateTable[Date]),DateTable[Date]>=MIN(DateTable[Date])+DAY ( EOMONTH (DateTable[Date], 0 ) )))
 
 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.