cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
reniersteynberg Frequent Visitor
Frequent Visitor

Data load - Column type predetermined by Power BI

Hi Community

 

I am having some difficulty selecting data type for columns I import.

 

When I import an Excel file on the Desktop version, after selecting 'get data', I am presented with this screen:

 

Data import window.PNG

 

As you can see it says data has been truncated due to size. At this point Power BI has also already decided what it would it believes each column type to be.

 

As you can see, is believes the first column is text, and the second numerical.

 

POSITION A: I will refer back to this position just now.

 

I will then select "Edit" and move on to the Power Query Editor screen:

 

Power Query Editor.PNG

 

At this point I should be able to change the data type of the columes, which you know I can do by clicking on the ABC, 123, etc. 

 

My problem comes in that, for example with column two, Power BI has already decided at POSITION A that this column is numerical. So when I change it to text, all the cells you see will move to the left hand side, as it is now text, which is obviously not a problem. The problem is that when it decided at POSITION A that the column is numerical, further down there were other cells in the column that had some letters in (which it did not look at when making its initial choice), which were thus text, and since not being numerical they were already read as errrors as soon as we moved to the second screen above. So after I change the column to text as it should be, or even if I leave it, how Power BI has already predetermined that this column is a certain type based on only a few rows is causing me obvious problems.

 

Only workaround I have at the moment is to first pull in a dummy file with all the same heading and ensure that the type of data that I want power bi to pick up is in the first few rows, as after POSITION A for me to try and change it is worthless.

 

Any advice on how I can either get Power BI to look at all the rows on the first load when determining the data type of each column, or how I can get it to not enforce its initial data type selection as strongly will be much appreciated.

 

Many thanks.

 

Regards

Renier

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Data load - Column type predetermined by Power BI

HI, @reniersteynberg 

Just click File->Options and Settings->Options

Then currenrt file and disable Type Detection

6.JPG

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
gpiero Member
Member

Re: Data load - Column type predetermined by Power BI

 

 

@reniersteynberg 

Hi,

 

this one could be an option. It gives you the complete control to change datatype according your needs.

 

Otherwise you could select "Based on entire dataset".

pict.PNG

 

 

 

Community Support Team
Community Support Team

Re: Data load - Column type predetermined by Power BI

HI, @reniersteynberg 

Just click File->Options and Settings->Options

Then currenrt file and disable Type Detection

6.JPG

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 185 members 2,048 guests
Please welcome our newest community members: