Getting started with PowerPivot

dugdugdug

Active Member
Joined
May 11, 2012
Messages
342
Can PP be used with VBA or is it only for displaying large (> 1 million rows) data?
 
Last edited:

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
I am no expert, but SQL Server 2008 R2 Express is probably not the same as SQL Server 2012 without Express in the name. ;)
 
Upvote 0
Not even the same version, never mind same SKU. ;)
 
Upvote 0
I've got SQL Server Man Studio 2008 R2 so what's its limit?

You are probably right about the file size, Express is a free verison, therefore there will be some limits, if you have a full Version, those will be removed.

Where do you get your csv files from? I might be easier to get odbc access to that database and load data in smaller chunks below a million rows, as you need them, instead of setting up a new database. And even if you have done that, the million row Limit in Excel will still exist.

Also, have you tried your VBA Code on something Close to a million rows? As far as I remember, this could be really slow/not work at all, maybe because VBA does not take advantage of several processor cores.

Have you ever worked with Excel tables and created your on columns with Excel functions? The if clauses you mentioned above could be created there as well, and whenever the data is refreshed, it would recalculate your columns automatically. If yes, you could do the same with Powerpivot, as I ried to explain above. Maybe you should just give it a try.
 
Last edited:
Upvote 0
You are probably right about the file size, Express is a free verison, therefore there will be some limits, if you have a full Version, those will be removed.

Where do you get your csv files from? I might be easier to get odbc access to that database and load data in smaller chunks below a million rows, as you need them, instead of setting up a new database. And even if you have done that, the million row Limit in Excel will still exist.

Also, have you tried your VBA Code on something Close to a million rows? As far as I remember, this could be really slow/not work at all, maybe because VBA does not take advantage of several processor cores.

Have you ever worked with Excel tables and created your on columns with Excel functions? The if clauses you mentioned above could be created there as well, and whenever the data is refreshed, it would recalculate your columns automatically. If yes, you could do the same with Powerpivot, as I ried to explain above. Maybe you should just give it a try.

Thanks for your tips.

My csv files are "floating around" at the moment, ie my programs are based on the assumption that such files exists and are stored somewhere on the network drive (which is slow) somy first step involves copying it to my C drive.

For security reasons, I have no direct access to where the data is stored, possibly in a SQL database.

A million rows is not a problem if I only do a few things to it. My method is involves using arrays so Redim myarray(1 to n, 1 to m) As Variant, where n is 200,000, m is 300 is possible (though I am not sure what the limit is) but as I constantly do my manipulation and create further sub arrays, the memory limit will be eventually be reached and the program crashes.

Isn't Excel tables used for formatting purposes? My tasks include more complicated procedures so not sure if that would work.
 
Upvote 0
Thanks for your tips.

[...]
Isn't Excel tables used for formatting purposes? [...]

Here is another tip, statements like that will not help you to make friends in an Excel forum. ;)

Excel is used in a lot of different ways and can do a lot of different things. You can use it to accidently bring down a whole investment bank, if youl like that sort of thing. :)

I am not sure what you are trying to achieve, why you have to transform your data in the way you do, what the results should be and who is using them for what purpose.. Maybe someone could help you looking at your code and tell you if this can be achieved in another way, e.g via Excel functions or not. Good luck.

Carsten
 
Upvote 0

Forum statistics

Threads
1,224,942
Messages
6,181,905
Members
453,070
Latest member
sivasj

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