Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |