SWITCH
functionCore concept: Use disconnected tables
Requirement: Create a calculated column to classify customer by age group.
Create the following calculated table:
Create the following calculate column in Customer table:
Switch True Logic: You run through some calculations and evaluate them as true. If they’re true, they will return a result.
Step 1: Create measures
Step 2: Create a disconnected table
Step 3: Create a switch measure
Step 4: Test with visual
(shorter but not that dynamic, still use disconnected table)
More interesting techniques: