Update of measures Excel Power Pivot

New Contributor



I created a database with lots of data but to be able to send it to each team members (I did not want them to have access to others’ data), I had to split the master workbook by name of the team members. However, here is my problem: 


On my Master I have two columns; 

one is called time period: 

A2210 (A for actual) 

A2110 (A21 for Last Year)


A2209 (B for Budget)



the other is called Amount 







(this is an example) 


now, I created two formulas for my Query (I’m very beginner so please don’t judge me ). Expense ES is my table with the costs and, Time Period is my table with the time period (I separated both of them in the formula because I am using a slicer and I needed to create relationships) 

Var (-) = Calculate(sum(Expenses ES), time period=A2210) - Calculate (sum(Expense ES), time period = B2210) 

Var % = Calculate(sum(Expenses ES), time period=A2210) / Calculate (sum(Expense ES), time period = B2210) -1 


here comes the issue: this formula is very static which means that I would have to update by hand each month for ex: now in November I will have to update for 25 workbooks A2211 and B2211. 

do you have any idea on how to avoid this, I can’t change the date format (A22 etc… because it comes from a different software… 


hope you will be able to help… thank you



1 Reply



What you need (I think, although it's a bit difficult to picture exactly what you have here without a sample of the actual)... what you need, I think, is to make use of the INDIRECT function, so that you can change a single cell, off to the side, to contain the month. (10 for October, 11 for November, etc). And then INDIRECT uses that to construct the full formulas in each case.


Here's a useful reference for understanding how INDIRECT can be used.


If you want more help, you can help us help you by posting a copy (or a facsimile, with identifiable/confidential/private data removed) of your spreadsheet on GoogleDrive or OneDrive, and posting a link here granting access.