Forum Discussion
Variance and margin calculation
- 6 years ago
Hi Keropi79 ,
If you have such a fact table, you can use ± to mark income and expenses.
Then, you can create a calculated table.
Table = VAR Margin = ROW( "Amount (USD)", "Margin", "Actual", CALCULATE( SUM(Sheet5[Actual]), ALL(Sheet5) ), "Budget", CALCULATE( SUM(Sheet5[Budget]), ALL(Sheet5) ), "Var", BLANK() ) RETURN UNION( Sheet5, Margin )The same is true for the row ‘Margin%’. I don't know your mathematical calculation logic so I can't calculate it for you.
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Keropi79 ,
If you have such a fact table, you can use ± to mark income and expenses.
Then, you can create a calculated table.
Table =
VAR Margin =
ROW(
"Amount (USD)", "Margin",
"Actual", CALCULATE( SUM(Sheet5[Actual]), ALL(Sheet5) ),
"Budget", CALCULATE( SUM(Sheet5[Budget]), ALL(Sheet5) ),
"Var", BLANK()
)
RETURN
UNION(
Sheet5,
Margin
)
The same is true for the row ‘Margin%’. I don't know your mathematical calculation logic so I can't calculate it for you.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.