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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Mohammadwazeri
Helper III
Helper III

How To Sum up Rows One by One Until Reach Total?

Hi Guys,

 

I just come up with something I need your input on, I am not sure if there is something like Excel in Power BI.

 

This is done in Excel, 

In the screenshot below. The sum of Row 2, Column1 is 3.57% of the total of Column1($280).

Then sum of Rows 2 & 3 of Column1 is 10.71% of the total of Column1($280).

Then sum of Rows 2, 3, & 3 of Column1 is 21.43% of the total of Column1($280).

 

It keep adding rows one by one until it reach the total amount and 100%.

 

Mohammadwazeri_0-1684348563752.png

 

Thank you,

Mohammad

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

What's important to know is the order in which the numbers should appear to calculate the running total.  Should the amounts be arranged in ascending order or should they be arranged in ascending/descending order of some other field (such as date, Product).  If you need further help, then share the download link of the PBI file with your Table/matrix visual already built.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Greg_Deckler
Community Champion
Community Champion

@Mohammadwazeri You basically need a running total but for that you need something to define "earlier". 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
SivaMani
Resident Rockstar
Resident Rockstar

@Mohammadwazeri, This can be achieved with DAX Measure. Please refer the below URL
https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.