Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
souadouert
Specialist
Specialist

Where IN with qlikview

Region_Zone:

LOAD Code as Code,

    upper(Replace(Région,'Région','DIRECTION REGIONALE')) AS ENTITE,

    'région' as type_entite

FROM

(ooxml, embedded labels, table is Feuil1);

Zone:

LOAD Code as Code,

     UPPER(Zone) as ENTITE,

     'zone' as type_entite

FROM

(ooxml, embedded labels, table is Feuil2);

REF:

LOAD ID ,

     AREA,

    NAME,

     DEPT_LEVEL,

     DEPT_PARENT

    

FROM

(ooxml, embedded labels, table is Feuil1);

so i need to add thius clause ->> where  NAME in (select ENTITE from region_zone )

6 Replies
sunny_talwar

May be try this

Region_Zone:

LOAD Code as Code,

    upper(Replace(Région,'Région','DIRECTION REGIONALE')) AS ENTITE,

   upper(Replace(Région,'Région','DIRECTION REGIONALE')) AS ENTITE_Check

    'région' as type_entite

FROM

(ooxml, embedded labels, table is Feuil1);

Zone:

LOAD Code as Code,

    UPPER(Zone) as ENTITE,

    'zone' as type_entite

FROM

(ooxml, embedded labels, table is Feuil2);

REF:

LOAD ID ,

    AREA,

    NAME,

    DEPT_LEVEL,

    DEPT_PARENT

FROM

(ooxml, embedded labels, table is Feuil1)

Where Exists(ENTITE_Check, NAME);

PrashantSangle

Hi,

use where exists()

REF:

LOAD ID ,

     AREA,

    NAME,

     DEPT_LEVEL,

     DEPT_PARENT   

FROM

(ooxml, embedded labels, table is Feuil1)

where exists(ENTITE,NAME)

;

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
souadouert
Specialist
Specialist
Author

Thank you sunny    

sunny_talwar

But dreamer4‌ this would check for NAME against both Region_Zone table and Zone table... Not sure if this is what souadouert‌ wants

souadouert
Specialist
Specialist
Author

thank you

PrashantSangle

Actually I did not gone through her entire script.

I just gave her logic and function which she is looking for.

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂