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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have the followig data model:
| Name 1 | $ 30,000.00 |
| Product 1 | $ 10,000.00 |
| Product 2 | $ 20,000.00 |
| Name 2 | $ 50,000.00 |
| Product 1 | $ 40,000.00 |
| Product 2 | $ 10,000.00 |
| Total | $ 80,000.00 |
I need to calculate the % of each line grouped by Name in order to have the following:
| Name 1 | $ 30,000.00 | 100% |
| Product 1 | $ 10,000.00 | 33% |
| Product 2 | $ 20,000.00 | 67% |
| Name 2 | $ 50,000.00 | 100% |
| Product 1 | $ 40,000.00 | 80% |
| Product 2 | $ 10,000.00 | 20% |
| Total | $ 80,000.00 |
I could only manage to show the % based on the grand total, but I need exaclty what I´m showing above. Any idea?
Solved! Go to Solution.
Hi @Anonymous ,
Is your table like below?
If so, you can create your measure like so:
Percent =
DIVIDE (
SUMX ( 'Table', 'Table'[Value] ),
CALCULATE ( SUM ( 'Table'[Value] ), ALLEXCEPT ( 'Table', 'Table'[Name] ) )
)Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Is your table like below?
If so, you can create your measure like so:
Percent =
DIVIDE (
SUMX ( 'Table', 'Table'[Value] ),
CALCULATE ( SUM ( 'Table'[Value] ), ALLEXCEPT ( 'Table', 'Table'[Name] ) )
)Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Please refer
https://community.powerbi.com/t5/Desktop/Percentage-of-subtotal/td-p/95390
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
Thanks.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!