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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
erg2494
Frequent Visitor

Create Running Total Column but add a measure to each row calculation

Hello,

 

I am trying to create a matrix that forecasts my future cash balance. The starting point for it is the prior day actual cash balance and it is updated each day. I've created a measure to store the prior day balance. 

 

I can't figure out how to add the running total column to the measure containing the prior day balance to get the PROJECTED CASH column. No matter what I do it doesn't add up correctly. 

 

Does anyone know how to accomplish this? do I need to build it differently. 

 

Below is my expected output 

 

Prior Day Closing Balance = '9533 Closing Balance'[9533 Closing Balance] + 'DDA''s'[DDA's] 

''' Prior Day Closing Balance as of 4/7 = 600 ''' 

 

Running Total = CALCULATE ( [Total Expenses] , FILTER(ALLSELECTED(Dates), Dates[Date] <=MAX(Dates[Date]) && Dates[Date] >= TODAY()) )

 

DateExpenses aExpenses b Total ExpensesRunning TotalProjected Cash 
4/8/2022-50-100-150-150450
4/9/2022-20-30-50-200400
4/10/2022-30-50-80-280320
2 REPLIES 2
Anonymous
Not applicable

Hi @erg2494 ,

 

You could try

Running Total = SUMX( FILTER(ALLSELECTED(Dates), Dates[Date] <=MAX(Dates[Date]) && Dates[Date] >= TODAY()), [Total Expenses] )

Or

Running Total = SUMX( FILTER(ALLSELECTED(Dates), Dates[Date] <=MAX(Dates[Date]) ), [Total Expenses] )

 

 

If there are still errors, please share your [Total Expenses] formula.

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello, the running total formula works. But now how do I ADD into it my prior day balance measure? which will always have a date of 1 business day prior to today(). 

 

in other words, how do i simply add a measure into the running total column? keep in my mind that the prior day balance is the starting point for my running total column. 

 

i

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.