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

View all the Fabric Data Days sessions on demand. View schedule

Reply
justivan
Helper II
Helper II

Show percentage of parent total - Matrix Visual

Hello,

To be honest, I'm not really sure if what I'm trying to do is possible at all. What I'm trying to do is show the percentage based on the parent total but I want the parent total to display the actual value. Say for example, Address Beach have a total of 500 room night produced in which client2 contributed 96.6% on that 500 room nights. I'm not really sure how to approach this in power BI I just generated this in excel pivout's table and showed the value as % of Parent Total. Is this doable in matrix visual?

justivan_0-1625386244852.png

Thank you in advance!

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@justivan 

You can do it this way but using the FORMAT function. I sed a sample data set in Power BI, you can replicate the same for your data.

% of Total = 
IF(
    ISINSCOPE(financials[Segment]),
        
    DIVIDE(
        [Total Sales],
        CALCULATE(
            [Total Sales],
            ALLSELECTED( financials[Segment] )
        )
    ),
    FORMAT( [Total Sales], "#,#0" )
)

Fowmy_0-1625390559681.png

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

3 REPLIES 3
Fowmy
Super User
Super User

@justivan 

You can do it this way but using the FORMAT function. I sed a sample data set in Power BI, you can replicate the same for your data.

% of Total = 
IF(
    ISINSCOPE(financials[Segment]),
        
    DIVIDE(
        [Total Sales],
        CALCULATE(
            [Total Sales],
            ALLSELECTED( financials[Segment] )
        )
    ),
    FORMAT( [Total Sales], "#,#0" )
)

Fowmy_0-1625390559681.png

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Hi @Fowmy ,
This is it! I tried using IF and ISFILTERED to identity the hierarchy then do the calculations according to the result but have given up because of the formats. Parent is number so the child are showing decimals. I didn't know you can do it that way. I'll certainly look into that ISINSCOPE function but if you could tell me, is ISFILTERED  a valid approach too? Thank you so much for this!

@justivan 
You can use ISFILTERED but if you insert a slicer with Segment, the measure would not give you the expected results. ISINSCOPE check if the column is grouped within the query.

Find more details here: https://dax.guide/isinscope/




Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors