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
Hi Experts,
I am trying to create a measure to get % column as below table, where each subcategory is getting divided by total of main category.
Thanks in advance!
Solved! Go to Solution.
Hi @liberty345 ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
Measure = COUNT('Table'[Type2])Measure 2 = SUM('Table (2)'[Value])
(2) We can create measures.
Total Measure = CALCULATE([Measure],ALL('Table'))% Measure = DIVIDE([Measure],[Total Measure],0)% = DIVIDE(SUM('Table (2)'[Value]),CALCULATE(SUM('Table (2)'[Value]),FILTER(ALLSELECTED('Table (2)'),'Table (2)'[Type]="Main category")),0)
(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The [measure] would be something like [Net Sales]. Here are all the measures:
The [measure] would be something like [Net Sales]. Here are all the measures:
Thank you for your valuable support - @Anonymous 🙂
Hi @liberty345 ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
Measure = COUNT('Table'[Type2])Measure 2 = SUM('Table (2)'[Value])
(2) We can create measures.
Total Measure = CALCULATE([Measure],ALL('Table'))% Measure = DIVIDE([Measure],[Total Measure],0)% = DIVIDE(SUM('Table (2)'[Value]),CALCULATE(SUM('Table (2)'[Value]),FILTER(ALLSELECTED('Table (2)'),'Table (2)'[Type]="Main category")),0)
(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so much @Anonymous for the solution! 🙂
First, create a total measure
TermPlanTotal = CALCULATE ( [measurename], ALL( <tablename>) )
TermPlanPct = DIVIDE( [measurename], TermPlanTotal)
Format TermPlanPct as a Percent
Thank you, @Anonymous!
I attempted to create a measure using the provided solution, but all values are consistently showing as 100%. I'm unsure of what might be causing this issue.
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!