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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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