Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi,
I have a column with alphanumeric value. Some of the values are 5 digits, I would like to create a new column and add leading zero to make it all 6 digits.
I am using below but its giving me error as the column contains alphanumeric value and is in text data type
= Table.AddColumn(#"Previous Step", "Leading 0s", each Number.ToText([C_ColumnAlphaNumeric], Text.Repeat("0",6)))
How can I add leading zeros column?
Thanks,
Daven
Solved! Go to Solution.
is this what you want?
if Text.Length([Column1])=6 then [Column1] else "0"&[Column1]
Proud to be a Super User!
is this what you want?
if Text.Length([Column1])=6 then [Column1] else "0"&[Column1]
Proud to be a Super User!
Thanks Ryan! It worked
you are welcome
Proud to be a Super User!
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
64 |
User | Count |
---|---|
135 | |
118 | |
101 | |
71 | |
61 |