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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
SelflearningBi
Helper III
Helper III

pie charts

Model NameQtyValueOD1 Yes/NoOD2 Yes/NoOD3 Yes/NoOD 4Yes/No
A2100Yes NoYes
B3200YesYes  
C1300NoNoNoNo


I would like to create 3 pie chart showing total pertange of all together OD1~ OD4 is yes/ no/blank in value, quantity, and number of model name

SelflearningBi_1-1665480661884.png


I would like to know is it poosible to do with 4 ODs in one pie char? if yes how to do it?  thanks

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @SelflearningBi

 

Here's my solution.

1.Create a new table for a slicer.

 vstephenmsft_2-1665740267951.png

2.Create a measure to return different restuls.

Measure = SWITCH(SELECTEDVALUE('Table (2)'[Type]),"number of model name",COUNT('Table'[Model Name]),"quantity",SUM('Table'[Qty]),"value",SUM('Table'[Value])) 

3.Create the pie chart and the slicer. The results are as follows.

 7.png8.png9.png
 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @SelflearningBi

 

Here's my solution.

1.Create a new table for a slicer.

 vstephenmsft_2-1665740267951.png

2.Create a measure to return different restuls.

Measure = SWITCH(SELECTEDVALUE('Table (2)'[Type]),"number of model name",COUNT('Table'[Model Name]),"quantity",SUM('Table'[Qty]),"value",SUM('Table'[Value])) 

3.Create the pie chart and the slicer. The results are as follows.

 7.png8.png9.png
 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

amitchandak
Super User
Super User

@SelflearningBi , My advice would be to unpivot all 4 columns and then try

 

https://radacad.com/pivot-and-unpivot-with-power-bi

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.