Hi All,
I'm new to DAX and trying to create a P&L. I am stuck on a measure that I can use to do an actual vs budget variance. My actual and budget data is all in one column in the table, is it possible to create a measure that will give me the variance? I can split up the two on the pivot table with the help of a scenario table but cannot subtract them since they are in the same column in the table.
Actual vs. Budget Variance Analysis
-
- Posts: 1154
- Joined: Sun May 04, 2014 4:01 pm
- Location: Sydney, Australia
Re: Actual vs. Budget Variance Analysis
You are probably well advised to read a book or so some formal learning. You can use calculate to do what you need. Something like this (depending on your data)
CALCULATE(sum(table[amount]),Table[type]=“actual”) - CALCULATE(sum(table[amount]),Table[type]=“budget”)
CALCULATE(sum(table[amount]),Table[type]=“actual”) - CALCULATE(sum(table[amount]),Table[type]=“budget”)
Matt Allington is Self Service BI Consultant, Trainer and Author of the Book "Supercharge Power BI".
Power BI Training
Power BI Training
Re: Actual vs. Budget Variance Analysis
Thanks much! 

Who is online
Users browsing this forum: No registered users and 5 guests