Question

I wanted to know if there are any ways in which we can create an option of scheduling an automatic refresh for the power pivot data when ever there is change of data at the server side without using any share point farm.

Was it helpful?

Solution

This has worked for me.

My situation was: I wanted to programatically set value of a Pivottable Report Filter, which indirectly supplies data to the Powerpivot table. After data in Powerpivot table is refreshed I wanted to refresh the Powerpivot tables built on the Powerpivot table. This is what I wrote:

ActiveSheet.PivotTables("name").PivotFields( _
    "Participant Id").ClearAllFilters
ActiveSheet.PivotTables("name).PivotFields( _
    "Participant Id").CurrentPage = "Raj"
     AppActivate "PowerPivot For Excel - Assessment Tool 2.xlsm"

    Sheets("sheet1").PivotTables("PivotTable9").RefreshTable

The trick is to keep the Powerpivot window open before executing the above code. Just click on the "Powerpivot Window Launch" button from the PP add-in in Excel.

Hope this helps you!

OTHER TIPS

All-new short answer: Yes :)

Take a look at the Excel Refresh Service on codeplex - it will refresh PowerPivot cubes and Excel data connections without requiring Excel plugins or macros

Short Answer: No.

Long Answer: you could write some VBA code in the workbook that refreshes the data upon opening the file. Then you could create a stored procedure that regularly queries the dataset, and if a change is detected calls a script that opens the Excel file, triggering the VBA to refresh the Powerpivot, and then closes the Excel file.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top