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: 
Anonymous
Not applicable

How to compare 2 columns in the table and put not matching results?

Count the number of wrong status in compare Group1 and Group2, considering the following exceptions:

Logics.JPG

Attached the sample data to count

1 Solution

Accepted Solutions
oknotsen
Master III
Master III

Use the index() function.

Index ‒ QlikView

Example:

if(index(column(2), column(1))>0, 'Correct', 'Wrong')

May you live in interesting times!

View solution in original post

6 Replies
oknotsen
Master III
Master III

Use the index() function.

Index ‒ QlikView

Example:

if(index(column(2), column(1))>0, 'Correct', 'Wrong')

May you live in interesting times!
Anonymous
Not applicable
Author

Thank you for your answer Onno.

Actually I'm looking for not matching entries (between Group1 and Group2).

Sample Data screenshot.JPG

oknotsen
Master III
Master III

Change the > to =

May you live in interesting times!
settu_periasamy
Master III
Master III

Hi,

i think, already you got answer from okg‌, you just need to change field name instead of column (if you want that in front end you can use the column function)

Directory;

LOAD Group1,

     Group2,

     if(index(Group2, Group1)>0, 'Correct', 'Wrong') as New

FROM

[Sample data.xlsx]

(ooxml, embedded labels, table is Sheet1);

Capture.JPG

Anonymous
Not applicable
Author

Thanks okg and Settu. It works well

oknotsen
Master III
Master III

If your question is now answered, please flag the Correct Answer (via the big "Correct Answer" button near every post).

If not, please make clear what part of this topic you still need help with .

May you live in interesting times!