Forum Discussion

madashelliam's avatar
madashelliam
Regular Visitor
10 years ago

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

  • MattAllington's avatar
    MattAllington
    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.

  • v-haibl-msft's avatar
    v-haibl-msft
    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