Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join 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.

Reply
karthikds
New Member

Cosmos DB date modeling issue: same column has List and Value

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.

 

karthikds_0-1609669810831.png

 

Thanks in Advance.

 

 

Regards,

Karthik

5 REPLIES 5
Anonymous
Not applicable

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

Anonymous
Not applicable

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.

ImkeF
Community Champion
Community Champion

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

amitchandak
Super User
Super User

@karthikds , Maybe separate these into two-column and then take action.

 

@ImkeF , any advice on this

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
StefanoGrimaldi
Resident Rockstar
Resident Rockstar

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. 





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.