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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
YYlee
Helper I
Helper I

Showing matrix subtotal in a Pie Chart

Hi there,

 

I’ve attached my draft graph in Power BI. I’d like to display values in a pie chart with a Matrix subtotal as follows:'

I create the Matrix by using BI matrix itself. 

  1. If no filters are selected, the pie chart should show the total of the categories divided by 6 people.
  2. If I select "Junior," the pie chart should display (6.11 / 1.02 / 1.56) / 2
  3. If I select "Senior," the pie chart should display (7.43 / 4.1 / 6.91) / 4 

I’ve reviewed some solutions in the group but haven’t been able to get it to work. Any assistance would be appreciated.

I appreciate the help. Thanks. 

 

YYlee_1-1723786133366.png

Regards, 

YY

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for Ritaf1983's concern about this case.

 

Hi  @YYlee , 

 

I tried to create a sample data myself based on your requirement and implemented the result. Please check if there is anything that can be improved. Here is the steps:

 

1.Create a simple data:

vlinhuizhmsft_0-1724033588482.png

 

2.Create a new measure:

MEASURE =
VAR _sum =
    CALCULATE (
        SUM ( 'Table'[Value] ),
        ALLEXCEPT ( 'Table', 'Table'[Category], 'Table'[Column] )
    )
VAR _people =
    CALCULATE (
        DISTINCTCOUNT ( 'Table'[Name] ),
        ALLEXCEPT ( 'Table', 'Table'[Category] )
    )
RETURN
    DIVIDE ( _sum, _people )

 

3.Use the measure you just created as the pie chart value.

 vlinhuizhmsft_1-1724033772979.png

 

4.The final result is as follows:

 vlinhuizhmsft_2-1724033898310.png

vlinhuizhmsft_4-1724034128230.png

 

Best Regards,
Zhu
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

3 REPLIES 3
YYlee
Helper I
Helper I

Dear @Ritaf1983 , Thank you for your offer. 

 

I solve it with @Anonymous's help. 

Thank you both 🙂

Anonymous
Not applicable

Thanks for Ritaf1983's concern about this case.

 

Hi  @YYlee , 

 

I tried to create a sample data myself based on your requirement and implemented the result. Please check if there is anything that can be improved. Here is the steps:

 

1.Create a simple data:

vlinhuizhmsft_0-1724033588482.png

 

2.Create a new measure:

MEASURE =
VAR _sum =
    CALCULATE (
        SUM ( 'Table'[Value] ),
        ALLEXCEPT ( 'Table', 'Table'[Category], 'Table'[Column] )
    )
VAR _people =
    CALCULATE (
        DISTINCTCOUNT ( 'Table'[Name] ),
        ALLEXCEPT ( 'Table', 'Table'[Category] )
    )
RETURN
    DIVIDE ( _sum, _people )

 

3.Use the measure you just created as the pie chart value.

 vlinhuizhmsft_1-1724033772979.png

 

4.The final result is as follows:

 vlinhuizhmsft_2-1724033898310.png

vlinhuizhmsft_4-1724034128230.png

 

Best Regards,
Zhu
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Ritaf1983
Super User
Super User

Hi @YYlee 

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

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.

Top Solution Authors