Forum Discussion
Dynamically expanding all the columns containing lists/records received in a JSON response from APIs
I am new to Power Query and working on Power BI.
There are multiple Web APIs that return a nested JSON response having multiple lists and records.
I need to write a single generic code to dynamically expand all the lists and records in any JSON response using Power Query, without knowing the names/number of the key-value pairs in it.
Also, the datatypes of the columns should be set automatically using the same code.
Any help is greatly appreciated.
Thanks in advance.
4 Replies
- Arif1033Regular Visitor
Hi, I used the M-code in the below link -
bu now i see an i option like below (Image included) - Please let me know what should be the next steps here
after i click on Invoice i get an error (Image included)
- ImkeFCommunity Champion
I wrote a function for that some time ago:
- Arif1033Regular Visitor
I apologise i did not quite get it - am new to power query and API's - am using the below rest API - can you give me some examples of what refrence i should be using it