Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
lastnn30
Post Patron
Post Patron

adding zeros to make all numbers 3 digits using Power Query.

Hi

In Power Query, how can I make sure all numbers in a column are for example 3 digits. For example if I have number like 6 then I want it to be 006 if the number was 10 I want it 010, if  a number is 333, it will stay as it is. Thank you very much for your help in advanced.

1 ACCEPTED SOLUTION
rsbin
Super User
Super User

@lastnn30 ,

A quick google search gave me these links:
https://radacad.com/add-leading-zeros-to-a-number-in-power-bi-using-power-query

https://gorilla.bi/power-query/add-leading-zeros/

 

Please note that adding leading zeros will convert your numerical columns into text columns.

Hope this helps.

Regards,

View solution in original post

1 REPLY 1
rsbin
Super User
Super User

@lastnn30 ,

A quick google search gave me these links:
https://radacad.com/add-leading-zeros-to-a-number-in-power-bi-using-power-query

https://gorilla.bi/power-query/add-leading-zeros/

 

Please note that adding leading zeros will convert your numerical columns into text columns.

Hope this helps.

Regards,

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors