Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
chriszone
Contributor
Contributor

Tabellenwert mit Excel ändern

Hallo

Ich würde gerne Feldwerte unbennen, dazu habe ich eine Excelliste.
Es sind sehr viele Änderungen, daher kann ich diese nicht einfach in den Daten ändern, sondern sollte über das Script die Werte einlesen.

Beispiel.

Tabelle X

Wert: J01AA01 soll dann Alexander heissen.
Wert: J01AA02 soll dann Stefan heissen. usw....

In der Excel Datei sind es 268 Zeilen, diese möchte ich nicht von Hand schreiben.

1 Reply
JordyWegman
Partner - Master
Partner - Master

Hi Chris,

You can use a so called 'Mapping load' for this.

Put this in your script:

MapCode2Name:
Mapping Load
  Code
  Name
From [YourSource]
;

FinalTable:
Load
  *,
  ApplyMap('MapCode2Name',Code,'KeineName') as NameReplaced
From [YourSource]
;

With an ApplyMap you create a table that can be used for replacing field values. By executing the ApplyMap you refer to the mapping table, then based on which field it should replace the values and if none is found, return 'KeineName'. This fill will be names NameReplaced.

Jordy

Climber

Work smarter, not harder