transformations:lookup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
transformations:lookup [2015/01/29 23:20] – dmitry | transformations:lookup [2018/08/15 14:21] – dmitry | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Map ===== | + | ===== Lookup |
- | This transformations | + | This action |
- | When value not found three options available: | + | When value is not found, three options |
* Keep old value | * Keep old value | ||
* Leave cell empty | * Leave cell empty | ||
* Put some predefined (default) value | * Put some predefined (default) value | ||
+ | |||
+ | EXAMPLE | ||
+ | |||
+ | **Table 1:** Canadian Olympic Champions 2014 | ||
+ | |||
+ | ^ Gold medalist | ||
+ | | Dara Howell | ||
+ | | Justine Dufour-Lapointe | ||
+ | | Kaillie Humphries | ||
+ | | Alex Bilodeau | ||
+ | | Heather Moyse | P.E.I. | ||
+ | | Charles Hamelin | ||
+ | |||
+ | **Objective: | ||
+ | |||
+ | **Table 2:** Substitution look-up table | ||
+ | |||
+ | ^ Old name ^ New name ^ | ||
+ | | Quebec | ||
+ | | QC | Quebec | ||
+ | | Que. | Quebec | ||
+ | |||
+ | **Transformation: | ||
+ | * Replace value in column: Province | ||
+ | * Using table: Table 2 | ||
+ | * Look up in column: Old name | ||
+ | * Replace with values from column: New name | ||
+ | * When not found: Keep original value | ||
+ | |||
+ | **Result:** | ||
+ | |||
+ | ^ Gold medalist | ||
+ | | Dara Howell | ||
+ | | Justine Dufour-Lapointe | ||
+ | | Kaillie Humphries | ||
+ | | Alex Bilodeau | ||
+ | | Heather Moyse | women’s bobsleigh | ||
+ | | Charles Hamelin | ||
+ |
transformations/lookup.txt · Last modified: 2021/07/19 02:31 by craigt