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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Query a chart based product Serial Number

Hi Pros,

I'm new to Power BI and have a little experence in excel function last time. Now I was assigned a project to display data in graphic chart based on product serial Number. All data is in a MySQL table, and I exported some like here, and I need come out a solution to present the chart with information of Air_Pressure, Mod_Temp, Oven_Temp, based on each product Serial Number. X is start time to end time..

When the product is put into Oven, the system start to sampling the system temperature every few second until the product is fully done, during this process,we need have a graphic view of the temperature based on the time for each product. (Hopefully My explaination is clear)

air_pressuremod_tempoven_tempserial Numbertimestamp
250.763003255188EZdef12:00:07 AM
249.2222352661164GJabc12:00:07 AM
249.0422362681164GJdef12:00:17 AM
16.5473952866756EYabc12:00:17 AM
250.4523003265188EZdef12:00:17 AM
250.5063013255188EZabc12:00:27 AM
249.0962362691164GJdef12:00:27 AM
16.6016972846756EYabc12:00:27 AM
249.2222372701164GJdef12:00:37 AM
16.7101992826756EYabc12:00:37 AM
250.5433013255188EZdef12:00:37 AM
16.56541012816756EYabc12:00:47 AM
249.0782382711164GJdef12:00:47 AM
250.5613013265188EZabc12:00:47 AM
249.1862392721164GJdef12:00:57 AM
16.60161032806756EYabc12:00:57 AM
250.6693023255188EZdef12:00:57 AM
250.6873013255188EZabc12:01:07 AM
16.63771042786756EYdef12:01:07 AM
249.1862392741164GJabc12:01:07 AM
16.58351062776756EYdef12:01:17 AM
249.0782402751164GJabc12:01:17 AM
250.6873023255188EZdef12:01:17 AM
16.6921082766756EYabc12:01:27 AM
249.0422422761164GJdef12:01:27 AM
250.6873023255188EZabc12:01:27 AM
249.1862452771164GJdef12:01:37 AM
250.6693023255188EZabc12:01:37 AM
16.42071102746756EYdef12:01:37 AM
16.56541112736756EYabc12:01:47 AM
249.0782462781164GJdef12:01:47 AM

 

TestData.JPG

I have no idea where I can start from, I explore data plot and pivot table in excel, but seems it is different topic and the important is it need the user to query the output chart base on product serial number, like I need create a input for this query.

 

Many thanks in advance

 

SM

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thank you Xiaoxin, for the advice. However I can not unpovit the table as the time for each product is different, and the data was sampled by machine every a few second, I found a way to get this achieved.

 

Many thanks

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @Anonymous ,

Current power bi not support to create visual with multiple legend fields or use legend and multiple values fields at same time.

If you mean create visuals with summarized serial number result, it is possible.

You can refer to following blog to unpivot three value fields and convert them as attribute and value.

Unpivot columns (Power Query)

After these step, you can use timestamps as axis, attribute to legend, value to value to create a line chart to with all value fields based on their attribute.

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

Thank you Xiaoxin, for the advice. However I can not unpovit the table as the time for each product is different, and the data was sampled by machine every a few second, I found a way to get this achieved.

 

Many thanks

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors