In data modeling, relationships between tables are essential for organizing and analyzing data effectively. A Data Relationship
defines how data in one table connects to data in another, enabling seamless integration and accurate reporting. By configuring relationships such as One-to-Many, Many-to-One, and Many-to-Many, users can build more dynamic and scalable dashboards. These relationships eliminate the need for complex joins and improve query performance, making it easier to visualize and interpret data across multiple sources
In addition to traditional joins, Bold BI Embedded now supports One-to-Many, Many-to-One and Many-to-Many relationships between tables.
If the Relation toggle is enabled and two tables are dragged and dropped, the Join icon will act as a Relation icon.
In the Data Design View, the Join icon in the tools pane will be disabled if only one table is present in the Table Design View.
Once a second table is added (dragged and dropped), the Join icon becomes enabled and functions as a Relation icon.
NOTE: If the Relation toggle is disabled, dragging and dropping two tables will allow the Join icon to function as a Join tool, not a Relation tool.
Relationships help:
Currently Bold BI supports Relationship
In a One-to-Many relationship:
One record in Table A can be related to many records in Table B, But each record in Table B is related to only one record in Table A
After enabling the Relation icon and dragging and dropping two relationship-supported tables (as discussed above), click on the Join icon. A popup window will appear to manage the relationship.
Click on the “New Relationship” button to begin creating a relationship between tables.
Choose the “From Table” and “To Table” to define the direction of the relationship.
Validate the relationship columns by selecting the appropriate key columns from each table that define the connection.
Choose the cardinality (e.g., One-to-Many, Many-to-One, Many-to-Many) based on the nature of the data.
Click the “Save” button to confirm and create the relationship.
The relationship will then be saved and managed within the Manage Relationships window.
From there, you can edit, or delete existing relationships as needed.
Save the data source after configuring relationships.
Proceed to design the dashboard using appropriate widgets.
Use the related tables to bind data to widgets and visualize meaningful insights.
The data differences between Join and Relationship have been demonstrated using the following images.
We used the same column from both tables to highlight how:
Joins may result in duplicate or mismatched records if not properly configured.
Relationships help maintain data integrity and eliminate duplicates through structured linking.
A many-to-one relationship occurs when multiple records in one table are associated with a single record in another table.
From Table A to Table B: Many-to-One (e.g., many students belong to one department)
To set up a Many-to-Many relationship in Bold BI using the example of Students, Departments, and a bridge table StudentDepartment, follow these steps:
Steps to Set Up in Bold BI
Import all three tables (Students, Departments, StudentDepartment) into Bold BI.
Go to Manage relationship by clicking the join icon in Bold BI BI and create the following relationships:
Column : Students[StudentID] → StudentDepartment[StudentID]
Cardinality: One-to-Many
Column : Departments[DepartmentID] → StudentDepartment[DepartmentID]
Cardinality: One-to-Many
NOTE: This setup creates a Many-to-Many relationship between Students and Departments through the bridge table StudentDepartment.
The data differences between Join and Relationship have been demonstrated using the following images.
Click on the Join icon to open the Manage Relationships dialog.
To edit a relationship, click the Edit icon next to the relationship entry.
To delete a relationship, click the Delete icon (trash bin) next to the relationship entry.
During configuration, if you need to exit Relationship Mode, you can either remove the dragged and dropped tables one by one from the design view, or Click the Relation Toggle bar to switch it to the disabled state.
A confirmation popup will appear with two options:
All dragged and dropped tables will be removed. All relationships will be deleted. The view will return to its initial state.
The popup will be closed. All existing relationships and tables will remain unchanged, preserving the current configuration.
Currently, Bold BI does not support expression creation directly based on data relationships. Users cannot build calculated fields or expressions that rely on relational logic between tables.
Bold BI does not support direct many-to-many relationships. However, this can be achieved manually using the Join option in the data design view.
Bold BI does not auto-detect cardinality between tables. Users must manually define the cardinality (e.g., one-to-many, many-to-one) when configuring relationships. This requires careful attention to the structure and uniqueness of key columns in each table.
Relationship has been not supported for the code view mode.
NOTE: Based on the relationships, data can be fetched from the server. For example, if there are three tables and two relationships among them, and a widget is configured with three aggregation columns from each table, then distinct related columns can be fetched separately, and multiple columns can be retrieved independently. As a result, two or more queries will be executed.