Relationship problems

cajste

Board Regular
Joined
Oct 22, 2012
Messages
67
I have problem where I have a number of workshops with costs from the general ledger and I want to allocate these costs to the type of vehicles that are being serviced at each workshop. I have a matrix where the percentage for each workshop and vehicle is given and that I want to apply to the workshop costs using DAX.

My plan was to convert the matrix into a table looking like below and pull data from that table to create a measure that calculates each vehicle’s share of each workshop, then use that measure in new measures, one for each vehicle. The new measures would calculate the total cost for each vehicle (these measures is then going to be used in other measures).

Workshop Vehicle Share
1102 141 0%
1102 142 10%
1103 141 0%
1103 142 100%
1101 141 80%
1101 142 0%
1105 141 0%
1105 142 50%
1104 141 0%
1104 142 0%

The problem is that both axis in the matrix table relates to the same resource dimension in my data model and since I can only create a relationship with one of the axis in the matrix so the calculations turns out incorrect.

Any brilliant ideas on how to work around this problem?

Brgds,
Caj
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,223,942
Messages
6,175,544
Members
452,652
Latest member
eduedu

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
Back
Top