Dashboard Mode - Calculated columns vs measures
Business Question
How do calculated columns and measures differ in Power BI, and when should you use each to analyze sales data?
How do calculated columns and measures differ in Power BI, and when should you use each to analyze sales data?
| Order ID | Product | Quantity | Unit Price | Region |
|---|---|---|---|---|
| 1001 | Notebook | 2 | 15 | East |
| 1002 | Pen | 5 | 3 | West |
| 1003 | Notebook | 1 | 15 | East |
| 1004 | Pen | 10 | 3 | North |
| 1005 | Binder | 4 | 8 | South |
| 1006 | Notebook | 3 | 15 | West |
Total Sales = SUMX(Sales, Sales[Quantity] * Sales[Unit Price])Sales Amount = Sales[Quantity] * Sales[Unit Price]Order ID, Product, Quantity, Unit Price, Sales Amount (calculated column)Total Sales+----------------------+---------------------+ | KPI Card | Bar Chart | | Total Sales = 167 | Total Sales by Reg. | +----------------------+---------------------+ | Table Visual (Sales Data) | | Order ID, Product, Quantity, Unit Price, | | Sales Amount (Calculated Column) | +--------------------------------------------+
A slicer on Region filters the bar chart and the table visual. The KPI card updates the total sales measure based on the selected region. The calculated column Sales Amount remains static because it is computed row by row when data loads.
If you add a filter for Region = East, which components update?