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.
Hello All,
I'm stuck trying to add the headers to the json content.
My source is the list of the json data i.e. the table is this format
Column |
Records1 |
Records2 |
Records3 |
Records4 |
Records5 |
Records6 |
And each records of the table have json data like
object1: | value1 |
object2: | value2 |
object3: | value3 |
object4: | value4 |
object5: | value5 |
object6: | value6 |
I want to give the header to all of the records content like this:
ColumnName | Value |
object1: | value1 |
object2: | value2 |
object3: | value3 |
object4: | value4 |
object5: | value5 |
object6: | value6 |
How do I achieve this?
The simplest thing to try would be to expand it all out so that each Object is a column, and then unpivot your data to get an Attribute and Value column like you are looking for. If you provide some sample JSON, a more specific solution can be suggested.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
The easiest way is to do a splitcolumns operation in the transform tab. Just split on the colon (:) and rename the resulting columns.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.