Cheat Sheets/Power Apps/Mod
Power Fx function

ModPower Fx function reference

Remainder after division.

Syntax

powerfx
Mod( Number, Divisor )

Examples

powerfx
Mod(17, 5)
2

Zebra-striping when a row index has already been computed, e.g. via AddColumns(Sequence(...)).

powerfx
If(Mod(Index, 2) = 0, Color.White, Color.LightGray)
powerfx
Mod(RandBetween(1, 1000), 7)

Common mistakes & gotchas

Related Power Fx functions

From Math & aggregation

Used in these tutorials

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