Articles in this section
Category / Section

Flattening MongoDB Objects in Bold BI Using Bold ETL

Published:

When working with MongoDB as a data source in Bold BI, you may encounter objects that needs to be flattened to split the data values create meaningful visualizations. You can refer this article on how to flatten the nested JSON elements in a MongoDB collection in order to accomplish the same. Nevertheless, flattening multiple fields can make the process more challenging. Bold BI provides a feature through its ETL (Extract, Transform, Load) process to handle such scenarios. This article outlines the steps to flatten JSON data from MongoDB using Bold BI’s ETL MongoDB connector.

Prerequisites

  • Bold BI version 7.2 or above.
  • MongoDB collection with nested objects.

Steps to Flatten JSON Data

  1. Access Bold ETL: Start by opening Bold ETL and creating a new project.

etl_add_project.jpeg

  1. Include MongoDB Connector: Add the MongoDB connector template to your project.

  2. Establish Connection: Fill in the required details to connect to your MongoDB server.

etl_mongodb.jpeg

  1. Execute Project: Go to the schedules, select your project, and run it.

etl_runnow.jpeg

  1. Generate Data Source: After the project runs successfully, a Bold ETL data source will be created in Bold BI under Data sources page.

boldetl_datasource.jpeg

  1. Design Dashboards: If your MongoDB JSON data contains arrays, they will be split into separate tables by default. To combine these tables for comprehensive analysis, you can perform a join operation:
  • Identify common fields such as dlt_root_id and dlt_parent_id in both tables.
  • Use these fields to execute an inner join, allowing you to access data from both tables simultaneously.

Use this created Bold ETL data source to build your dashboards in Bold BI

Conclusion

Flattening JSON data in MongoDB for use in Bold BI dashboards is straightforward with the Bold ETL connector. By following the steps outlined above, you can transform your JSON data into a format suitable for visualization and analysis.

Additional References

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
SM
Written by Siranjeevi Murugan
Updated
Comments (0)
Please  to leave a comment
Access denied
Access denied