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: 
marwen_garwachi
Creator II
Creator II

Need help

Hello,

How can i do to identify the values existing in both table A and Table B  without joining them by creating new column in table B (if value exist in table A then 1 else 0 ) ? 

Thanks for your help

1 Solution

Accepted Solutions
Anonymous
Not applicable

Maybe this is what you want (your French version is clearer):

A:

LOAD * INLINE [

  Dossier_ID

    1

    2

    3

    4

    5

    6

];

B:

LOAD

     Dossier_ID,

    if(exists(Dossier_ID), 1,0) as "B Exists in A"

INLINE [

  Dossier_ID

    1

    5

    10

    11

    12

    13

];

View solution in original post

5 Replies
Anonymous
Not applicable

Maybe this is what you want (your French version is clearer):

A:

LOAD * INLINE [

  Dossier_ID

    1

    2

    3

    4

    5

    6

];

B:

LOAD

     Dossier_ID,

    if(exists(Dossier_ID), 1,0) as "B Exists in A"

INLINE [

  Dossier_ID

    1

    5

    10

    11

    12

    13

];

Not applicable

you can try this......

maxgro
MVP
MVP

another one

in bold the differerence with previous answer

MAP:

mapping load Dossier_ID, 1 as flag;

LOAD * INLINE [

  Dossier_ID

    1

    2

    3

    4

    5

    6

];

B:

LOAD

     Dossier_ID,

     ApplyMap('MAP', Dossier_ID, 0) as "B Exists in A"

INLINE [

  Dossier_ID

    1

    5

    10

    11

    11

    12

    13

];

marwen_garwachi
Creator II
Creator II
Author

Thanks a lot it works !

marwen_garwachi
Creator II
Creator II
Author

Thanks a lot that's exactly what i need !