Hello!
I recently got the below dataset and would like to do some transformation:
| Name | Group No |
| John | 123 |
| Sam | 5647 |
| Apple | 000458 |
| Shally | 679412 |
For the column `group no`, I have to make sure the length is 6. If this is not the case, we add '0's before the string.
So I try to write the below formula but it does not work
IF Length([Group No]) < 6
THEN (6 - Length([Group No]) * "0" + [Group No]
ELSE null()
ENDIF
The expected result would be:
| Name | Group No |
| John | 000123 |
| Sam | 005647 |
| Apple | 000458 |
| Shally | 679412 |
Any ideas on how to do that are highly appreciated.
Thank you,