cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Alienvolm
Helper III
Helper III

Using no-SQL data sources

Hi, 

 

I'm not very familiar with no-SQL databases as data sources and I'm trying to figure out how to flatten my model with a Cosmos DB source in a way that will work. 

 

The documents I'm working with are JSON files with a dynamic structure. I used the Cosmos DB Connector, and I seem to be able to transform the Records in the initial tableinto other tables via the Transform into Table button: 

 

Initial table:

Initial tableInitial table

Expanded Record in row 1:

Alienvolm_1-1623854611968.png

Clicked on the Convert into table button:

Alienvolm_2-1623854691693.png

Resulting table:

Alienvolm_3-1623854728831.png

 

Now... I have some questions on how to proceed from here: 

1) Do I have to go through thisprocess for all the rows?

2) My resulting table still has some Lists and Records in it. So, if I go ahead and transform them all into tables, that might work for this specific document. But when a new JSON file comes in, and there is a different number of rows, does that mean that I need a different query for each new document? 

 

I'm trying to wrap my head around it and I'm quite confised on how to make this work...

 

Thanks in advance for your help and suggestions! 

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @Alienvolm ,

 

You can try to click the button circled in red, and then expand all at once.

Screenshot 2021-06-18 134545.pngScreenshot 2021-06-18 134529.png

 

If new data is imported, you need to do this operation again.

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-stephen-msft
Community Support
Community Support

Hi @Alienvolm ,

 

You can try to click the button circled in red, and then expand all at once.

Screenshot 2021-06-18 134545.pngScreenshot 2021-06-18 134529.png

 

If new data is imported, you need to do this operation again.

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Kudoed Authors