Forum Discussion
Anonymous
4 years agoNot applicable
Multiply 2 columns from 2 different data tables
Help me! I have 2 data tables link with look_up table throug Field PID: Table 1 [PID, Balance] link with Look_up table[PID]: relation n*1 Table 2 [PID, RATE] link with Look_up table [PID]: rel...
- 4 years ago
=sumx(relatedtable(table1),sumx(relatedtable(table2),table1[Balance]*table2[rate]))
Anonymous
4 years agoNot applicable
Hi Anonymous ,
I tested on my side. Here's my data model.
You need to put the [PID] from Look_up table into the visual.
Measure = SUM('Table 1'[Balance])*SUM('Table 2'[RATE])
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous4 years agoNot applicable
Wow, It looks more simple. I like your solution.
I will test. Actually Table 1 and Table 2 link with 2 lookup: PID & Currency like that:
Table1 (PID, Currency, Balance)
Table2 (PID, Currency, Rate)
I will try to use your solution to check whether it works. Thank you very much