Forum Discussion
nh27
Helper III
4 years agoCalculate discount using two tables
Hi fellow BI users, I need your help! I am trying to create a measure called Discount which takes the discount value from a table "Discount_Lookup" and applies it to the row in "ZSALES" table....
YukiK
Impactful Individual
4 years agoUse SUMX() instead of SUM(). Your measure will look like something like this:
Discount = SUMX(Zsales, Zsales[Subtotal1])*RELATED(Discount_Lookup[Discount]))
Please give it a thumbs up if this helps!