Forum Discussion

VanNostrand's avatar
VanNostrand
Regular Visitor
3 years ago
Solved

Trouble Calculating Percentage Difference

Hi guys, I'm just starting PowerBI and I'm facing an issue for several days that can't seem to overcome. In my data set I have two tables: "Plans" and "Actuals". Within the table "Plans" there's a ...
  • DOLEARY85's avatar
    3 years ago

    wrap the sum functions in a calculate function to change the context

     

    e.g. OverCost = CALCULATE( SUM (Actuals[ActualCosts])) - CALCULATE(SUM (Plans[PlannedCosts])) / CALCULATE(SUM (Plans[PlannedCosts]))