Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikviewforum
Creator II
Creator II

How prefix value of applymap with some value

Imagine I have following value for the field called "Product".

Product
-------
Pen
Pencil
Eraser
Box


Account
------
XXX
YYY
ZZZ
PPP

I want use ApplyMap, if the value of product is Pencil then while using ApplyMap I need to Prefix the corresponding Account with AA.

For example if the Account value of Pencil is zzz then I want to prefix it with AA. So the value of ApplyMap field will be AAXXX.

Please help me on this...

14 Replies
qlikviewforum
Creator II
Creator II
Author

Thanks all guys. I will check all your suggestions and will keep you updated on that.

Not applicable

if(product='Pencil','AA')&applymap(.....)

qlikviewforum
Creator II
Creator II
Author

Thank you!

What about he else part when the Product <> "Pencil" ?  or was I'm missing something in your logic?

Not applicable

it will just ignore tht or ur can use if(product='Pencil','AA','')&applymap(.....)

qlikviewforum
Creator II
Creator II
Author

Then later we can trim it to avoid any issue. Am I correct?

trim(if(product='Pencil','AA','')&applymap(.....))