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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
dazfoz
Frequent Visitor

Allocating costs based on a list of allocation %ages

Hi, 

 

First time poster, and quite a new user so please be gentle on me :).

 

Im trying to create a cost matrix in PBI, but struggling to calculate the answer.

 

I have a table 'COS-Allocations' which contains three columns, [COS],[PRODUCT] & [ALLOCATION].  there is repetition of each COS and each product throughout the 300 rows (example below)

[COS][PRODUCT][ALLOCATION]
COS 1PRODUCT 110%
COS 1PRODUCT 230%
COS 1PRODUCT 3null
COS 1PRODUCT 4null
COS 1PRODUCT 560%
COS 2PRODUCT 130%
COS 2PRODUCT 240%
COS 2PRODUCT 3null
COS 2PRODUCT 430%
COS 2PRODUCT 5null
COS 3PRODUCT 1null
COS 3PRODUCT 210%
COS 3PRODUCT 310%
COS 3PRODUCT 430%
COS 3PRODUCT 550%

 

Im using a Matrix and putting [PRODUCT] in the column, [COS] in the rows, and for the value im using the following measure;

 

sum('TABLE CONTAINING COS VALUES'[COS]) * sum('COS-Allocations[ALLOCATION])

 

My expection is that the value for each COS will reference row 1 & row 2 in the table and multiply by the percentage that is given, but Im just getting a return in every single matrix point that has an allocation %.  Hope this makes sense.....

 

Im pulling my Hair out, I know that its something to do with not properly filtering on the [COS] but i just cant figure it out.

 

Thanks in advance

 

2 REPLIES 2
FreemanZ
Super User
Super User

hi @dazfoz 


An excellent first post already, i would say. But still something missing, e.g. how are the two mentioned tables related? what do you mean by row1 and row2?

FreemanZ, 

 

Thanks for your reply, sorry I wasnt very clear, row1 I should have said column 1or [COS] & Row 2 should have said column 2 or [PRODUCT]. 

 

Based on your question.......I now realise that the 'TABLE CONTAINING COS VALUES'[COS] isnt linked to 'COS-Allocations[COS]...

 

I dont know how to acheive this, since the [COS] in 'TABLE CONTAINING COS VALUES'[COS] are running along the top of the table (ROW1), with dates down the left hand side (ColumnA), but the [COS] in  'COS-Allocations[COS] are in (Column A) as per my example table posted in my OP.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.