Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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