Cheat Sheets/Power Apps/CountIf
Power Fx function

CountIfPower Fx function reference

Count rows matching a condition.

Syntax

powerfx
CountIf( Table, Condition1 [, Condition2, ... ] )

Examples

powerfx
CountIf(Tasks, Status = "Open")
A number
powerfx
CountIf(Tasks, Status = "Open", Priority = "High")
powerfx
lblCount.Text = CountIf(Orders, CustomerID = ThisItem.ID) & " orders"

Common mistakes & gotchas

Related Power Fx functions

From Filtering, search & sort

Used in these tutorials

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