# Chi2-test functions

Generally used in the study of qualitative variables. One can compare observed frequencies in a one-way frequency table with expected frequencies, or study the connection between two variables in a contingency table.

Use the drop-down on each function to see a brief description and the syntax of each function. Click the function name in the syntax description for further details.

If the function is used in the load script, the values are iterated over a number of records as defined by a group by clause.

If the function is used in a chart expression, the values are iterated over the chart dimensions.

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/StatisticalTestFunctions/chi2-tests/chi2_tests.htm)

#### Chi2Test\_chi2

Chi2Test\_chi2() returns the aggregated chi2-test value for one or two series of values.

[**chi2test_chi2**](https://help.qlik.com/en-US/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/StatisticalTestFunctions/chi2-tests/chi2test_chi2.htm)(col, row, actual\_value[, expected\_value])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/StatisticalTestFunctions/chi2-tests/chi2_tests.htm)

#### Chi2Test\_df

Chi2Test\_df() returns the aggregated chi2-test df value (degrees of freedom) for one or two series of values.

[**chi2test_df**](https://help.qlik.com/en-US/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/StatisticalTestFunctions/chi2-tests/chi2test_df.htm)(col, row, actual\_value[, expected\_value])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/StatisticalTestFunctions/chi2-tests/chi2_tests.htm)

#### Chi2Test\_p

Chi2Test\_p() returns the aggregated chi2-test p value (significance) for one or two series of values.

[**chi2test_p**](https://help.qlik.com/en-US/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/StatisticalTestFunctions/chi2-tests/chi2test_p.htm)(col, row, actual\_value[, expected\_value])

## Learn more

* [T-test functions](https://help.qlik.com/en-US/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/StatisticalTestFunctions/ttest/t_tests.htm)
* [Z-test functions](https://help.qlik.com/en-US/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/StatisticalTestFunctions/ztest/z_tests.htm)