Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Compare two straight tables and provide the non matched ones in another table

Hi All,

Is it possible to compare two straight tables and proved the non matched ones in another table (in GUI)

For eg:

I have the following two tables(sample data):

TableA:

Pol NumberAmountName
AB123345AB
AC234567AC
DF8761000DF
AV001533AV
BN095746BN

Table B:

Pol NumberAmountName
AB123-002563AB
AC234-002234AC
AV001-002786AV

So i need match the above two tables- Table A contains the pol numbers and if they are renewed for the next term then its populated with -002 (Table B)

So now i need to have another straight table which compares and provides the details of the pol numbers which isnt available in the table B.

So the Table C should contain the following records:

Pol NumberAmountName
DF8761000DF
BN095746BN

Kindly let me know if this is possible.

Thanks in advance!

Anupama Jagan

9 Replies
sunny_talwar

It should be possible, would you be able to share a sample app to test this out?

mdmukramali
Specialist III
Specialist III

Hi,

Maybe one way.

=Count({<[Pol Number]={"=Count([Pol Number])=1"}>}[Pol Number])

Thanks,

Mukram.

Anonymous
Not applicable
Author

Im afraid i will not be able to share app because i have QV installed in my client machine.

I can provide the sample data which i have put it in the above tables:

  

Pol NumberAmountName
AB123345AB
AB123-002563AB
AC234567AC
AC234-002234AC
DF8761000DF
AV001533AV
AV001-002786AV
BN095746BN

So table A has the Pol Numbers without -002 and table B has only -002 ones( those are typically renenwed ones)

I need another table just to find which didnt make to renewals(basically which arent there in the table B)

Anonymous
Not applicable
Author

should i put this expression in a new table?

mdmukramali
Specialist III
Specialist III

Hi,

PFA.

Anonymous
Not applicable
Author

Actually both of the tables are in UI. Is it possible to compare the tables in UI rather than going to script?

mdmukramali
Specialist III
Specialist III

Hi,

i have done it in UI Only ,

sunny_talwar

May be try with this

=Count({<Name = {"=Count([Pol Number])=1"}>}[Pol Number])

sunny_talwar

Modified the sample attached by mdmukramali‌.. see if this looks good

=Count({<Name = {"=Count([Pol Number])=1"}>}[Pol Number])

Capture.PNG