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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
rnian18
Helper II
Helper II

Data Transformation in PowerBI from JSON format

Hey guys,  I am pulling some JSON data and am trying to move a column to a row.  Please see the below pictures:

 

After some initial transformations, I have the following table.  Here, the test1 column corresponds to the Epoch time and test2 column has the data corresponding to that Epoch time.  Thus, there are 5 epoch times and 5 different values.  

 

rnian18_0-1624900203143.png

 

The final table I want would be of the following format plus the Epoch time as the first column.  Basically, I transposed the column and split the comma delimited data into their own respective rows.  However, I then want to have another column before the "MONTH" column called Time.  This column would have the time values from the previous column:

rnian18_1-1624900364704.png

 

In this example, the Epoch times for all the columns are identical.  However, there will also be times where the data is read asynchronously.  Thus, there might be an entry for "MONTH" at that time, but no entry for "CURRENT_MODE".  In such scenarios, I want the data to just be null.

 

 

Is this transformation possible in PowerBI?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

2 REPLIES 2
Anonymous
Not applicable

Hi @rnian18 ,

 

You may check the pivot and unpivot feature in Query Editor.

https://docs.microsoft.com/en-us/power-query/pivot-columns 

https://docs.microsoft.com/en-us/power-query/unpivot-column 

 

Best Regards,

Jay

Hi Jay,

 

Yup I figured something out with the pivot columns on Wednesday. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.