Number.Factorial

Updated on

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 )

Other functions related to Number.Factorial are:

Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/powerquery-m/number-factorial