SOLVED

Power Query Import

Copper Contributor

I have a data table with 25,000 rows. Power Query reads the table and all the rows but since only 1,211 of the data points in those rows are decimal, Power Query treats the values as whole numbers, even after transforming the column (Change Type). Then if I know that I need to "Load More Data", it will sometime work. I believe it depends on if the Change Type was accepted as a replace current or add new step.

1 Reply
best response confirmed by Matt_Ferguson (Copper Contributor)
Solution

@Matt_Ferguson It is my understanding that, by default, PQ detects column data types the first time after it connects to a data source. That's demonstrated by the fact that it automatically adds the "Changed Type" step in the list of applied steps. But PQ isn't always correct, as it only looks at the first 1000 rows of data. So, always assure yourself that the data types are set correctly. It doesn't matter if you do it by replacing the current setting or adding a new step. I always replace the current as I don't like to add extra steps when not needed. Anyhow, whatever data type was set last, that's what PQ will work with.

 

If you find that you frequently need to correct PQ's automatic data typing, you can switch it off under Query Options, Global, Data Load and select "Never detect column types................."

1 best response

Accepted Solutions
best response confirmed by Matt_Ferguson (Copper Contributor)
Solution

@Matt_Ferguson It is my understanding that, by default, PQ detects column data types the first time after it connects to a data source. That's demonstrated by the fact that it automatically adds the "Changed Type" step in the list of applied steps. But PQ isn't always correct, as it only looks at the first 1000 rows of data. So, always assure yourself that the data types are set correctly. It doesn't matter if you do it by replacing the current setting or adding a new step. I always replace the current as I don't like to add extra steps when not needed. Anyhow, whatever data type was set last, that's what PQ will work with.

 

If you find that you frequently need to correct PQ's automatic data typing, you can switch it off under Query Options, Global, Data Load and select "Never detect column types................."

View solution in original post