Cheat Sheets/Power Apps/With
Power Fx function

WithPower Fx function reference

Name temporary values inline.

Syntax

powerfx
With( { Name1: Value1, Name2: Value2, ... }, Formula )

Examples

powerfx
With({tax: 0.1}, total + total * tax)
Computed value
powerfx
With({subtotal: Sum(colCart, Qty * Price)}, subtotal + subtotal * 0.08)
powerfx
With({rec: LookUp(Staff, ID = locId)}, rec.Name & " – " & rec.Department)

Common mistakes & gotchas

Related Power Fx functions

From Table shaping

Used in these tutorials

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