Forum Discussion
katietran0467
Helper I
1 year agoDetailed Budget Allocation Based on Actuals
Hi everyone, I'm facing a challenge with calculating budget allocations based on actual data. Here's the situation: We have actual figures at a detailed level, but only have monthly budget totals ...
- 1 year ago
Hi everyone,
I figured out the solution based on the concept of SQL view. I created a temporary view to be able to use SUMX.
Here is the final measure. Hope it helps other members or me in the future.
_DetailBudget =
var _table = FILTER(
SUMMARIZECOLUMNS(
'Month'[YearMonth], Account[Account], "Amount", MIN('Fact'[Amount]),
"_Multipler", DIVIDE(CALCULATE(sum('Fact'[Amount]), 'Fact'[Type] <> "Debit", ALL('Account')), CALCULATE(sum('Fact'[Amount]), 'Fact'[Type] <> "Credit", ALL('Account'))),
"_New", MIN('Fact'[Amount]) * DIVIDE(CALCULATE(sum('Fact'[Amount]), 'Fact'[Type] <> "Debit", ALL('Account')), CALCULATE(sum('Fact'[Amount]), 'Fact'[Type] <> "Credit", ALL('Account')))
)
,
Account[Account] <> "Budget")
RETURN
SUMX(_table, [_New])
katietran0467
Helper I
1 year agoHi Ashish_Excel
Here is the data
YearMonthAccountAmountType
| 202501 | HR | 23 | Debit |
| 202501 | IT | 15 | Debit |
| 202501 | BD | 54 | Debit |
| 202501 | Budget | 100 | Credit |
| 202502 | HR | 26 | Debit |
| 202502 | IT | 19 | Debit |
| 202502 | BD | 48 | Debit |
| 202502 | Budget | 95 | Credit |
| 202503 | HR | 17 | Debit |
| 202503 | IT | 36 | Debit |
| 202503 | BD | 45 | Debit |
| 202503 | Budget | 89 | Credit |
And here is the expected outcome (red total figure)
Ashish_Excel
Solution Supplier
1 year agoCannot understand anything there.