The math I need is for all cost centers but for example cost center 10 would be:
$1,392 (original number for cost center 10) + ($3,371 * 10%)
Then I would follow the same convention of allocation to each cost center (e.g. 10, 11, 12, 13, 20 …) and finally the cost center 0 would display empty as it has been allocated to other cost centers.
I was able to get the associated percentage rates where they need to be but I still need to figure out how to take the value within cost center 0 relative to the row and column and allocate that to each column.
LOOKUPVALUE(‘Cost Center Allocation’[Value], ‘Cost Center Allocation’[Cost Center], MAX(‘GL Transactions(gbkmut)’[COST CENTER]) )
One way to approach this would be at the Power query stage by filtering off the 0 cost centres values from GL Transactions, merge with the cost centre allocation table. This will repeat each row in the GL Transaction table for however many allocations you have. Then with Add Column, perform the allocation and append this table back to your GL Transaction table.
It will mean that you have no 0 cost centres in the fact table, which is OK if you are not using the 0 cost centre numbers elsewhere in your model.
Working from where you are though I would write a new measure:
Thank you for the feedback; the issue I’m facing is that the value of that cost centre ( 0 ) needs to be allocated to those other columns.
So isolating the lookup gives the proper allocation percentages and isolating the currency function will give the correct dollar amount.
However, if exists an amount in cost center = 0 then allocate that in addition to what already exists in the context.
Definitely correct idea for percentages but rather than “in addition to” the formula above would multiply the context by the related percentage but not actually allocate any of the cost center = 0 column to the other columns.
I hope that made sense?
Thank you again for your assistance
Wouldn’t the context of [Currency] still be in the column it’s in?
So if there was a value in cost center 0, the EQ here would just look for the associated percentage value if it weren’t already being blanked out first?
I guess I’m not seeing how the value in cost center 0 is getting allocated to those other columns?
Understand Maths - been apportioning costs as an accountant for years. LOL.
I’m not quite there but it’s beer time in Norfolk England, sorry
I changed the data types in your default cost center allocation table Key - whole number and Value to %. They were both text.
In Measure table “01 Key Measures - Pete” I’ve made a start and got some numbers in there but I don’t think its quite right yet. You will understand your figs better than me. So if you can round it off let me know.
While our users and experts do as much as reasonable to help you with your inquiries, not all concerns can be attended to especially if there are some learnings to be done. Thank you!