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
simonm8008
Frequent Visitor

Help needed: Measure to return a cumulative (i.e. running) sum for a calculated column

Hello

 

Fairly new to Power BI, so there's probably a simple solution for my problem!

 

I have the following table ('Burnup Data') where I am trying to calculate a running total (Planned Cumulative) based on Planned. However, the existing Planned Cumulative is not the Expected Result:

 

2022-08-09_17-22-20.png

 

 

 

 

 

I have the following measures:

 

Planned =
VAR Sprint = [Sprint]
VAR MAXDate = MAX('Current PI - All User Stories'[Date])
RETURN
IF(MAXDate >= [Date],BLANK(),
CALCULATE(
SUM('Current PI - All User Stories'[Story Points]),
'Current PI - All User Stories'[Date] = MAXDate, 'Current PI - All User Stories'[Sprint] IN { Sprint })
)
 
Planned Cumulative =
CALCULATE(
SUM('Burnup Data'[Planned]),
FILTER(
ALL('Burnup Data'),
'Burnup Data'[Date] <= MAX('Burnup Data'[Date])
)
)
 
Any help would be greatly appreciated!
 
1 ACCEPTED SOLUTION
memepu
Resolver II
Resolver II

Hi @simonm8008 ,

I have created a simple sample, please refer to it to see if it helps you.

sum for a calculated column.pbix

Create a measure.

Measure =
CALCULATE (
    SUM ( 'Table'[Planned] ),
    FILTER ( ALL ( 'Table' ), 'Table'[date] <= SELECTEDVALUE ( 'Table'[date] ) )
)

 If the planed column is written by a measure.

Please have a try.

Measure 2 = SUMX(FILTER(ALL('Table'),'Table'[date]<=SELECTEDVALUE('Table'[date])),[Planned_])

memepu_0-1660196057735.png

If I have misunderstood your meaning, you can create simple data with excel, then show me the screenshots about the data and the desired output your want.

 

Best regards.

View solution in original post

2 REPLIES 2
memepu
Resolver II
Resolver II

Hi @simonm8008 ,

I have created a simple sample, please refer to it to see if it helps you.

sum for a calculated column.pbix

Create a measure.

Measure =
CALCULATE (
    SUM ( 'Table'[Planned] ),
    FILTER ( ALL ( 'Table' ), 'Table'[date] <= SELECTEDVALUE ( 'Table'[date] ) )
)

 If the planed column is written by a measure.

Please have a try.

Measure 2 = SUMX(FILTER(ALL('Table'),'Table'[date]<=SELECTEDVALUE('Table'[date])),[Planned_])

memepu_0-1660196057735.png

If I have misunderstood your meaning, you can create simple data with excel, then show me the screenshots about the data and the desired output your want.

 

Best regards.

ribisht17
Community Champion
Community Champion

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.