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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
arulsettu
Master III
Master III

change values in the field

Hi

i have a field like this

Capture.PNG.png

instead of S and I i have to display store and individual ho can i do that? thanks.....

24 Replies
senpradip007
Specialist III
Specialist III

Use , instead of ;

MK_QSL
MVP
MVP

Load below table first..

Mapping_Table:

Load * Inline

[

     Type, Name

     I, Indivisual

     S, Store

];

Now in the table where your CustomerType is there... use below

ApplyMap('Mapping_Table',CustomerType) as TypeName,

Hope this help..

arulsettu
Master III
Master III
Author

Hi Manish

applymap throws script error... thanks..

MK_QSL
MVP
MVP

Can you upload your file or sample data?

senpradip007
Specialist III
Specialist III


can you upload your script or sample file?

MK_QSL
MVP
MVP

Sorry, Mapping Word was missing in Mapping Load Table...

MK_QSL
MVP
MVP

it should be

Mapping_Table:

Mapping Load * Inline

[

     Type, Name

     I, Individual

     S, Store

];

Now in the table where your CustomerType is there... use below

ApplyMap('Mapping_Table',CustomerType) as TypeName,

arulsettu
Master III
Master III
Author

hi i attached the file

MK_QSL
MVP
MVP

Try enclosed file now...

MK_QSL
MVP
MVP

You can use like below also...No need for Mapping Load

ODBC CONNECT32 TO [MS Access Database;DBQ=E:\sample database\AdventureWorks.accdb];

Load      CustomerID,

            IF(CustomerType = 'S', 'Store',

               IF(CustomerType = 'I', Individual)) as CustomerTypeFull;

SQL SELECT CustomerID,

    CustomerType

FROM `Sales_Customer`;