Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi Team,
I am connecting to Cosmos DB from Power BI. I have issue in fetching data where a column has both list array and a record or list array and value. Please see the screenshot for sample.
I need to know how to extract data in this scenario. Source data cannot be modified.
Thanks in Advance.
Regards,
Karthik
Hi @karthikds ,
Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it.
Best Regards,
Eyelyn Qin
Hi @karthikds ,
To my knowledge, you could use Table.FromRecords function to convert record to table.
Hope these help:
https://community.powerbi.com/t5/Desktop/Expand-column-containing-list-of-records/td-p/425888
https://powerbi.microsoft.com/en-us/blog/how-to-expand-a-list-of-records-in-a-query/
https://guyinacube.com/2016/06/07/expand-lists-in-power-bi-also-a-look-at-m-syntax/
https://stackoverflow.com/questions/36506559/how-to-transform-list-type-in-power-query-m
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @karthikds ,
I would probably convert both to a table and then expand. Please check this article for more details:
How to expand a column that cannot be expanded in Power BI and Power Query in Excel – The BIccountan...
To transfer a list to a record you can use: Table.FromColumns( { YourList } )
And a record to a table: Table.FromRecords( { YourRexord } )
!! You need the additional curly brackets because these functions need a list/array of these input values.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
try creating 2 tables one with the records datas, and another with the list data, if need do some basic tranformation to each to match column name etc, and them append them in a new query, disablaling the first 2 after the new one its creating with the appended data from both.
Proud to be a Super User!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.