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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
aeldiasty
New Member

Connecting two tables with allocation

Hi -

 

I am a new user of PBI. I have two tables, table #1 has connection with multiple items in table #2 which has time series values. Table #1 has % allocation for each line, which means for example line 1 in table #1 is linked to line #4 and line #7 in table #2 but needs to multiple all values of line #4 by 60% and line #7 by 35%.

 

I already have a column with this allocation value in table #1, but I am wondering how can I do this connection between the 2 tables with the allocation column in action?

 

Your guidance is highly appreciated.

 

Thank you,

AE

7 REPLIES 7
amitchandak
Super User
Super User

@aeldiasty ,  Need sample data to say that.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
vivran22
Community Champion
Community Champion

Hello @aeldiasty 

 

Is it possible to share the sample data structre for the tables and the expected output (do you need it as a measure or a column)?

 

Cheers!
Vivek

https://www.vivran.in/
Connect on LinkedIn

It deosn't matter if it is column or measure. My data is something similar to the below, I undertand I will ahve to unpivot the Table #2, but I am stuck at replicating somethin like vlookup then multiply each of Sub-iitem value by the corresponding allocation in the connected Item.

 

Table 1

   Table 2    
ItemAllocationSub-Item Sub-Item1/1/20212/1/20213/1/20214/1/2021
130%A A$100$90$120$80
123%B B$230$200$190$220
277%B      
370%A      

 

Thank you,

AE

@aeldiasty , share the final output. Mark contributes @

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak Please see below the final goal results. Basically, Table 1 with looking up Sub-item in Table 2 then get the cash value, then multiply by the allocation value.

 

 

Table 3

    
ItemAllocationSub-ItemMonthCash
130%A1/1/2021$30
130%A2/1/2021$27
130%A3/1/2021$36
130%A4/1/2021$24
123%B1/1/2021$53
123%B2/1/2021$46
123%B3/1/2021$44
123%B4/1/2021$51
277%B1/1/2021$177
277%B2/1/2021$154
277%B3/1/2021$146
277%B4/1/2021$169
370%A1/1/2021$70
370%A2/1/2021$63
370%A3/1/2021$84
370%A4/1/2021$56

@aeldiasty , Both in data transformation

1. Unpivot second table

https://radacad.com/pivot-and-unpivot-with-power-bi

2. Merge Table1 and Table 2

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@aeldiasty 

 

It is recommended to use Power Query for such transformations and calcualtions instead of using DAX, as it is built for that.

 

Let me know if this solves the purpose.

 

Pq.JPG

 

Solution file here

 

Cheers!
Vivek

If it helps, please mark it as a solution
Kudos would be a cherry on the top 🙂

https://www.vivran.in/

Connect on LinkedIn

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors