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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors