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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

ODBC MONGO TROUBLES ON SQL QUERY

Hello! im trying to connect pbi with mi db on mongo atlas  i have set up bi connector and the odbc in mi local pc

I can see the tables when i get the data , but the problems come when i do the connection to odbc it shows me several collections(really in my database is only 1 collection named orders) one who is the real collection and other tables wich are the nested collections inside the principal as you see :

mordonez86_0-1595027864615.png

if i choose to import the orders table only , and then i expand te column items the query gets real real slow and never bring results ( i guess its because im getting in a circular reference)

 

Ive tried to filter the table just to bring some fields directly with a sql statement  , but get me an error as you see:

mordonez86_1-1595028015883.pngmordonez86_2-1595028028407.png

but when i connect to the entire table the column exists

mordonez86_3-1595028115491.png

Im sure that the error is somewere in my sql but ive never used the bi connector of mongo db atlas 

Any help is welcome , and if you need furter information just let me know 

Regards!!

3 REPLIES 3
Anonymous
Not applicable

Hi, @gregrosa85, @Anonymous, @dax: I am facing issues in Power Query while selecting/querying array items from https://studio3t.com/knowledge-base/articles/sql-query/#querying-arrays link. 
I have a collection below, want to select the array elements in my power query.

RGouda_1-1654689366458.png

Below are the errors I am getting:

RGouda_2-1654689822321.png

RGouda_3-1654690190941.png

 

 

RGouda_4-1654690275289.png

Please help!. 

 

gregrosa85
New Member

Hello,

in my case ` (backticks) helped. I needed to wrap it like `nestedTableName.field` with backticks.

In my case BetconstructTrans is a base table and jsonBetConstAddInfo is an array with nested docments 

Screenshot (14).png

 

dax
Community Support
Community Support

Hi @Anonymous , 

I saw your column name is "order_items.item.id" in your image, so you could try to use this in your query to see whether it work or not(you also need to make sure your table name is correct). By the way, I am not sure whether this is caused by the "." in column name, if above column name can't work, you ciould try to rename column as "order_items_item_id", then use this in query to check it.

Best Regards,
Zoe Zhi

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

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.

Top Kudoed Authors