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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Creation of a running total with change between two data series

Good morning,
I want to create a running total that changes from data series 1 to data series 2 at a certain date.
As an example, a forecast could be used, which adds up the actual costs until a defined date and then continues to add up the planned costs. This should result in an S-curve, which shows the actual values with a solid line up to this defined point in time and then indicates the planned values with a dashed line.

How could I implement this?

Love greetings 🙂

 

3 REPLIES 3
FreemanZ
Super User
Super User

hi @Anonymous 

for your reference:

https://www.daxpatterns.com/budget/

 

amitchandak
Super User
Super User

@Anonymous , if you use date table the both series will have their won running total

 

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] <=max('Date'[date])))

 

or

 

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(date),date[date] <=max(date[Date])))

 

You can also consider window function

Power BI Window function Rolling, Cumulative/Running Total, WTD, MTD, QTD, YTD, FYTD: https://youtu.be/nxc_IWl-tTc

 

Running Total/ Cumulative: https://www.youtube.com/watch?v=h2wsO332LUo&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=41

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks for your message @amitchandak . I want to create a running total from the data, which should sum the values of one data series up to a certain date and then continue to sum the values of another data series. Before the change, the second data series should be ignored and after the change, the first data series should be ignored to avoid a gap or jump in the line.

morinow_0-1672143718892.png

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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