Dashboard Mode - Why data modeling connects related tables
Business Question
How can connecting related tables help us analyze sales data by product and region?
Sample Data
SaleID
ProductID
RegionID
Quantity
SaleAmount
1
101
1
5
500
2
102
2
3
300
3
101
2
2
200
4
103
1
4
400
5
102
3
1
100
ProductID
ProductName
101
Widget
102
Gadget
103
Doohickey
RegionID
RegionName
1
North
2
South
3
East
Dashboard Components
KPI Card: Total Sales Amount
Formula: Total Sales = SUM(Sales[SaleAmount])
Result: 1500
Table: Sales by Product and Region
Uses relationships to show product names and region names with sales.
Columns: ProductName, RegionName, Total Quantity, Total Sales
Measures:
Total Quantity = SUM(Sales[Quantity])
Total Sales = SUM(Sales[SaleAmount])
Sample rows:
ProductName
RegionName
Total Quantity
Total Sales
Widget
North
5
500
Widget
South
2
200
Gadget
South
3
300
Gadget
East
1
100
Doohickey
North
4
400
Bar Chart: Sales Amount by Region
Shows total sales per region using the relationship to Region table.
Measure: Total Sales = SUM(Sales[SaleAmount])
Values:
North: 900
South: 500
East: 100
Dashboard Layout
+----------------------+----------------------+
| KPI: Total Sales | Bar Chart: Sales by |
| | Region |
+----------------------+----------------------+
| Table: Sales by Product and Region |
| |
+--------------------------------------------------+
Interactivity
Filters on ProductName or RegionName update the table and bar chart automatically because the tables are connected by relationships.
For example, selecting 'Widget' in a slicer filters the table and bar chart to show only sales for Widget.
Self Check
If you add a filter for RegionName = 'North', which components update?
The KPI card updates to show total sales only for North (900).
The table updates to show sales only for North region.
The bar chart updates to show sales only for North region (900).
Key Result
Dashboard shows total sales and detailed sales by product and region using connected tables.
Practice
(1/5)
1. Why do we connect related tables in Power BI data modeling?
easy
A. To make tables look colorful in the model view
B. To combine related data for accurate analysis and reporting
C. To delete duplicate rows automatically
D. To speed up Power BI software installation
Solution
Step 1: Understand the purpose of connecting tables
Connecting tables links related data so you can analyze combined information easily.
Step 2: Recognize the benefit in reports
Proper connections ensure reports show accurate results by relating data correctly.
Final Answer:
To combine related data for accurate analysis and reporting -> Option B
Quick Check:
Connecting tables = accurate combined data [OK]
Hint: Think: Why join data? To analyze together [OK]
Common Mistakes:
Confusing visual formatting with data relationships
Assuming connections delete duplicates
Believing connections affect software speed
2. Which of the following is the correct way to create a relationship between two tables in Power BI?
easy
A. Use the Format pane to link tables by color
B. Write a DAX formula to join tables in the Report view
C. Drag a key column from one table to the matching column in another table in Model view
D. Copy and paste data from one table into another
Solution
Step 1: Identify how relationships are created in Power BI
Relationships are made by dragging matching key columns between tables in Model view.
Step 2: Eliminate incorrect methods
DAX formulas do calculations but do not create relationships; formatting and copy-paste do not link tables.
Final Answer:
Drag a key column from one table to the matching column in another table in Model view -> Option C
Quick Check:
Drag key columns = create relationship [OK]
Hint: Drag keys in Model view to connect tables [OK]
Common Mistakes:
Trying to create relationships using DAX formulas
Confusing formatting with data linking
Copy-pasting data instead of linking
3. Given two tables: Sales with columns OrderID, ProductID, and Amount, and Products with columns ProductID and ProductName. If you create a relationship on ProductID between these tables, what will happen when you create a report showing ProductName and total Amount?
medium
A. The report will show total sales amount grouped by product name
B. The report will show blank values for product names
C. The report will show total amount without grouping
D. The report will cause an error and not display
Solution
Step 1: Understand the relationship effect
Connecting on ProductID links sales to product details, enabling grouping by product name.
Step 2: Predict report output
Using ProductName and total Amount will group sales amounts by each product correctly.
Final Answer:
The report will show total sales amount grouped by product name -> Option A
Quick Check:
Relationship on ProductID = grouped sales by product [OK]
Hint: Relationship keys enable grouping related data [OK]
Common Mistakes:
Expecting blank product names without relationship
Thinking totals show without grouping
Assuming report errors without relationship
4. You created a relationship between two tables on the CustomerID column, but your report shows incorrect totals. What is the most likely issue?
medium
A. The CustomerID columns have mismatched data types or missing values
B. You forgot to format the report colors
C. The tables are too large to connect
D. Power BI does not support relationships on ID columns
Solution
Step 1: Check relationship keys
For relationships to work, key columns must have matching data types and no missing values.
Step 2: Identify cause of incorrect totals
If data types differ or values are missing, relationships break, causing wrong report results.
Final Answer:
The CustomerID columns have mismatched data types or missing values -> Option A
Quick Check:
Matching keys needed for correct totals [OK]
Hint: Check key columns data type and completeness [OK]
Common Mistakes:
Blaming report colors for data errors
Assuming table size prevents relationships
Thinking Power BI disallows ID relationships
5. You have three tables: Orders, Customers, and Regions. Orders links to Customers by CustomerID, and Customers links to Regions by RegionID. You want to create a report showing total sales by region. What is the best data modeling approach?
hard
A. Create a relationship only between Orders and Regions directly
B. Join all tables into one big table before importing to Power BI
C. Use DAX to manually merge tables in the report
D. Create relationships from Orders to Customers on CustomerID, and Customers to Regions on RegionID, then use RegionName in the report
Solution
Step 1: Understand table connections
Orders relate to Customers by CustomerID; Customers relate to Regions by RegionID, forming a chain.
Step 2: Model relationships properly
Create relationships along this chain so data flows correctly from Orders to Regions.
Step 3: Use RegionName in report
With relationships, you can group total sales by RegionName accurately.
Final Answer:
Create relationships from Orders to Customers on CustomerID, and Customers to Regions on RegionID, then use RegionName in the report -> Option D
Quick Check:
Chain relationships enable accurate regional sales [OK]
Hint: Connect tables stepwise using keys for multi-table reports [OK]
Common Mistakes:
Trying to flatten tables before import unnecessarily
Skipping intermediate relationships
Using DAX merges instead of model relationships
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.