Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
YBZ
Helper III
Helper III

measure based on allocation key

Hi all,


I have below matrix that shows per company the cost per category. This is straightforward data for Company 0-8.

 

YBZ_1-1706539569021.png

 

However, we have a dummy company, company9, where cost needs to be allocated based on hours (allocation key) from a different table. 

 

YBZ_2-1706539748521.png


Example : we have in company 9 under category A a cost of 5000 that needs to be allocated based on S.2000. If we look to the allocation data, we see that S.2000 has a total of 1408 hours split between the companies. Company 1 should of the total cost of 5000 get 8/1408, company should get 100/1408 etc..

Final visual/matrix would show per company the direct cost + the allocated cost from company 9.

I have however no clue on how to achieve this, so I was hoping somebody could help me 😊

 

Below the data that is a sample of the data :

 

Cost Table

CompanyCategoryCost objectCost
Company6Ad.1500400
Company5Dc.15003000
Company10Cb.10005000
Company9Ts.15009000
Company7Ws.1500400
Company9Es.15003000
Company10Tb.10005000
Company9Ws.15009000
Company9Qs.15003000
Company9As.20005000
Company8Rb.10003000
Company9Ts.20005000
Company1Yd.15009000
Company9Us.20003000
Company4Hb.10005000
Company0Hi.1000400
Company2Hs.15003000
Company6Bc.15003000
Company4Nb.10002000
Company2Fi.100010000

 

 

Allocation Table

 

CompanyCost objectHoursReceiving Company
Company9s.1500500Company2
Company9s.2000400Company4
Company9s.1500600Company 6
Company9s.2000400Company3
Company9s.1500300Company1
Company9s.2000100Company5
Company9s.1500100Company3
Company9s.20008Company1
Company9s.15009Company5
Company9s.2000100Company2
Company9s.1500100Company4
Company9s.2000400Company4
4 REPLIES 4
amustafa
Solution Sage
Solution Sage

See the sample file and the desired results in my shared drive.

Only relationship you have between the two tables are Compnay and Cost Object.

Cost Allocation

 

amustafa_0-1706561064247.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




hi @amustafa 

thanks for your help, but not really the desired outcome.

 

Desired outcome is to allocate costs booked on company 9 to all the other companies based on the allocation key. 

 

So for example we have category A booked on company 9 for an amount of 5000 that needs to be allocated based on the linked allocation key, for category that is S.2000.
S.2000 allocation is split between 4 companies and the key is as followed between company 1,2,3 and 4 (8/100/400/800). That 5000 should be linked to those companies as below :

YBZ_0-1706607458563.png

 



 

 

YBZ
Helper III
Helper III

Hi @amustafa 

 

Example and desired result (example is just for company1), but reasoning should be applied for all companies.

YBZ_0-1706554991607.png

 

amustafa
Solution Sage
Solution Sage

Hi @YBZ , can you provide the expected outcome from your sample data? provide clear example on how to calculate the values.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors