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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
srinivasa1
Creator II
Creator II

Apply Map

Hey any one has good example for apply map. as im first time using this feture

thx in advance.

16 Replies
srinivasa1
Creator II
Creator II
Author

Hey

Pls can any one explain me where the use of apply map?

Not applicable

Hi
Please go through example

-------------------------------------------------------------
map1:
mapping load * inline [

ID, Textvalue

1, one

2, two

3, three ] ;

ApplyMap ( 'map1', 1, 'xxx' ) It will return 'one'

ApplyMap ( 'map1', 2 ) It will return 'two'


ApplyMap ( 'map1', 4 ) It will return 4


ApplyMap ( 'map1', 5, 'No result' ) It will returns No result

---------------------------------------------------------------

Regards--

Nayan

Not applicable

Hi

Suppose you have two tables say Cutomer master and Sales, Now Customer Master table contain CustID, CustName

and Sales conatin CustID, Amt etc. Now if you want to find Customer Name wise sales then you can Use Applymap to find Customer name by usinf CutomerId

Regards--

Nayan

srinivasa1
Creator II
Creator II
Author

Hi Nayan

thx for reply

ApplyMap ( 'map1', 1, 'xxx' ) where i has to write in etl script or Experssion?

srinivasa1
Creator II
Creator II
Author

thx nayan once again.pls let me know where i can write this Apply map Script?

thx in advance.

Not applicable

you can write in application Script

srinivasa1
Creator II
Creator II
Author

Hi Im getting error.pls find beloow script any mistake in beloow script





LOAD

UniqueID

,

UniqueID

as

ID

FROM

ABC.txt

(

txt, codepage is 1252, embedded labels, delimiter is '|', msq

)

where

UniqueID=15

;

map1:

mapping

load * inline

[

ApplyMap

( 'map1', 1, 'xxx' ) ;

thx once agin.





stevedark
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi there,

I have just blogged on the many uses and the required syntax for the ApplyMap Statement:

http://bit.ly/kQcAZ5

Regards,

Steve

Not applicable

i have a question....

in apply map statement it would return one, two ,or three as they are mentioned in inline  above

like one for 1

two for 2

three for 3

n would return no result for 5 as its nt present in line while using applay map this is clear

thn why it would result 4 for 4???????

applymap('map1',4) returns 4                  // how?????????