0
0
Power BIbi_tool~8 mins

Data model best practices in Power BI - Dashboard Guide

Choose your learning style9 modes available
Dashboard Mode - Data model best practices
Goal

Understand how to build a clean and efficient data model in Power BI to create fast and accurate reports.

Sample Data
OrderIDCustomerIDProductIDOrderDateQuantityPriceRegion
1001C001P0012024-01-10250North
1002C002P0022024-01-15130South
1003C001P0032024-02-05520North
1004C003P0012024-02-20350East
1005C004P0022024-03-01430West
1006C002P0032024-03-15220South
CustomerIDCustomerNameSegment
C001AliceRetail
C002BobWholesale
C003CharlieRetail
C004DianaWholesale
ProductIDProductNameCategory
P001WidgetGadgets
P002GizmoGadgets
P003ThingamajigTools
Dashboard Components
  • KPI Card: Total Sales
    Formula: Total Sales = SUMX(Sales, Sales[Quantity] * Sales[Price])
    Shows total revenue from all sales.
  • KPI Card: Total Orders
    Formula: Total Orders = DISTINCTCOUNT(Sales[OrderID])
    Shows total number of orders.
  • Bar Chart: Sales by Region
    X-axis: Region
    Y-axis: Total Sales (using Total Sales measure)
    Shows sales distribution across regions.
  • Table: Sales Details
    Columns: OrderID, CustomerName, ProductName, Quantity, Price, Total Sale (calculated as Quantity * Price)
    Shows detailed sales data combining related tables.
  • Relationships
    Sales[CustomerID] linked to Customer[CustomerID]
    Sales[ProductID] linked to Product[ProductID]
    These relationships enable combining data from multiple tables efficiently.
Dashboard Layout
+----------------------+----------------------+
|      Total Sales      |     Total Orders     |
|      (KPI Card)       |      (KPI Card)      |
+----------------------+----------------------+
|                      Sales by Region Chart                      |
|                          (Bar Chart)                           |
+---------------------------------------------------------------+
|                         Sales Details Table                    |
+---------------------------------------------------------------+
Interactivity

Filters on Region and Category allow users to narrow down data. Selecting a region updates the bar chart, KPI cards, and sales details table to show only data for that region. Selecting a product category filters the sales details and charts accordingly. Relationships ensure filters flow correctly between tables.

Self Check

If you add a filter for Region = South, which components update and what changes?

  • Total Sales and Total Orders KPI cards show totals only for South region.
  • Sales by Region bar chart highlights or filters to South region data.
  • Sales Details Table shows only orders from South region.
Key Result
A Power BI dashboard demonstrating best practices in data modeling with clean relationships, KPIs, charts, and detailed tables.