Dashboard Mode - LOD with date dimensions
Business Question
How can we analyze total sales per year and compare it with sales per month using Level of Detail (LOD) expressions with date dimensions?
Jump into concepts and practice - no test required
How can we analyze total sales per year and compare it with sales per month using Level of Detail (LOD) expressions with date dimensions?
| Order ID | Order Date | Sales |
|---|---|---|
| 1001 | 2023-01-15 | 150 |
| 1002 | 2023-02-20 | 200 |
| 1003 | 2023-02-25 | 100 |
| 1004 | 2023-03-10 | 250 |
| 1005 | 2024-01-05 | 300 |
| 1006 | 2024-02-15 | 350 |
| 1007 | 2024-03-20 | 400 |
{ FIXED YEAR([Order Date]) : SUM([Sales]) }+----------------------+-----------------------+ | Total Sales per Year | Sales per Month Chart | | (KPI Card) | | +----------------------+-----------------------+ | Detailed Orders Table | +---------------------------------------------+
A year filter allows users to select a specific year. When a year is selected:
If you add a filter to select the year 2023, which components update and how?
DATETRUNC('month', [Order Date]) do in Tableau?{FIXED DATETRUNC('year', [Order Date]) : SUM([Sales])}, what will be the result if the view shows data by month for 2023 with monthly sales as [1000, 1500, 1200]?{FIXED [DATETRUNC('month', [Order Date])] : SUM([Sales])} but Tableau shows an error. What is the likely problem?