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

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

Reply
JHob
Advocate I
Advocate I

Gateway connection to Mongo DB

I have setup a Gateway connection to a Mongo DB datasource in the Power BI service.

 

Do I need to enter the connection credentials in my Desktop Power BI report as well or is it possible to connect to the gateway and get access to the Mongo DB datasource?

 

 

1 ACCEPTED SOLUTION

Hi @JHob ,

 

"I now want to setup a Power BI dataflow to the MongoDB datasource.  Do I use the ODBC connector in the Power BI service?"

Yes, in addition, there is an article here that you may read.

Create MongoDB Dataflows on PowerBI.com 

 

Best regards,
Lionel Chen

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

5 REPLIES 5
v-lionel-msft
Community Support
Community Support

Hi @JHob ,

 

You can use the ODBC connector to connect to the Mongo DB data source in Power BI Desktop.

Connect from Microsoft Power BI Desktop 

 

Best regards,
Lionel Chen

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

Thank you Lionel

 

I have succesfully managed to used the ODBC connector in desktop.  I now want to setup a Power BI dataflow to the MongoDB datasource.  Do I use the ODBC connector in the Power BI service?

 

Kind regards

Hi @JHob ,

 

"I now want to setup a Power BI dataflow to the MongoDB datasource.  Do I use the ODBC connector in the Power BI service?"

Yes, in addition, there is an article here that you may read.

Create MongoDB Dataflows on PowerBI.com 

 

Best regards,
Lionel Chen

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

Many thanks, I now have this working.

 

I am having one further issue though.  One of the fields within an object is not populated and the column is missing when I connect in the dataflow.  There are only 9 records that have a true value in this column, the rest (several 1000) are null. 

 

Why would this column be missing?  How can I make sure that all items in an object are reflected?

You need to generate the schema in Mongo so that PowerBI can see the missing field....Example:

 

AtlasDataFederation admin> db.runCommand({ sqlGenerateSchema: 1, sampleNamespaces: ['namespace.collection'], sampleSize: 20000, setSchemas: true })

 

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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 Solution Authors