Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
let
Source = Xml.Tables(Web.Contents(Excel.CurrentWorkbook(){[Name="URL"]}[Content]{1}[Column1])),
Table0 = Source{0}[Table],
Table1 = Table0{0}[Table],
#"Expanded analysis" = Table.ExpandTableColumn(Table1, "analysis", {"Element:Text"}, {"analysis.Element:Text"}),
#"Expanded nominaldescription" = Table.ExpandTableColumn(#"Expanded analysis", "nominaldescription", {"Element:Text"}, {"nominaldescription.Element:Text"})
in
#"Expanded nominaldescription"
When both analysis & nominal description are present they expanded and this works perfectly. However, the same data from the API does not always need to be expanded.
How do I achieve if nominal description errors on expanding then, don't expand and just show the data?
Hi, @daniel_wild
Could you please share your sample data? What kind of expected results do you expect? You can also show it with pictures.
Please refer to the following link, hope it can help you.
https://community.powerbi.com/t5/Desktop/Cannot-Expand-Null-List/m-p/1095765#M507700
https://community.powerbi.com/t5/Desktop/Expand-Column-REST-API-JSON-Records/m-p/352934#M158794
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 33 | |
| 33 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 45 | |
| 30 | |
| 28 |