Forum Discussion
How do I calculate something based on values in two different tables?
- Anonymous9 years ago
Ya, apologies for screwing these up -- either of these should get you going :)
Total Sets 1 = SUMX(logic_product_unit, DIVIDE(1, RELATED(Units_v025[Units Per Set])))
Total Sets 2 = SUMX(Units_v025, DIVIDE(COUNTROWS(RELATEDTABLE(logic_production_unit)), Units_v025[Units Per Set]))
The thinking with Total Sets was that it too would be a measure. If you want a calc column there, we would need to tweak it a bit.
Errr, which table were you putting in on?
Ya, apologies for screwing these up -- either of these should get you going :)
Total Sets 1 = SUMX(logic_product_unit, DIVIDE(1, RELATED(Units_v025[Units Per Set])))
Total Sets 2 = SUMX(Units_v025, DIVIDE(COUNTROWS(RELATEDTABLE(logic_production_unit)), Units_v025[Units Per Set]))
- dbltnk9 years agoFrequent Visitor
Thanks again Anonymous - that worked like a charm! =D