Sub topic 1
One Date Table, Several Roles: Order, Ship, and Due Dates
Prerequisites
Assume you know basic Power BI or Analysis Services Tabular modeling, star schemas, fact and dimension tables, one-to-many relationships, simple DAX measures, and the basic idea of filter context.
One Date Table, Several Roles
A sales fact table often stores several dates for one business event:
OrderDate: when the customer placed the order.ShipDate: when the order left the warehouse.DueDate: when shipment was expected.
All three columns can point to the same Date dimension. The Date table is a role-playing dimension because it plays different roles in the model.
The Date table usually contains one row per calendar date. It can also contain columns such as year, month, quarter, and weekday. A single, well-designed Date table avoids repeating these attributes in the fact table.
How an Active Relationship Filters the Fact Table
An active relationship is a relationship that Power BI uses automatically when it evaluates a visual or measure. For example, if Date[Date] is related actively to Sales[OrderDate], selecting March 2026 from the Date table filters sales rows whose order date is in March.
A simple measure then follows that filter:
Sales Amount = SUM ( Sales[SalesAmount] )With the usual single-direction relationship, filters move from the Date dimension to the Sales fact table.
| Date selection | Fact rows selected |
|---|---|
| March 2026 | Rows with an order date in March 2026 |
Why Only One Relationship Can Be Active
Power BI cannot normally make all three relationships active at the same time. If one Date table filtered Sales through OrderDate, ShipDate, and DueDate, a single date selection could apply three meanings at once. This would create ambiguous filter paths and unclear totals.
A common design makes the order-date relationship active. The ship-date and due-date relationships remain in the model but are inactive. They can be used explicitly in a later measure when that calculation needs a different date role.
Exercise
A report shows March sales when the Date table is filtered to March. Which date does that filter use if the active relationship connects Date[Date] to Sales[OrderDate]?
Show answer
It uses the order date. The filter reaches Sales through the active OrderDate relationship.