Dashboard Mode - Creating calculated fields
Business Question
How can we calculate total sales and average sales per order to better understand our sales performance?
Jump into concepts and practice - no test required
How can we calculate total sales and average sales per order to better understand our sales performance?
| Order ID | Product | Quantity | Unit Price | Sales Region |
|---|---|---|---|---|
| 1001 | Notebook | 2 | 15 | North |
| 1002 | Pen | 5 | 3 | South |
| 1003 | Binder | 1 | 10 | East |
| 1004 | Pen | 10 | 3 | West |
| 1005 | Notebook | 3 | 15 | North |
| 1006 | Binder | 4 | 10 | South |
SUM([Quantity] * [Unit Price])AVG([Quantity] * [Unit Price])[Quantity] * [Unit Price][Quantity] * [Unit Price]+----------------------+----------------------+ | Total Sales (KPI) | Average Sales (KPI) | +----------------------+----------------------+ | Bar Chart: Sales by Region | +---------------------------------------------------------------------+ | Table: Detailed Sales | +---------------------------------------------------------------------+
A filter for Sales Region allows users to select one or more regions. When a region is selected, all components update:
If you add a filter for Sales Region = North, which components update and what are their new values?
Sales?[Sales].[Sales] + 10 uses [Sales] + 10, which is correct. Sales + 10 misses brackets, C uses curly braces which are incorrect here, and A uses aggregation which is not needed for simple addition.IF [Profit] > 0 THEN 'Profit' ELSE 'Loss' END, what will be the result for a record where [Profit] is -50?[Profit] is greater than 0. If yes, returns 'Profit', else returns 'Loss'.IF [Sales] > 1000 THEN 'High' ELSE 'Low'IF [Sales] < 500 THEN 'Low' ELSEIF [Sales] <= 1000 THEN 'Medium' ELSE 'High' END correctly uses ELSEIF with <= 1000 for 'Medium' and ends with END. IF [Sales] < 500 THEN 'Low' ELSEIF [Sales] < 1000 THEN 'Medium' ELSE 'High' END excludes 1000 from 'Medium'. IF [Sales] < 500 THEN 'Low' ELSEIF [Sales] < 1000 THEN 'Medium' ELSEIF [Sales] > 1000 THEN 'High' END has an extra ELSEIF but no final ELSE. IF [Sales] < 500 THEN 'Low' ELSEIF [Sales] <= 1000 THEN 'Medium' ELSEIF [Sales] > 1000 THEN 'High' misses END keyword.