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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
vidyasagar159
Helper II
Helper II

Cumulative SUM or Running Totals on Dates using only Custom Column in a Query Editor

Hi All,

I am a beginner. Need some help on running total or cumulative sum on the DATES column using Query editor custom column. 

 

Cumulative sum or Running Totals on Dates.png

 

From the above image I would like to calculate a simple Running Total or Cumulative SUM for "Values" using "As of Date" only for MFlag = 'Flows'. This I want to achieve in a custom column. I don't want to do it in DAX. Because my output values are references to other tables.

 

Aggregation:

 

Flows on 07/19/2019 = 3945534366

Cumulative Flow on 08/19/2019 is (3945534366) + (-88750950) = 3856783416

 

 

Thanks,

Vidya

1 REPLY 1
amitchandak
Super User
Super User

It is a case of cumulative subtotal. Please refer

 

https://community.powerbi.com/t5/Desktop/Calculating-Cumulative-Monthly-Totals/td-p/100756

https://community.powerbi.com/t5/Desktop/Cumulative-Subtotals/td-p/395842

https://community.powerbi.com/t5/Desktop/Cumulative-Running-Balance-in-a-Matrix/td-p/490907

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information
Thanks.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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