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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
rehman1
Helper I
Helper I

how to do cumulative total

Hello, 

i have a data set in which i want to have a cumulative total of "Totalofcurrentdata" in column "Cumulativetotalofcurrentdata". how can i acheive this in PBI. here is what it should look like in PBI. ( i just need to know how to create the column "Cumulativeofcurretndata" as shown in example below

MonthHistoricDataCurrentDataTotalofCurrentDataCumulativetoalofcurrentdata(?)
Null2null00
jan348=0+8=8
feb459=8+9=17
mar5611=17+11=28
april6713=28+13=41

please help before i go insane

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@rehman1 

 

make sure your underlying data is in the date format. if thats not possible, use a SWITCH statement to add a date column to your table, and use the running total sum feature on that field instead.

 

You then need to add the field with the "mmm" date format to your table.

View solution in original post

4 REPLIES 4
v-chuncz-msft
Community Support
Community Support

@rehman1 

 

By the way, you may research Quick measure Running total.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
nandukrishnavs
Super User
Super User

@rehman1 

 

You have to include a date column.

refer to this https://www.sqlbi.com/articles/computing-running-totals-in-dax/



Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂


Regards,
Nandu Krishna

Thanks for your reply but i cant use date function. it has to be text as shown in my example above

Anonymous
Not applicable

@rehman1 

 

make sure your underlying data is in the date format. if thats not possible, use a SWITCH statement to add a date column to your table, and use the running total sum feature on that field instead.

 

You then need to add the field with the "mmm" date format to your table.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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