Number.Factorial

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:

BI Gorilla Blog

Last update: August 25, 2023 | Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/powerquery-m/number-factorial
© 2023 BI Gorilla. All rights reserved. Content derived from Microsoft documentation is property of Microsoft Corp.