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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Calculate the sum of the top 80%

Dear All,

I have the attached list of accounts with the related sales and cost. 

I calculate the GM for each of them

I need to calculate

  • The sum of the top GM of account that is making 80% of the total GM. which means I need to order GM by order of importance them make the sum of the top one until I reach 80% of total GM
  • I need to know what was the number of acount that was included in this sum to be able to calculate the average GM

can you please support

 

Regards,

imed

 

 Example file

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thank you very much, it's working fine

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

I would like to see the solution of this request as I have similar request

Anonymous
Not applicable

Anonymous
Not applicable

Thanks Darek for the solutions

May I ask one more thing?

I need to calculate the average of the GM for the accounts that we have included in the calculation of the 80% of GM

 

can you please support

 

regards,

Imed

Anonymous
Not applicable

Just create a measure: DIVIDE( [Total GM (80% Top Cust)], [Count of Cust (80% Top Cust)]).

Best
Darek
Anonymous
Not applicable

Hello Darek

The calculation are working fine however when I use the measure with other fields some a dim table it's not working anymore

can you please support

 

regards

Imed

Anonymous
Not applicable

I think the utilisation of addcolumns in the measure is the one causing this issue.

 

thanks you for your support

 

Regards

imed

Anonymous
Not applicable

Thank you very much, it's working fine

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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