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
Anonymous
Not applicable

Problem to import a text variable from an excel file

Hello,

 

I am trying to import an excel file which contains 6 text variables.  The third column contains value such as:

 

Col2

no value

00

01

10

010

185

and so on.

 

In the excel file, the variable is reconigzed as a text variable.  For a reason, I don't know, when I import the Excel file into Power BI, the col2 is converted into numerical variable.  Is there a way to keep the orginal format.


Thanks in advanced for your help

alepage

1 ACCEPTED SOLUTION
Gordonlilj
Solution Sage
Solution Sage

You can also disable the option so power bi cannot automatically detect data types. You find it under options -> Current File - > Data load

 

Capture.PNG

 

View solution in original post

2 REPLIES 2
Gordonlilj
Solution Sage
Solution Sage

You can also disable the option so power bi cannot automatically detect data types. You find it under options -> Current File - > Data load

 

Capture.PNG

 

vanessafvg
Super User
Super User

@Anonymous  you should be able to remove the changed type step from power query, do you go into the query editor?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors