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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
WAKAYN
Regular Visitor

Calculate percentage of sub-categories

Hello Everyone,

 

Appreciate it if you could please share how I can get the percentage of the sub-totals (Year1% and Year2%) in this table:

 

 Year1Year1 %Year2Year2 %
Region1100100%110100%
Sub-Region1.16543%7064%
Sub-Region1.23523%4036%
Region2150100%160100%
Sub-Region2.14530%5031%
Sub-Region2.25537%6038%
Sub-Region2.35033%5031%

 

Thank You.

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @WAKAYN 
Please refer to attached sample file with the solution

1.png2.png

Amount = SUM ( 'Table'[Value] )
% Amount = 
DIVIDE ( 
    [Amount],
    CALCULATE ( [Amount], ALL ( 'Table'[Sub-Region] ) )
)

View solution in original post

4 REPLIES 4
tamerj1
Super User
Super User

Hi @WAKAYN 
Please refer to attached sample file with the solution

1.png2.png

Amount = SUM ( 'Table'[Value] )
% Amount = 
DIVIDE ( 
    [Amount],
    CALCULATE ( [Amount], ALL ( 'Table'[Sub-Region] ) )
)

Thank you so much, tamerj1. This worked like a charm.

 

Thanks also to others who looked into this.

WAKAYN
Regular Visitor

Sorry, pleae see corrected table below (Sub-Region 1.1, 1.2, etc. and some values are fixed):

 

 Year1Year1 %Year2Year2 %
Region1100100%110100%
Sub-Region1.16565%7064%
Sub-Region1.23535%4036%
Region2150100%160100%
Sub-Region1.14530%5031%
Sub-Region2.25537%6038%
Sub-Region2.35033%5031%

 

Thank you.

this is the expected result. how is your dataset organized?

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.