Cost allocation DAX

Oksana88

New Member
Joined
Apr 12, 2021
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
Hi,

Maybe someone can help me to calculate cost allocation in power pivot (dax).

I need to allocate overhead costs based on month, cost group and cost allocation type.

I have several tables with input data.

One table with costs per Account ID and month:

1618232360695.png


Other table with cost allocation information (how much from total costs should be allocated to particular cost group and how costs should be divided between real estates)
1618232374561.png


And the last table with cost allocation information:
1618232453442.png


In result I want to see table like this:
1618232461196.png


What I need to calculate:

Let’s take for example Account ID 71121234 and costs for January = 100 EUR.

Costs should be allocated between 2 cost groups (1.2. – 40% and 1.3. – 60%). 40 EUR and 60 EUR accordingly.

Next step is to divide it between Real estates.

For RE1 and cost group 1.2. and allocation type - admin it would be 40 EUR / 1000 m2 * 200m2.

For RE1 and cost group 1.3. and allocation type - Fin it would be 60 EUR / 300 m2 * 0m2.

In excel this I can calculate step by step, but how can I calculate in dax by one- two formulas? Or that is impossible?
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Watch MrExcel Video

Forum statistics

Threads
1,132,785
Messages
5,655,290
Members
418,186
Latest member
mrahim

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top