Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Creating a control chart with multiple y measurements for one x value

I am creating a control chart, but am having trouble plotting my data because of the various y measurements (M1...M5) per x value (date) on a scatter plot in POWER BI. My data set looks like this. I would like to include all 5 measurements per day, the avg of the measurements per day, upper control limits and lower control limits. 

        A                     B      C      D      E       F

1      Date              M1   M2   M3    M4    M5

2    7/6/2021           4       5       4      2      5 

3    7/8/2021           3       2       5      4      3 

4    7/9/2021           4       3       4      6      4

  • You should unpivot your data and make your analysis/visualization simpler.  In the query editor, right click on the Date column and choose "Unpivot Other Columns".  This will create an Attribute and Value column (or whatever you name them).  You can then use the Attribute column as the legend in your visual, but use individual measures for each property (avg, max, std, etc.), instead of having to write a set of measures for each column/measure.

     

    Pat

     

4 Replies

  • mahoneypat's avatar
    mahoneypat
    Icon for Microsoft Employee rankMicrosoft Employee

    You should unpivot your data and make your analysis/visualization simpler.  In the query editor, right click on the Date column and choose "Unpivot Other Columns".  This will create an Attribute and Value column (or whatever you name them).  You can then use the Attribute column as the legend in your visual, but use individual measures for each property (avg, max, std, etc.), instead of having to write a set of measures for each column/measure.

     

    Pat

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      I was able to unpivot my columns and use the attribute column as the legend, but it still will not display the points. I am not able to insert the value column as the Y Axis. Is there a step I am skipping?

      • v-janeyg-msft's avatar
        v-janeyg-msft
        Icon for Community Support rankCommunity Support

        Hi, Anonymous 

         

        I agree mahoneypat, you still need to modify your measure for use. If you are confused, Can you share some sample data ? So we can modify measure for you.

         

        Best Regards

        Janey Guo

         

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