Cheat Sheets/Power Apps/Switch
Power Fx function

SwitchPower Fx function reference

Match one value against many.

Syntax

powerfx
Switch( Formula, Match1, Result1 [, Match2, Result2, ... ] [, DefaultResult ] )

Examples

powerfx
Switch(Status, "A", "Active", "I", "Inactive", "Unknown")
The matched result
powerfx
Switch(drpPriority.Selected.Value, "Low", Color.Green, "Medium", Color.Orange, "High", Color.Red, Color.Gray)
powerfx
Switch(true, Amount > 1000, "Large", Amount > 100, "Medium", "Small")

Common mistakes & gotchas

Related Power Fx functions

From Conditional logic

Used in these tutorials

← Back to the Power Apps (Power Fx) cheat sheet