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
kolturra
Helper IV
Helper IV

Percentage Calculation of two Categories

Hi,

 

I have data like below sample one, i am trying to achieve % of each customer with each Age of product with total MPR value of Customer. Below is the data in my power bi table. Can some one please help me understand what kind of DAX i have to use or quick measure.

 


Data.png

 

 

This is how i want to see 

 

Result.png

 
Thanks,

K Raghavender Rao

1 ACCEPTED SOLUTION

@kolturra,

 

You may refer to the following post.

http://community.powerbi.com/t5/Desktop/Subtotal-Percentages/m-p/313658#M139139

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.

View solution in original post

3 REPLIES 3
Interkoubess
Solution Sage
Solution Sage

Hi @kolturra,

 

Please check this formula ( my table is called Table1). For the grand Total it won't work but the rest :

 

% of client each aging = var SumA=CALCULATE(SUM(Table1[MPR]),FILTER(ALL(Table1),Table1[Customer]="A")) var SumB=CALCULATE(SUM(Table1[MPR]),FILTER(ALL(Table1),Table1[Customer]="B")) return IF(SELECTEDVALUE(Table1[Customer])="A",DIVIDE(CALCULATE(SUM(Table1[MPR])),SumA,0),DIVIDE(CALCULATE(SUM(Table1[MPR])),SumB,0))

Hope it helps....

 

Ninter

Hi @Interkoubess,

 

Thanks for your reply.

 

Table which i have provided is sample i have around 10,000 records like that in customer column and all have different customer names, can you please help me how should i handle it.

 

Thanks,

K Raghavender Rao

 

 

@kolturra,

 

You may refer to the following post.

http://community.powerbi.com/t5/Desktop/Subtotal-Percentages/m-p/313658#M139139

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.

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.