Forum Discussion
nh27
4 years agoHelper III
Calculate 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
4 years agoImpactful Individual
Use 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!