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

View all the Fabric Data Days sessions on demand. View schedule

Reply
naoyixue1
Post Patron
Post Patron

How to calculate the running total in column

Hey all,

 

I treid to add the column of running total to identify items ranking. The left side is the original table. Since I could not add there, I applied the summarize function to create the new table and calculate that in the new summarize table. Just out of curiousity, do you know how I can calculate the cululative column in the original table . (see details as attached) 

 

naoyixue1_0-1673482898970.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @naoyixue1 ,

 

You can create a calculated column as follows.

Cumulative% = var _table=SUMMARIZE('Original Table',[Item level %],[SKU])
return SUMX(FILTER(_table,[SKU]<=EARLIER('Original Table'[SKU])),[Item level %])

vstephenmsft_0-1673938345942.png

 

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.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @naoyixue1 ,

 

You can create a calculated column as follows.

Cumulative% = var _table=SUMMARIZE('Original Table',[Item level %],[SKU])
return SUMX(FILTER(_table,[SKU]<=EARLIER('Original Table'[SKU])),[Item level %])

vstephenmsft_0-1673938345942.png

 

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.

@Anonymous Thanks Stephen!

naoyixue1
Post Patron
Post Patron

@ribisht17 Thanks, Ritesh! Unfortunately, it doesn't work.

 

Hey all, any other thoughts? 

ribisht17
Super User
Super User

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors
Top Kudoed Authors