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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
veronicaxge
Frequent Visitor

Excel Number columns read as Text

I have number columns with emty cells in Excel. When I connect to Power BI, these columns are autodetected as text columns, instead of Number column.

 

Is there a setting such that Power BI will detect these columns as Numbers? 

(I am aware that I could click on "Data type: Text" dropdown and change them back to Numbers but I have hundreds of these columns. Clicking one by one is what I hope to avoid...)

 

Thanks for answering this! 

 

111.PNG

1 ACCEPTED SOLUTION
vivran22
Community Champion
Community Champion

Hello @veronicaxge 

 

Ideally, if the source column formatting is number, Power BI/Query will pick accordingly. In case if it doesn't, then you can define it using Power Query Advanced Editor:

You might find a row in the Advanced Editor #" Changed Type" with the list of the column names along with the column properties {"Column Name" , type "Column properties"}

 

Capture1.JPG

 

For setting the column properties as a decimal number you should use {"Clm Name", type number }

 

Capture2.JPG

You have to do this setting once and going forward, Power BI will format the columns accordingly.

 

Br,

Vivek

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions help users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @veronicaxge ,

You can turn on the feature “Automatically detect column types and headers for unstructured sources” in Power BI desktop to auto detect data type by following steps. If this option is unchecked, the data type of each column be defaulted to Text. You can find more details in this documentation.

  1. Open Power BI desktop
  2. Click File -->Options and Settings -->Options
  3. CURRENT FILE --> Data Load, check the option “Automatically detect column types and headers for unstructured sources” under Type Detection tab

         autodetect data type.JPG

     4.   Re-connect the data to the previous excel file

 

Best Regards

Rena

Adamtall
Resolver III
Resolver III

Hi,

 

press on a column then press Ctrl A and press "Detect Data Type"

If you have some columns that needs to be unmarked then hold Ctrl and press on the column.

 

test27.PNG

 

/Adam

rajulshah
Resident Rockstar
Resident Rockstar

Hello @veronicaxge,

 

You can use SHIFT or CTRL key to change the data type. I don't know any of other method to make this easier.

vivran22
Community Champion
Community Champion

Hello @veronicaxge 

 

Ideally, if the source column formatting is number, Power BI/Query will pick accordingly. In case if it doesn't, then you can define it using Power Query Advanced Editor:

You might find a row in the Advanced Editor #" Changed Type" with the list of the column names along with the column properties {"Column Name" , type "Column properties"}

 

Capture1.JPG

 

For setting the column properties as a decimal number you should use {"Clm Name", type number }

 

Capture2.JPG

You have to do this setting once and going forward, Power BI will format the columns accordingly.

 

Br,

Vivek

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions help users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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