Taking regular snapshots with Power Query/Power Pivot

gatonisus

New Member
Joined
Dec 23, 2015
Messages
1
Hi,
I have my Power Query connected to a live database.
Is there a way to regularly (lets say monthly) save the data (automatically) in the Power Pivot data model and append it on the previous data?

Example:
One column in the database:
a
b
c

In January the snapshot should put in Power Pivot:
Jan| a
Jan| b
Jan| c

In February should append for example:
Feb| b
Feb| c
Feb| d


I hope the question is clear.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
If you're wanting to perform incremental loading then there is no easy way to do what you ask because PQ can't use a data model as a data source.

One method is to create a self-referential PQ script. This script will read from the existing data in an Excel table (not in a data model), append new data to it, and then write back to the same table and the data model. You will be limited by row count.

There is also a VBA solution involving writing to CSVs from the data model but I wouldn't go there.

I would suggest, if possible, simply pulling all of the data from the database (for the required date range) instead of incrementally loading it.
 
Upvote 0

Forum statistics

Threads
1,224,144
Messages
6,176,647
Members
452,739
Latest member
SCEducator

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