Forum Discussion
jyeager
Helper I
6 years agoHelp 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 q...
- 6 years ago
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 )
Greg_Deckler
Community Champion
6 years agojyeager - 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
)
jyeager
Helper I
6 years agoGreg_Deckler Thank you!!