Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Apply Map with inline

Hi All,

For all other hardcoded value below in inline table, i should display as Functional Staff for all Designation.

I tried this code but somewhere it's wrong. Kindly help!

FunctionalROLE:

mapping LOAD * INLINE [

  DESIGNATION,FUNCTIONAL_ROLE

  S01,Functional Manager

  S02,Functional Manager

  S03,Functional Manager

  S04,Functional Manager

  S05,Functional Staff

  S06,Functional Staff

  S07,Functional Staff

  S08,Functional Manager

];

LOAD Distinct DESIGNATION,

     ApplyMap('FunctionalROLE',DESIGNATION,'Functional Staff')

     FROM

[..\01_QvdGenerators - 05032013\01_SourceQVD\DIM_DESIGNATION.qvd]

(qvd);

Thanks,

Selva

1 Solution

Accepted Solutions
neetu_singh
Partner - Creator III
Partner - Creator III

Hi,

Please find the attached file, may be it will help you out.

If not please elaborate your query nd if possible send me the sample file.

Thanks

Neetu

View solution in original post

3 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Try this.

    

FunctionalROLE:

mapping LOAD * INLINE [

  DESIGNATION,FUNCTIONAL_ROLE

  S01,Functional Manager

  S02,Functional Manager

  S03,Functional Manager

  S04,Functional Manager

  S05,Functional Staff

  S06,Functional Staff

  S07,Functional Staff

  S08,Functional Manager

];

LOAD Distinct DESIGNATION,

     ApplyMap('FunctionalROLE',DESIGNATION) as New_Designation

     FROM

[..\01_QvdGenerators - 05032013\01_SourceQVD\DIM_DESIGNATION.qvd]

(qvd);

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
neetu_singh
Partner - Creator III
Partner - Creator III

Hi,

Please find the attached file, may be it will help you out.

If not please elaborate your query nd if possible send me the sample file.

Thanks

Neetu

Not applicable
Author

Thanks Neethu..

I want exactly the same..

Selva