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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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