Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
shreyal18
Contributor
Contributor

Chi2Test_p() giving null

I am trying to run the below load script:

[sample]:
LOAD
[A],
[B],
[C],
[D]
FROM [lib://AttachedFiles/sample.csv]
(txt, codepage is 28591, embedded labels, delimiter is ',', msq);


Chi2_table_Sample:
LOAD
Chi2Test_p(
[A],
[B],
[C],
[D]) as pvalue

resident crosstab Group By [A];

 

 

##

All the variables are categorical

##

And I am getting :

shreyal18_0-1608294237294.png

##

Where am I going wrong?

Labels (1)
1 Reply
Anil_Babu_Samineni
MVP
MVP

First of all, This is "Chi2Test_p" not the script function. You can try

Aggr(Chi2Test_p([A],[B],[C],[D]), A)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful