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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

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

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
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

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

4 REPLIES 4
mahoneypat
Microsoft Employee
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

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


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?

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.

Anonymous
Not applicable

I was able to create the control chart by unpivoting my table and following the directions. I am now struggling with finding the average measurement per day and displaying this information on my scatterplot. I would like each average per day to show on the chart and connect to the other averages

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

Find out what's new and trending in the Fabric Community.