Hi I am new to PowerPivot so please bear with me. I have a pivot in 2007 that I am trying to replicate in Power Pivot 2010. The table is set up as: rows for date, then income or expense and a subtotal; columns for actual, budget and variance. I am having trouble calculating financial variance. My data set is:
cost code, account #, date (month), Type (actual or budget), dollars.
A relationship sets the account as either income or expense.
I have calculated variance using measure 1
=sumx(filter(‘DataAccounts’,’DataAccounts’[Type]=”Budget”),’DataAccounts’[Dollars])-sumx(filter(‘DataAccounts’,’DataAccounts’[Type]=”Actual”),’DataAccounts’[Dollars])
When I display my pivot table, I get 4 columns:
1. date, expense and income as rows
2. actual (dollars and measure 1), budget (dollars and measure 1). In both cases measure 1 = dollars ie – this is not variance. If I include row totals, the total sum of dollars’ and ‘total sum of measure 1′ equal each other and are the correct variance figure.
What am I doing wrong?
cost code, account #, date (month), Type (actual or budget), dollars.
A relationship sets the account as either income or expense.
I have calculated variance using measure 1
=sumx(filter(‘DataAccounts’,’DataAccounts’[Type]=”Budget”),’DataAccounts’[Dollars])-sumx(filter(‘DataAccounts’,’DataAccounts’[Type]=”Actual”),’DataAccounts’[Dollars])
When I display my pivot table, I get 4 columns:
1. date, expense and income as rows
2. actual (dollars and measure 1), budget (dollars and measure 1). In both cases measure 1 = dollars ie – this is not variance. If I include row totals, the total sum of dollars’ and ‘total sum of measure 1′ equal each other and are the correct variance figure.
What am I doing wrong?