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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
vstefano
Helper I
Helper I

Running total sorted by calculated measure and related columns

Good evening, I have a visual table as below: opp. number and a calculated measure (Value €) that sums the amount of each opportunity (opp.number can be present in multiple rows of imported data).

vstefano_1-1728421359947.png

 

I want to calculate three columns like below: 1. running total SORTED by Value € (decreasing order), 2.% running total, 3. a value of 1 up to first row of "% running total" that is >=80% (ie I want to be able to count the number of opportunities that generates 80% of my amount.

vstefano_2-1728421544865.png

Any suggestion would be highly apreaciated.

 

Thanks in advance,

Stefano

2 ACCEPTED SOLUTIONS

Problem solved using a calculated formula that takes into account two conditions, a threshold and an index to order records with identical amount. I did not use visual calculation as I needed a card, a unique number, that display me % of grouped records that generates 80% of my volume. 

View solution in original post

Anonymous
Not applicable

Hi @vstefano ,

 

Really glad to hear that your problem has been solved. If possible, please accept the reply as solution. More people will benefit from it, thanks.

 

Best Regards,

Stephen Tao

View solution in original post

5 REPLIES 5
ToddChitt
Super User
Super User

Totally agree. 

Follow this thread Re: Share your thoughts on visual calculations (pr... - Page 8 - Microsoft Fabric Community In there is a comment I made (just yesterday and in regard to your issue 🙂 ) about sorting of rows for a Running Sum Visual Calculation. Feel free to find it and comment on your frustration with the bug. The more comments the more Microsoft is likely to listen.

Best of luck.




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Problem solved using a calculated formula that takes into account two conditions, a threshold and an index to order records with identical amount. I did not use visual calculation as I needed a card, a unique number, that display me % of grouped records that generates 80% of my volume. 

Anonymous
Not applicable

Hi @vstefano ,

 

Really glad to hear that your problem has been solved. If possible, please accept the reply as solution. More people will benefit from it, thanks.

 

Best Regards,

Stephen Tao

ToddChitt
Super User
Super User

Hello @vstefano 

I suggest you look into Visual Calculations, which is a Preview Feature (must be enabled, then restart Power BI). I'm trying to work up an examply to help you but you should investigate them yourself as well. There is a Template for Running Sum that may help you here.




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Hi Tod,

thanks for the answer. I had already tried to use visual calculation, but the calculation is authomatically sort by opp.name not by Value €. I am not very familiar with this.

vstefano_0-1728457479695.png

 

A workaround that I found at the moment is to insert a new axis, with the total of the opportunity. In this way the new axis (forst column) overcome the order of "opp.number" and the running total is calculated correctly.

 

The problem with visual calculation is that the table is see as a sort of graph, hence if I sort by value € for example, the running total refers always to the order of the first column:

vstefano_1-1728459656132.png

It would be good that visual calculation adpated to the actual sorting of the table.

 

Stefano

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.