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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
MauriceLudo
Creator II
Creator II

flag compare two table

Hello,
All codes in Table A are not necessarily present in table B
I would like to add a new type of field flag contennant EMC 'for the codes in both tables and' NO EMC 'for others.
Thank you for your help
cordially
Maurice

1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

See attached

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

11 Replies
avinashelite

could you please share the sample data for the same??

MauriceLudo
Creator II
Creator II
Author

I can send you in private if you wanted

avinashelite

I don't need any confidential data

just like this would be enough

Table1:

A,B,C

1,A,aa

2,B,cc

so that we could get an idea how is the data linked and what the comparison we need to do 

MauriceLudo
Creator II
Creator II
Author

the two fields to be compared in the table  TIERS and CRM_CLIENTS

vinieme12
Champion III
Champion III

Use ApplyMap to flag available codes in each table

TableA_Codes

MAPPING LOAD

     DISTINCT Codes,

     'InA' as Flag

FROM TABLEASOURCE;

TableB_Codes

MAPPING LOAD

    DISTINCT Codes,

     'InB' as Flag

FROM TABLEBSOURCE;

///NOW Add FLAGS TO YOUR Tables

TABLEA:

LOAD *,

Applymap('TableB_Codes',Codes,'NotInB') as CodeFlag

FROM TABLEASOURCE;

TABLEB:

LOAD *,

Applymap('TableA_Codes',Codes,'NotInA') as CodeFlag

FROM TABLEBSOURCE;

Hope it helps !

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
vinieme12
Champion III
Champion III

See attached

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
MauriceLudo
Creator II
Creator II
Author

Nice , thank you very much Vineeth

MauriceLudo
Creator II
Creator II
Author

Hi vinieme12 , please can you help me optimize an application, I made several handling but I have not managed to reduce the response time.

thank you

vinieme12
Champion III
Champion III

Hi Maurice,

By response time do you mean dashboard performance or data reload time?

This depends on many things, I will need to look into your app and understand your dataset to suggest anything.


How many rows of data you are dealing with?


Is there something in particular that is causing a problem like a pivot/straight table/ chart?

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.