Number.Factorial is a Power Query M function that calculates the factorial of a given number. The function returns the factorial value of the input number.
Compatible with: Power BI Service Power BI Desktop Excel Microsoft 365
Syntax
Number.Factorial( number as nullable number ) as nullable number
Description
Returns the factorial of the number number
.
Examples
Find the factorial of 10.
// Output: 3628800
Number.Factorial( 10 )
Related functions
Other functions related to Number.Factorial are:
- Number.Abs
- Number.Combinations
- Number.Exp
- Number.IntegerDivide
- Number.Ln
- Number.Log
- Number.Log10
- Number.Mod
- Number.Permutations
- Number.Power
- Number.Sign
- Number.Sqrt
