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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
gilbertendaya
Helper IV
Helper IV

How to connect to DocumentDB

Hi,

 

I would like to ask for assistance on how to connect to DocumentDB.

I have here sample URL:

 

mongodb://sample-user;:password@Sample-cluster.node.us-east-1.docdb.amazonaws.com:27017/sample-database?readPreference=secondaryPreferred&replicaSet=rs0

 

How to connect using the GetData options.

Please advise.

Thank you.

11 REPLIES 11
bindhuk
Regular Visitor

I am sharing what I tried to get the documentdb data to powerbi. Configured the connection to documentdb using python and loaded one of collection as dataframe. From powerbi when you select GetData you have the option to configure python script, using that ran the python script and the dataframe was loaded to powerbi. Next you can transform data using power query as needed or I am assuming you could make the necessary changes in the python script itself and load the final dataframe.

 

Read the limitations of using python script:

https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-python-scripts

 

Referred the below link for establishing connection to documentdb

https://stackoverflow.com/questions/64828294/python-ssh-tunnel-into-ec2-and-connect-to-documentdb

@amitchandak  thank you for the links.

Is the BI connector from the URL that you sent, free for use?

pranit828
Community Champion
Community Champion

Hi @gilbertendaya 

 

Please check the below link for steps.

https://www.progress.com/blogs/mongodb-odbc-driver-for-data-integration-with-power-bi

 





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

Hi @pranit828 thank you for the response.  I'm new on MongoDB.

Is this driver a freeware?

HI @gilbertendaya 

It is not, You have to download it from mongodb site.

Hopefully the below link will help.

https://docs.mongodb.com/bi-connector/master/reference/odbc-driver/





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

@pranit828 sorry. What I mean was that once I downloaded it in the URL that you have provided:

1. It is free to download

2. I can use it for a long time and it will not expire?

Hi @gilbertendaya 

 

The registered versions will ask for a key.

You may download and install as it is mentioned in the MongoDB url link.





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

@pranit828 thank you for the continuous responses.

Where can I get this key?

HI @gilbertendaya 

Is it asking you for a key when you install? Hopefully not.

Or does it go smoothly?

 





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

@pranit828 I haven't tried it yet. I just want to make sure that this is free to use 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.