Hi EbenezarjayabaskarJoel-8243,
Thanks for reaching out to Microsoft Q&A.
To connect Azure Cosmos DB for MongoDB API to Power BI without using 3rd party ODBC connectors or tools, Microsoft provides some options, pls go trhough and let me know if this will suit your needs:
Connection Methods
- Azure Synapse Link:
- This method allows you to build Power BI reports with minimal impact on your transactional workloads. By enabling Azure Synapse Link, you can create a direct connection to your Cosmos DB data without requiring ETL processes. This is particularly useful for real-time reporting and analytics.
- Power BI Connector for Azure Cosmos DB:
- You can use the built-in cosmosdb connector in PowerBI Desktop. This option is available in import mode, which means you will be importing data into Power BI. To connect:
- Open Power BI Desktop --> Select Get Data > Azure > cosmosdb(beta).
- Enter the cosmosDB account endpoint URL and your account key (preferably the read-only key for security).
- Once connected, you can navigate through your databases and collections to select and load the data you need.
- Direct Query Mode:
- If you prefer to work with live data, you can use DirectQuery mode when connecting through Azure Synapse Link. This allows you to create dashboards and reports based on real-time data from your Azure Cosmos DB account without needing to import data into Power BI.
- Using Azure Functions:
- Although not a direct connection method, you can leverage Azure Functions to create a REST API that interacts with your cosmosdb. This api can then be called from Power BI using the Web connector, allowing you to fetch data dynamically. This approach requires additional setup but can be beneficial for specific use cases where custom data processing is needed.
Also, pls beware of the limitations of the api for mongodb, as it may not support all MongoDB features. It's essential to test your queries and data interactions to ensure compatibility
Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.