![]() |
VOOZH | about |
The CData API Server enables you to use REST, OData, JSON, or Open APIs to connect to and query MongoDB data. The OData standard enables real-time access to the live data, and support for OData is integrated into Power BI. This article details how to import an OData feed of MongoDB data into Microsoft Power BI.
Accessing and integrating live data from MongoDB has never been easier with CData. Customers rely on CData connectivity to:
MongoDB's flexibility means that it can be used as a transactional, operational, or analytical database. That means CData customers use our solutions to integrate their business data with MongoDB or integrate their MongoDB data with their data warehouse (or both). Customers also leverage our live connectivity options to analyze and report on MongoDB directly from their preferred tools, like Power BI and Tableau.
For more details on MongoDB use case and how CData enhances your MongoDB experience, check out our blog post: The Top 10 Real-World MongoDB Use Cases You Should Know in 2024.
If you have not already done so, download the CData API Server. Once you have installed the API Server, follow the steps below to begin producing secure MongoDB OData services:
To work with MongoDB data from Microsoft Power BI, we start by creating and configuring a MongoDB connection. Follow the steps below to configure the API Server to connect to MongoDB data:
Next, create a user to access your MongoDB data through the API Server. You can add and configure users on the Users page. Follow the steps below to configure and create a user:
Having created a user, you are ready to create API endpoints for the MongoDB tables:
Having configured a connection to MongoDB data, created a user, and added resources to the API Server, you now have an easily accessible REST API based on the OData protocol for those resources. From the API page in API Server, you can view and copy the API Endpoints for the API:
π API EndpointsAfter pulling the data into Power BI, you can create data visualizations in the Report view. Follow the steps below to create a pie chart:
You can change sort options by clicking the ellipsis (...) button for the chart. Options to select the sort column and change the sort order are displayed.
You can use both highlighting and filtering to focus on data. Filtering removes unfocused data from visualizations; highlighting dims unfocused data. You can highlight fields by clicking them:
π A highlighted genre in a pie chart (SQLite is shown)
You can apply filters at the page level, at the report level, or to a single visualization by dragging fields onto the Filters pane. To filter on the field's value, select one of the values that are displayed in the Filters pane.
π Filtered pie chart (SQLite is shown)Click Refresh to synchronize your report with any changes to the data.
If you are interested in connecting to your MongoDB data (or data from any of our other supported data sources) from Microsoft Power BI, download API Server to begin creating flexible and customizable REST, OData, JSON and Open APIs from any database or data store! As always, our world-class support team is ready to answer any questions you may have.
Learn more or sign up for a free trial:
CData API Server