Overview of Calculated Fields in Datasets
Calculated fields allow users to add new fields to the original detailed data for analysis when the base data lacks necessary fields. They operate at the detail level (before final aggregation in the view) and are dynamically constructed only when used in an analysis to optimize performance. Common use cases include:
- Type Conversion: Converting date strings to date formats or text to numeric types.
- Arithmetic: Calculating values like
Sales Amount = Unit Price * Quantity. - Logical Judgments: Using
CASE WHENfor classification (e.g., Age >= 18 then 'Adult'). - Aggregations: Using window functions for cumulative sums, rankings, or partitioned sums.