Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
JaMajka1
Partner Ambassador
Partner Ambassador

QAA - How to compare multiple fields in 2 lists?

Compare Lists function require the following settings: List 1 unique key and List 2 unique key. However, I can enter only one field there and I need to do the comparison as follows:

List1:

Field1, Field2, Field3

1,AA,aa

2,BB,bb

 

List2:

Field1,Field2,Field3

1,AA,aa

2,YY,bb

 

How can I identify in which row something is different? Naturally, not necessarily in Field2 - there might be a change in Field1 or Field3, too.

 

The only solution coming to my mind is to create a new field that concats all the fields. But is this really the smartest way how to do it? I assume there must be something nicer :).

 

Thank you,

Maria 

Labels (1)
1 Solution

Accepted Solutions
Emile_Koslowski
Employee
Employee

Hi Maria,

We don't really have the functionality to compare lists on a row-level instead of a field level.

Concatenating each row into a new field would work and I suggest you use the Transform List block to do this.

Another possible solution is to use the Compare Object block instead of the Compare Lists block, then you'd need to turn the lists into objects first, to do this, you can use the Flatten formula as shown in the example below. I've attached this example to this message.

Emile_Koslowski_0-1649942733583.png

Kind regards,
Emile

View solution in original post

1 Reply
Emile_Koslowski
Employee
Employee

Hi Maria,

We don't really have the functionality to compare lists on a row-level instead of a field level.

Concatenating each row into a new field would work and I suggest you use the Transform List block to do this.

Another possible solution is to use the Compare Object block instead of the Compare Lists block, then you'd need to turn the lists into objects first, to do this, you can use the Flatten formula as shown in the example below. I've attached this example to this message.

Emile_Koslowski_0-1649942733583.png

Kind regards,
Emile