logical
Syntax:
AnyColumn
Context Filtering: ✓ Yes
Parameters
Validation
- Minimum parameters: 3
- Maximum parameters: Unlimited
Examples
One
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
logical
Syntax:
Switch(value, case1, result1, [case2], [result2], ..., [else])
AnyColumn
Context Filtering: ✓ Yes
| Name | Type | Required | Description |
|---|---|---|---|
value | column|any | ✓ Yes | The value to test. |
case 1 | any | ✓ Yes | The case to test the value against. |
result 1 | any | ✓ Yes | The result to be returned if its preceding case matches the input value. |
additional cases and results | variadic | ✗ No | Several pairs can be listed in a single function. Every supplied case must have a corresponding result. |
else | any | ✗ No | The result to be returned if no cases match the value. If not supplied, a Null result is returned. |
Switch(1, 0, "None", 1, "One", "Many")
One
Switch([dimension-param], "Product Family", [Product Family], "Product Type", [Product Type])