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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
souadouert
Specialist
Specialist

applymap

REF_ENTITY:

LOAD ID ,

     AREA,

   

    upper(Replace(NAME,'DIR. REGION.','DIRECTION REGIONALE')) AS Libellé,

     DEPT_LEVEL,

     DEPT_PARENT as code_entité_mère

    

FROM

(ooxml, embedded labels, table is Feuil1)

where

/*exists(ENTITE, upper(Replace(NAME,'DIR. REGION.','DIRECTION REGIONALE'))) */

(DEPT_LEVEL='40' and DEPT_PARENT='506')or DEPT_LEVEL='80' or DEPT_LEVEL='90' or ID=506 or ID=500 ;

REF_Final:

load

  ID,

   upper(Replace(NAME,'DIR. REGION.','DIRECTION REGIONALE')) AS Libellé,

     DEPT_LEVEL,

     DEPT_PARENT as code_entité_mère ,

ApplyMap('REF_ENTITY',ID,null()) as entité_mère

FROM

(ooxml, embedded labels, table is Feuil1)

where

/*exists(ENTITE, upper(Replace(NAME,'DIR. REGION.','DIRECTION REGIONALE'))) */

(DEPT_LEVEL='40' and DEPT_PARENT='506')or DEPT_LEVEL='80' or DEPT_LEVEL='90' or ID=506 or ID=500 ;

drop table REF_ENTITY;

i need to extract the NAME of  code_entité_mère  , i tried this script but always entité_mère nul

Labels (1)
1 Solution

Accepted Solutions
YoussefBelloum
Champion
Champion

Applymap() works only with Mapping load table

ApplyMap ‒ QlikView

you need to create another table (mapping table) and load the ID and the name before the Applymap()

View solution in original post

4 Replies
YoussefBelloum
Champion
Champion

Applymap() works only with Mapping load table

ApplyMap ‒ QlikView

you need to create another table (mapping table) and load the ID and the name before the Applymap()

sunny_talwar
MVP
MVP

You have used REF_ENTITY in your ApplyMap, but REF_ENTITY is not a Mapping Table?

souadouert
Specialist
Specialist
Author

thany y youssef

souadouert
Specialist
Specialist
Author

                   
Hello SUNNY I misapplied the function apply   but now i changed the script