Skip to main content

Fact

Fact() returns the factorial of a positive integer x.

Syntax:  

Fact(x)

Return data type: integer

Limitations:  

If the number x is not an integer, it will be truncated. Non-positive numbers will return NULL.

Examples and results:  

  • Fact( 1 ): returns 1
  • Fact( 5 ): returns 120 ( 1 * 2 * 3 * 4 * 5 = 120 )
  • Fact( -5 ): returns NULL

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!

Join the Analytics Modernization Program

Remove banner from view

Modernize without compromising your valuable QlikView apps with the Analytics Modernization Program. Click here for more information or reach out: ampquestions@qlik.com