cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Murali777
Helper III
Helper III

Cumulative Running Total on PowerBI - (Million dollar question)

Hi,

 

I have worked for last two days to figure out the below scenario.. but i couldn't able to arrive the result. Also i have refered in google can't able to figure out the solution.

 

 

I have tried Rankx and Earlier function (powerbi not supporting for me ) but nothing is helped for me. Kindly any of the super hero, please help on this.

Murali777_0-1644386033305.png

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, 

Please check the below picture and the attached pbix file.

Those are for creating a new calculated column and calculated measure.

 

Picture2.png

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

5 REPLIES 5
Jihwan_Kim
Super User
Super User

Hi, 

Please check the below picture and the attached pbix file.

Those are for creating a new calculated column and calculated measure.

 

Picture2.png

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Hi Jihwan,

 

Please see the below example, i'm using the stacked bar chart. So i need to aggregate the department count in year wise. For year 1998, it is showing only the department C count, but i need to aggregate the all the 3 departments (A, B and C). Please help me on this situation.

 

Murali777_1-1644500548874.png

 

 

 

 

Hi,

please check the attached file.

 

Picture1.png

 

Running total measure: =
CALCULATE (
SUM ( Data[Count] ),
FILTER ( ALL ( Dim_Year ), Dim_Year[Year] <= MAX ( Dim_Year[Year] ) )
)

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Hi Jihwan,

 

Thanks for the solution. it is working great.

Hi Jihwan,

 

Thanks for your quick reply. The count column is not available in the table... i'm having only Date (just converting to Year) and department column. i want count column and based on the count we need ot calculate  running total on the fly.

Helpful resources

Announcements
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors