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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Sai78
Contributor III
Contributor III

how to convert case into expression

 

Can you help me how to convert the below condition into qlik expression ?

 

CASE WHEN ISNULL(ManualBV_Outcome,'') = ISNULL(AutomatedBV_Outcome,'')
AND ISNULL(ManualBV_Outcome_Reason,'') = ISNULL(AutomatedBV_Outcome_Reason,'') THEN 'match'
ELSE 'nomatch' END AS Manual_Discripency_Case_Status

-----------------

select eBVDiscrpt_Parent_Case_Id

where Manual_Discripency_Case_Status = 'Match'

 

 

I tried doing this but no luck --

=COUNT ( DISTINCT IF((ManualBV_Outcome_Reason = AutomatedBV_Outcome_Reason ) AND (ManualBV_Outcome = AutomatedBV_Outcome ) , eBVDiscrpt_Parent_Case_Id))

Labels (1)
2 Solutions

Accepted Solutions
Anil_Babu_Samineni

Perhaps this? I assume, you have real null values

If(ISNULL(ManualBV_Outcome) = ISNULL(AutomatedBV_Outcome)
AND ISNULL(ManualBV_Outcome_Reason) = ISNULL(AutomatedBV_Outcome_Reason), 'match', 'nomatch') as Manual_Discripency_Case_Status

After that, you can call it out for set analysis like

COUNT ({<Manual_Discripency_Case_Status={'match'}>} DISTINCT eBVDiscrpt_Parent_Case_Id) // For match records

COUNT ({<Manual_Discripency_Case_Status={'nomatch'}>} DISTINCT eBVDiscrpt_Parent_Case_Id) // For no-match records

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

View solution in original post

Brett_Bleess
Former Employee
Former Employee

Sunitha, did Anil's post help, or are you still trying to figure things out?  If that was what you needed, do not forget to give Anil credit by using the Accept as Solution button to mark his post as the solution.  If you figured out something else, consider posting what you did and mark that.  If you still need help, leave an update.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.

View solution in original post

2 Replies
Anil_Babu_Samineni

Perhaps this? I assume, you have real null values

If(ISNULL(ManualBV_Outcome) = ISNULL(AutomatedBV_Outcome)
AND ISNULL(ManualBV_Outcome_Reason) = ISNULL(AutomatedBV_Outcome_Reason), 'match', 'nomatch') as Manual_Discripency_Case_Status

After that, you can call it out for set analysis like

COUNT ({<Manual_Discripency_Case_Status={'match'}>} DISTINCT eBVDiscrpt_Parent_Case_Id) // For match records

COUNT ({<Manual_Discripency_Case_Status={'nomatch'}>} DISTINCT eBVDiscrpt_Parent_Case_Id) // For no-match records

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
Brett_Bleess
Former Employee
Former Employee

Sunitha, did Anil's post help, or are you still trying to figure things out?  If that was what you needed, do not forget to give Anil credit by using the Accept as Solution button to mark his post as the solution.  If you figured out something else, consider posting what you did and mark that.  If you still need help, leave an update.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.