Hi All - I’m the product manager for the Atlas SQL Interface and Power BI Connector.
First up, the error “Missing client library for datasource” most probably means you may not have downloaded and installed the Atlas SQL ODBC driver. Here is the download for that driver: Download Atlas SQL ODBC Driver | MongoDB
Next, when the connection dialog asks for “database” it is referring to a database name, not a table. This is just the database to authenticate against and you will be able to build upon other databases within that cluster/Federated db, so long as you have permissions to those.
And if you want to publish and refresh this data, a Power BI Gateway is required. So if this gateway is on a server, the connector and driver must also reside on that server. You can download the connector and driver from our download center (as mentioned above).
And finally, Data flows does work with this connector+driver+on-premise gateway, here are the requirements and instructions:
Requirements:
- On-premise Gateway (installed and configured for the MongoDB Atlas Connector)
- MongoDB ODBC Driver (downloaded and installed on same server/pc as Gateway)
- Atlas Cluster (or Atlas Datasource)
- Atlas Federated DB (if you created a SQL Quickstart this is fine too)
- MongoDB URI for connection to your Atlas Federated DB or your SQL Quickstart Federated DB
- Power BI Service
- Workspace (not “My Workspace”)
Instructions:
- From Power BI App, navigate to Workspaces (must have a workspace other than “My Workspace)
- Select New->Dataflow
- At the top of the screen, select “Add tables”
- On the side navigation panel, select “Blank query”
- At the bottom of the Query Window, make sure your On-Premise Data Gateway is selected from the drop down
- Enter in an M and SQL statement to access your MongoDB Atlas Data
let
Source = MongoDBAtlasODBC.Query(“mongodb://atlassqlsandbox-rotpc.a.query.mongodb.net/Supplies?ssl=true&authSource=admin”, “Supplies”, “select * from Sales”, null)
in
Source
- Your table should open up in the online Power Query and now you may transform your data, save and then close it.
- You can refresh this data manually or on a scheduled basis
I will monitor this thread, please let me know if you get stuck.
Best,
Alexi