Forum Discussion
mtrussardi
5 years agoFrequent Visitor
Multiply two columns from different table with condition
Hello everyone! I have one column titled ('Unit Cost') from the table named ('Raw Materials') and another column titled ('Rate') from the table ('Exchange Rates'). I would need to mulitply the co...
amitchandak
5 years agoSuper User
mtrussardi , Create a common date table and then create a measure like
sumx(values(Date[date]), Sum(Table1[Unit Cost]) * sum(Table2[Rate]))
you can use min/max, average in place of sum
refer the concept here: https://community.powerbi.com/t5/Community-Blog/Decoding-Direct-Query-in-Power-BI-Part-2-Date-Difference-Across/ba-p/934397#M451
mtrussardi
5 years agoFrequent Visitor
Thank you for your reply.
I tried the measure but the problem is that I don't want to calculate the sum. I just need to calculate the value of 'Unit Cost' times the "Rate' for each row when the date is the same.
- mike91914 years agoFrequent Visitor
Any developments?