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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.