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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
quyenduong
Helper II
Helper II

Cannot change text to number in Power Query Editor

Hi there, 

 

I have several columns (all columns with Est & Year in the header) that include null value and number like this 190,513. Power BI automatically recognizes this column as Text but not Number. Now, I must change the data type from Text to Whole Number. Here is what I did:

 

  • In the Power Query Editor: Transform > Choose the column > Change Data Type from text to whole number 

 

Then the whole column becomes Error (screenshot below is example of one column, it will be similar when i apply the same for the other columns).

 

quyenduong_0-1665421002883.png

I read some questions in the platform but still cannot solve this problem. Thank you so much for answering. 

Best regards, 

4 REPLIES 4
JasminParis
New Member

Bonjour,

 

J'ai rencontré le même souci, avez-vous trouvé la solution, SVP?

 

amitchandak
Super User
Super User

@quyenduong , Can you please click error and share that

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak , I found out that the data containing numbers always have "comma" between numbers, therefore, it fails to convert to Whole number.

quyenduong_0-1665429182124.png

 

I saw that there is a function to replace value "," to nothing but I wonder if i can apply this for all columns containing number so I dont have to do it one by one. 

Thank you

 

Hi @quyenduong 

Thanks for reaching out to us.

Usually a number column is automatically recognized as a number column, unless the number contains some spaces, then the column will be recognized as text type. Could you share a sample file for us to check? thanks

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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