Task
The supplier sends length in different units: 1200 mm, 80 cm, 1.5 m. The output column needs centimeters.
Short answer
First keep the number. If the source contains mm, divide by 10; if it contains the separate unit m, multiply by 100; leave cm unchanged.
How to Do It in Eofferix
- Open the settings of the output
length_cmcolumn.
The click is on the settings icon of the length_cmcolumn. - Add number extraction
\d+(?:[,.]\d+)?, then source-column conditions:\bmm\b→ divide by10,\bm\b→ multiply by100.
The Transformationsblock shows the full rule chain for this case. - Save the column settings and go to the
Exportstep.
Before / After
Before
source data| sku | length_raw |
|---|---|
| SKU-800 | 1200 mm |
| SKU-801 | 80 cm |
| SKU-802 | 1.5 m |
After
result| sku | length_cm |
|---|---|
| SKU-800 | 120 |
| SKU-801 | 80 |
| SKU-802 | 150 |