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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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