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

View all the Fabric Data Days sessions on demand. View schedule

Reply
jyeager
Helper I
Helper I

Help Needed! Divide Column in One Table by Column in Another Table

Hi there! I'm hoping all the smart people out there can help me with this. 

 

I need a measure that will divide budgeted_hours by the estimated_units in another table. The caviat is that I have a quantity basis I need referenced in order to do find the right estimated_units. So for example:

 

Job #1 has budgeted labor hours for the following activities:

  • "Set-up" activity: 50 hours
  • "Casting" activity: 100 hours
  • "Patching" activity: 10 hours

Job #1 also has budgeted quantities that we are producing and each quantity type corresponding to the activity above:

  • "Set-ups": 1 (relates to Set-up activity)
  • "Beams": 5 (relates to Casting and Patching activities)

 

I would like to have a measure that would tell me for Job #1 I have 50 hours per set-up (50 hours divided by 1 set-up) and that I have 20 hours per beam for casting (100 hours divided by 5 beams) and 2 hours per beam for patching (10 hours divded by 5 beams).

 

I have attached the two tables and how the are linked:

tbl_structure.PNG

 

it should be something like psi-labor_budgets[budgeted_hours] / psi-qty_budgets[orig_est_units] ... but then filtered or realted to the cost_basis.... I know all the smart folks out there can help me with this one! thanks in advance!!

 

Jim

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@jyeager - You will need to use RELATEDTABLE or you could use LOOKUPVALUE so something like:

 

Measure = 
  DIVIDE(
    SUM('psi-labor_budgets'[budgeted_hours]),
    SUMX(RELATEDTABLE('psi-qty_budgets'),[orig_est_units]),
    0
  )

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@jyeager - You will need to use RELATEDTABLE or you could use LOOKUPVALUE so something like:

 

Measure = 
  DIVIDE(
    SUM('psi-labor_budgets'[budgeted_hours]),
    SUMX(RELATEDTABLE('psi-qty_budgets'),[orig_est_units]),
    0
  )

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler Thank you!!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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