Skip to main content
Go back

Nulos elegantes con Coalesce

#powerapps #power-fx

Stop nesting If statements to check if a value is blank. Coalesce returns the first value that is not null (blank) from the list of arguments.

power fx
// ❌ Verbose
If(IsBlank(TextInput1.Text), "No Name", TextInput1.Text)

// ✅ Elegant
Coalesce(TextInput1.Text, "No Name")

It’s perfect for default values in forms or labels.

Mind the separator

Remember that if your Power Apps is configured for the European region, you will need to change commas , to semicolons ; in formulas. And use double semicolons ;; for chaining functions where normally a single semicolon ; would be used.