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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Divison between two columns from different table and repetitive value.

Hi Everyone,

I need help:

I have two tables Lets say 1&2

Rishv_0-1669637688113.png

Rishv_1-1669637734982.png

Result i want is :

Rishv_2-1669637891398.png

Which is like Amount= If Probill is same add Gross weight and devide it by Freight amount (250.1*90/150)

 

Any suggestion is highly appreciated.

 

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Use the below dax  to create a new column:

test = LOOKUPVALUE(Table1[Reeight Amount],Table1[Pro Nmuber],'Table2'[Probill#])*'Table2'[Gross weight]/150

vluwangmsft_0-1669885221585.png

 

 

Best Regards

Lucien

View solution in original post

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Use the below dax  to create a new column:

test = LOOKUPVALUE(Table1[Reeight Amount],Table1[Pro Nmuber],'Table2'[Probill#])*'Table2'[Gross weight]/150

vluwangmsft_0-1669885221585.png

 

 

Best Regards

Lucien

amitchandak
Super User
Super User

@Anonymous , Join both of them assume it 1 -Many from first table to second

a new measure =

sumx(Table2, calculate( Divide(Table2[Gross weight]* related(Table1[ Freight amount]), sumx(filter(Table2, Table2[Prodbill#] = earlier(Table2[Prodbill#]) ), [Gross weight])) ) )

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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