Checks one expression against several candidate values, returning whichever result pairs with the match (or a fallback otherwise). Writing SWITCH ( TRUE (), ... ) avoids nested IF chains: whichever condition is first true wins.
Read more: Microsoft Learn
In the Ultra Transcenders books
Each book explains SWITCH in context, with comparison tables and the common traps.
Terms in this definition
- VALUES
Returns in DAX the distinct column values, or table rows, still visible after filters are applied, sometimes with an extra blank entry. CALCULATE often takes the result as a table filter.
- MATCH
Used in WHERE when querying SQL Graph, it describes how to walk from node to node through edge tables, with patterns written like p1-(f1)->p2.
- Fallback
When a request fails with an error like 429 or 5xx, this Unity Gateway option tries alternative destinations one after another in the order configured. Only the first choice of destination comes from traffic splitting; retries ignore the split.
- FIRST
A DAX function available only inside visual calculations. It fetches the value at the start of one axis of the visual's matrix, which makes it handy for comparing each point with the first; its opposite is LAST.
- WINS
Windows Internet Name Service, an old way of resolving NetBIOS names to IP addresses. It is deprecated and should be replaced by DNS.
Related terms
- AI Functions Unity Catalog permissions
Gives metastore admins the ability to grant or block task-specific AI Functions held in the
system.aischema. It is Generally Available, but the account team has to switch it on, and Runtime 17.3 LTS or later is required. - Applicable model terms
A Databricks reference page naming the models that carry their own terms beyond your Databricks agreement. Customers are responsible for those terms, and they can change if you switch to a different model.
- Assume referential integrity
A relationship setting in DirectQuery and Direct Lake models that lets the engine send faster INNER JOIN queries to the source rather than OUTER JOINs. Only switch it on when every key on the many side has a match, otherwise unmatched fact rows quietly vanish from results.
- Auto-rebasing
In VKS, the automatic switch of a cluster to the latest versioned ClusterClass that still supports its Kubernetes version. Adding the
kubernetes.vmware.com/skip-auto-cc-rebaseannotation stops it. - Azure Activity
Connector for Microsoft Sentinel that streams each subscription's activity log, via diagnostic settings, into the AzureActivity table. A subscription that was hooked up the older, legacy way needs disconnecting before you switch over.
- Azure Monitor OpenTelemetry Distro
Recommended way to instrument applications for Application Insights today: Microsoft's packaged OpenTelemetry, sending logs, metrics and traces there. Python apps switch it on by calling configure_azure_monitor().
- Beacon probing
A way of detecting network failures where ESX sends a beacon frame each second over every NIC in a team. It spots faults that leave the link up, such as a problem at the nearest physical switch, and is meant for teams of three or more NICs; smaller teams should rely on link status.
- Canary management group hierarchy
A test copy of your live landing zone structure, with canary in each ID and placed directly beneath the root, that you can switch on if wanted. Policy, RBAC and subscription placement changes are tried there first, then promoted.