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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Need help with getting cumulative total

Hi all,

 

The table i am working with only the first four columns. How do I go about filtering the table by "Department", "Team", "Quarter" and getting the cumulative total in a new column as shown below.

 

Department-----Team-----Quarter-----Items sold-----Cumulative total of items sold
Department ATeam 1Q13030
Department ATeam 1Q22252
Department ATeam 1Q31062
Department ATeam 1Q41375
Department ATeam 2Q11010
Department ATeam 2Q21222
Department ATeam 2Q3628
Department ATeam 2Q4230
Department BTeam 3Q111
Department BTeam 3Q234

 

Thank you,

chq

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , if you need a new column

 

sumx(filter( Table, [department] = earlier([department]) && [Team] = earlier([Team])  && [Quarter] <= earlier([Quarter]) ), [item Sold] )

 

Power BI DAX- Earlier, I should have known Earlier: https://youtu.be/CVW6YwvHHi8
https://www.youtube.com/watch?v=cN8AO3_vmlY&t=17820s

 

 

or you can measure using new window function

 

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

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

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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