Forum Discussion

SelflearningBi's avatar
SelflearningBi
Icon for Helper III rankHelper III
3 years ago
Solved

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


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

 

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi  SelflearningBi

     

    Here's my solution.

    1.Create a new table for a slicer.

     

    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.

     
     

    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.

     

     

     

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi  SelflearningBi

     

    Here's my solution.

    1.Create a new table for a slicer.

     

    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.

     
     

    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.