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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

Pivoting MySQL - Transforming sensor values under separate columns instead of each line

I get 3 rows every time my sensor logs data. I want to transform the table in Power Bi desktop so I can group each of these rows by the date/time stamp and sort all the sensor values under different columns. Added a screen shot of what it looks like and how I want to tenasform it.  Any suggestions? 

 

Screenshot 2019-04-11 11.08.01.png

 

PS: Sorry, for the noob question

1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User

In the query editor start by getting rid of the id_channel, id_certificate and value_raw columns. Then click on the "systemlog_001.channel.name_sys" column, then under the transform tab click on the "Pivot Column" button and choose the value_col column as your Values Column in the pivot dialog.

View solution in original post

2 REPLIES 2
d_gosbell
Super User
Super User

In the query editor start by getting rid of the id_channel, id_certificate and value_raw columns. Then click on the "systemlog_001.channel.name_sys" column, then under the transform tab click on the "Pivot Column" button and choose the value_col column as your Values Column in the pivot dialog.

Anonymous
Not applicable

Worked like a charm! Thanks a lot 

 

Capture.PNG

 

 

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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