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

Mapping fields that have errors

Hello, I work with a data base with a few errors in it and I wish to remap the errors to the correct ones.

I have entries that are setup as 'SO' and they should be 'S0', I have 6 in total to 'Map' How do I go about this?

paul.

1 Reply
fosuzuki
Partner - Specialist III
Partner - Specialist III

Hi paul,

you could create a mapping table:

mapEntries:

mapping load * inline [

     Before, After

     SO, S0

     SI, S1

     SA, S4

];

and then in your load statement:

LOAD ID,

     applymap('mapEntries', YourFieldName) AS YourFieldName

FROM XXX;

Hope this helps

Fernando