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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
mahdulhaq
Contributor
Contributor

Correct Answer and Response not giving same values

I have two columns CORR_ANS(Correct Answer) and RESPN(Response) both have values YES and NO, if correct answer and respnse are equal then i want the graph to go upwards and if the correct answer and response does not match then i want the line graph to go down

I am using the condition if( CORR_ANS = CAPS, count(distinct Q_ID) , -count( distinct Q_ID) )

 

Labels (3)
5 Replies
BrunPierre
Partner - Master II
Partner - Master II

If( LTrim(UPPER(CORR_ANS))=LTrim(UPPER(RESPN)) CAPS, Count(DISTINCT Q_ID) , -Count( DISTINCT Q_ID) )

mahdulhaq
Contributor
Contributor
Author

I tried this method but it didn't give me desired answer, i want " if the caps and correct answer doesn't match the graph will show zero and if they match they will give count how many gave correct answer"

 

BrunPierre
Partner - Master II
Partner - Master II

Post some data sample & desired output.

mahdulhaq
Contributor
Contributor
Author

prob1.PNGprob2.PNGprob3.PNG

mahdulhaq
Contributor
Contributor
Author

kindly see these 3 pictures and also check there selections and their months.