Forum Discussion

adthomas's avatar
adthomas
Frequent Visitor
4 years ago
Solved

Display a donut chart based on 2x2 matrix

I have a matrix chart based on my data similar to the one below. I'm trying to display it as a donut chart where every value (installed alloy, to go alloy, installed other, to go other) is its own se...
  • Anonymous's avatar
    Anonymous
    4 years ago

    You need to unpivot the two columns as attributed and then concatenate those attributes with each material: 

     

    Step 1: Unpivot Column Values:

     

    You can do this by right clicking on Material and selecting "Unpivot Other Columns". This transforms the field headers into row values. 

     

    Step 2: Text Combine in M Power Query:

     

    This is just a simple concatenation function which joins the materials with the unpivoted values for a new field header and set of values to use in the data visual below. 

     

    Step 3: Drop the Values into the Desired Chart: 

     

    However, since these data are so heavily skewed, certain slice results are quite obfuscated in this particular data visual; donut and pie charts are really only effective visuals when they have a small number of relatively unskewed data points. I'd probably consider a column or bar chart instead. 

     

    Hope this helps,