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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
madashelliam
Regular Visitor

Problem with data type from an excel file

I have a table of data i import from excel with employee id as a column when i import the data the employee id with letters in them do not import i have tried changing the field to text and number and re-importing but doesnt seem to make any difference.

 

any suggestions on where im going wrong?

2 REPLIES 2
v-haibl-msft
Microsoft Employee
Microsoft Employee

@madashelliam

 

Please try with the solution provided by MattAllington. If your problem still persists, could you please provide some data in you excel table which can cause it? Based on my testing, if the column contains both number and text in the excel table, all data in this column can be imported to Power BI Desktop with data type “Any”.

 

Best Regards,

Herbert

MattAllington
Community Champion
Community Champion

Almost certainly your query step has automatically set an integer number format early in the query.  If you then switch it back to string later in the query - it is too late - the damage is done.  Find the step "Changed data type" that turned it into Integer and delete that step.  That should fix it.



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.