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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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