Hi there,
I am working on some logic using length function but unfortunately I am not getting expected results.
I am using IIF(Length([Input]),Replace([Input], "0", "1"),[Input]) for generating Current Output column results.
The above logic is failing for 100 and 0019. Please if you can help me with this.
Note: As I am using Length function so I have converted all the numbers into string, but actually they need to have datatype as double in order to use them in the other part of the workflow.
| Input | Current Output | Expected output |
| 0 | 1 | 1 |
| 2 | 2 | 2 |
| | | |
| 14 | 14 | 14 |
| 1 | 1 | 1 |
| 1 | 1 | 1 |
| 100 | 111 | 100 |
| 0019 | 1119 | 19 |
0 | 1 | 1 |
0 | 1 | 1 |
0 | 1 | 1 |
| | |