Cheat Sheets/Power Apps/CountRows
Power Fx function

CountRowsPower Fx function reference

Count rows in a table.

Syntax

powerfx
CountRows( Table )

Examples

powerfx
CountRows(Filter(Tasks, !Done))
A number
powerfx
CountRows(colCart) & " items in cart"
powerfx
If(CountRows(Filter(Tasks, Status = "Open")) = 0, "All caught up!")

Common mistakes & gotchas

Related Power Fx functions

From Filtering, search & sort

Used in these tutorials

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