Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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
Partner - Master

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
Partner - Master

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.