The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.
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.
Regards,
YY
Solved! Go to Solution.
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:
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.
4.The final result is as follows:
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!
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:
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.
4.The final result is as follows:
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!
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