Forum Discussion
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
Microsoft 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
- AnonymousNot 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
Community 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.