Task
The supplier file uses country names such as Germany, Spain, and France. The output table needs short ISO codes.
Short answer
Create country_code from country and add replacements: Germany → DE, Spain → ES, France → FR.
How to Do It in Eofferix
- Open the settings of the output
country_codecolumn.
The click is on the settings icon of the country_codecolumn. - In
Transformations, add oneEqual→Replace withrule for each country.
The Transformationsblock shows the full rule chain for this case. - Save the column settings and go to the
Exportstep.
Before / After
Before
source data| supplier_id | country |
|---|---|
| S-100 | Germany |
| S-101 | Spain |
| S-102 | France |
After
result| supplier_id | country_code |
|---|---|
| S-100 | DE |
| S-101 | ES |
| S-102 | FR |