Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

exclusions de données

Bonjour,

J'essaye dans qlikview d'exclure des données d'une table par rapport à une autre mais je ne sais pas comment m'y prendre.

je m'explique, j'ai une table A contenant des réferences articles et une table B contenant aussi des réferences articles et je voudrais que dans la table A j'exclu toutes les réferences qui se trouve dans la table B

1 Solution

Accepted Solutions
JonnyPoole
Employee
Employee

Ici voila un example tres simple:

TableA:

LOAD Reference,

     Value

FROM

(ooxml, embedded labels, table is Sheet1);

left join ( TableA)

LOAD Reference,

  Reference as TableBReference

FROM

(ooxml, embedded labels, table is Sheet1);

Table:

load

  Reference,

  Value

Resident TableA

where isnull(TableBReference )

;

drop table TableA;

View solution in original post

3 Replies
JonnyPoole
Employee
Employee

Ici voila un example tres simple:

TableA:

LOAD Reference,

     Value

FROM

(ooxml, embedded labels, table is Sheet1);

left join ( TableA)

LOAD Reference,

  Reference as TableBReference

FROM

(ooxml, embedded labels, table is Sheet1);

Table:

load

  Reference,

  Value

Resident TableA

where isnull(TableBReference )

;

drop table TableA;

maxgro
MVP
MVP

another solution: load table B and then load A where using not exists

tableB:

load * inline [

reference, field1

1,aaa

2,bbb

3,ccc

4,ddd

5,eee

6,fff

];

tmptableA:

load reference as tmpreference, field2 inline [

reference, field2

1,zz

2,yy

3,xx

4,ww

5,vv

6,uu

7,oo

8,nn

9,mm

];

tableA:

NoConcatenate load tmpreference as reference, field2

Resident tmptableA

where not exists (reference, tmpreference);

drop table tmptableA;

Not applicable
Author

Merci jonathan, c'est exactement la réponse qu'il me fallait pour régler mon problème.