Power Pivot CSV Number Formats

walshj5

New Member
Joined
May 13, 2015
Messages
2
I have a combined CSV file with three years of data (debits and credits). There are about 1.7m rows. When I import to Power Pivot, the the numbers with decimals change from for example .94 to 1.00. What am I doing wrong?
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
That questions always makes Rob Collie shake his head. YOU did not do anything wrong... the software did. :)

Here is my guess (and it's just a guess... as this doesn't sound 100% familiar -- usually I see this with a bunch of number rows, then letters blow you up)... A whole bunch of columns at the beginning of your data were whole numbers. Later on... you started getting some decimal numbers. But by then Power Pivot had incorrectly "guessed" the column was of whole numbers.

*If* that is the case, I know of a few workarounds... none are perfect
* Somehow re-arrange your data to get some decimals first.
* Use Power Query to bring in your data, it tends to be more awesome for this.
* There is such a thing as a "format file" for a CSV. I have never actually created one, but that would probably solve this.
 
Upvote 0
That questions always makes Rob Collie shake his head. YOU did not do anything wrong... the software did. :)

Here is my guess (and it's just a guess... as this doesn't sound 100% familiar -- usually I see this with a bunch of number rows, then letters blow you up)... A whole bunch of columns at the beginning of your data were whole numbers. Later on... you started getting some decimal numbers. But by then Power Pivot had incorrectly "guessed" the column was of whole numbers.

*If* that is the case, I know of a few workarounds... none are perfect
* Somehow re-arrange your data to get some decimals first.
* Use Power Query to bring in your data, it tends to be more awesome for this.
* There is such a thing as a "format file" for a CSV. I have never actually created one, but that would probably solve this.
Many thanks. The sort work around worked.
 
Upvote 0
Glad to hear scottsen's sort suggestion worked. For the benefit of others I'll chime in with my suggestion - Do the "format file" aka schema.ini method. I blogged about it here, and Prologika did perhaps a better job here. I deal with CSVs every day and strongly believe it is worth the bit of extra time to create the schema.ini and avoid the problems such as yours.

In full disclosure though, I am using Power Query more and more too. The ability to cleanse & transform data before it hits the data model is huge. It would be my first choice were it not for the incredibly painful shortcoming of Power Query connections going read-only & forcing complete recreation of tables & pivots.
 
Upvote 0

Forum statistics

Threads
1,224,096
Messages
6,176,325
Members
452,721
Latest member
Du Toit

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top