You are building a star schema in Power BI. A fact table contains sales transactions with columns: OrderID, CustomerID, ProductID, Quantity, UnitPrice, Discount, and OrderDate. You need to create a dimension table for customers. Which columns should be included in the Customer dimension?
This option correctly represents a Customer dimension: CustomerID serves as the unique key, while CustomerName, City, and Region are all stable, customer-specific descriptive attributes that are guaranteed to be the same for every order placed by that customer. Each row corresponds to exactly one customer, maintaining the grain and enabling clean one-to-many joins to the fact table. These attributes support meaningful slicing by customer geography without causing duplication or row multiplication in the underlying fact data.
Why this answer
Option D is correct because a customer dimension should contain the customer's unique key (CustomerID) plus descriptive attributes that describe the customer, such as CustomerName, City, and Region, which are appropriate for slicing and filtering sales facts. In a star schema, the dimension holds only attributes about the entity, while transactional and numeric fields stay in the fact table. Options A and B incorrectly include ProductID and OrderID, which are keys belonging to other dimensions or the fact table, not customer attributes.
Option C incorrectly includes OrderDate, which is a date attribute that belongs in a separate Date dimension, not the Customer dimension.