# ChiInv Script and chart function

`ChiInv()` returns the inverse of the one-tailed probability of the chi^2^ distribution.

Syntax:

CHIINV(prob, degrees\_freedom)

Return data type: number

Arguments:

Arguments

| Argument | Description |
| --- | --- |
| prob | A probability associated with the chi^2^ distribution. It must be a number<br>between 0 and 1. |
| degrees\_freedom | An integer stating the number of degrees of freedom. |

This function is related to the ChiDist function in the following way:   
`If prob = CHIDIST(value,df), 
 then CHIINV(prob, df) = value`

Limitations:

All arguments must be numeric, else NULL will be returned.

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/StatisticalDistributionFunctions/ChiInv.htm)

#### Examples and results:

| Example | Result |
| --- | --- |
| CHIINV(0.9237827,<br>15 ) | Returns 8.0000 |

## Learn more

* [ChiDist Script and chart function](https://help.qlik.com/en-US/sense/May2026/Subsystems/Hub/Content/Sense_Hub/Scripting/StatisticalDistributionFunctions/ChiDist.htm)