Number.Permutations is a Power Query M function that calculates the number of permutations that can be generated from a set of items with a specified permutation size. The function returns the calculated number of permutations.
Compatible with: Power BI Service Power BI Desktop Excel Microsoft 365
Syntax
Number.Permutations(
setSize as nullable number,
permutationSize as nullable number,
) as nullable number
Description
Returns the number of permutations that can be generated from a number of items, setSize
, with a specified permutation size, permutationSize
.
Examples
Find the number of permutations from a total of 5 items in groups of 3.
// Output: 60
Number.Permutations( 5, 3 )
Related functions
Other functions related to Number.Permutations are:
- Number.Abs
- Number.Combinations
- Number.Exp
- Number.Factorial
- Number.IntegerDivide
- Number.Ln
- Number.Log
- Number.Log10
- Number.Mod
- Number.Power
- Number.Sign
- Number.Sqrt
