Forum Discussion
json record to table
- 6 years ago
Hi dt
Try this,
// output let Source = name, #"Converted to Table" = Record.ToTable(Source), #"Changed Type" = Table.TransformColumnTypes(#"Converted to Table",{{"Value", type text}}), #"Pivoted Column" = Table.Pivot(#"Changed Type", List.Distinct(#"Changed Type"[Name]), "Name", "Value") in #"Pivoted Column"Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
Any ideas?
Hi dt
Sorry for the late reply.
I've used the JSON sample from your original post and produced a solution in the attached file, please can you ensure that the sample is a true reflection of your scenario, if not, please can you adjust.
Unfortunately, your screenshot does not give enough information to understand the error.
- dt6 years agoFrequent Visitor
Yes, this fully reflects my problem.
Your solution in the attached file not work.
My PowerBI Desktop Version: 2.73.5586.1241 64-bit (September 2019).
What information is needed?
- Mariusz6 years agoCommunity Champion
Hi dt
Please see the below.
Once converted your sample to a record it will look like below.
Step 1 - Source // no error as on the attached.Step 2 - Convert to table // no error
Step 3 // Expanded Value
Please can you confirm in witch step do you start getting the error message?
As demonstrated above, all is working fine on my end.
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
- dt6 years agoFrequent Visitor
I upgraded to Version: 2.73.5586.1501 64-bit (September 2019)
Now everything is all right, thanks!