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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
AnnaSA
Helper I
Helper I

Calculate the running/cumulative total over a column that is not a date, not grouped

Good day everyone,

I am struggling to calculate the running total for the total #Tasks for the article ID,


This is my Summarize table in PowerBI:

AnnaSA_0-1600849875024.png


I want to calculate the cumulative #Tasks like below:

AnnaSA_1-1600849932861.png



Any help would really be appreciated please

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@AnnaSA ,

New column

cumm = sumx(filter(table, [#tasks] <=earlier([#tasks])),[#tasks])

 

new measure

cumm = sumx(filter(table, [#tasks] <=max([#tasks])),[#tasks])

 

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@AnnaSA ,

New column

cumm = sumx(filter(table, [#tasks] <=earlier([#tasks])),[#tasks])

 

new measure

cumm = sumx(filter(table, [#tasks] <=max([#tasks])),[#tasks])

 

Thank you sooooo much, it worked

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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