Dashboard Mode - Type conversion functions
Business Question
How can we convert data types in Tableau to analyze sales data correctly and display meaningful KPIs and charts?
Jump into concepts and practice - no test required
How can we convert data types in Tableau to analyze sales data correctly and display meaningful KPIs and charts?
| Order ID | Customer | Order Date | Sales (Text) | Quantity (Text) | Region |
|---|---|---|---|---|---|
| 1001 | Alice | 2024-01-15 | "100.50" | "2" | East |
| 1002 | Bob | 2024-02-20 | "200" | "3" | West |
| 1003 | Charlie | 2024-03-05 | "150.75" | "1" | East |
| 1004 | Diana | 2024-04-10 | "300" | "4" | South |
| 1005 | Eva | 2024-05-18 | "250.25" | "2" | West |
FLOAT([Sales (Text)]) converted and summedSUM(FLOAT([Sales (Text)])) = 100.50 + 200 + 150.75 + 300 + 250.25 = 1001.5INT([Quantity (Text)]) converted and summedSUM(INT([Quantity (Text)])) = 2 + 3 + 1 + 4 + 2 = 12FLOAT([Sales (Text)]) for numeric sales values+----------------------+----------------------+ | Total Sales KPI | Total Quantity KPI | +----------------------+----------------------+ | Bar Chart: Sales by Region | +---------------------------------------------------------------------+ | Table: Orders with Converted Types | +---------------------------------------------------------------------+
A filter on Region allows users to select one or more regions. When a region is selected:
This helps users focus on specific areas and see how sales and quantities change.
If you add a filter for Region = East, which components update and what are their new values?
'123' into an integer?'2023-06-01' to a date in Tableau?INT('45.67')FLOAT('abc')[Sales] stored as string values like '1000', '2000', and '3000'. You want to calculate the average sales as a number. Which formula correctly converts and averages these values?