Table 1 | ||
RID | Amount | Count |
Elephant | 500 | 2 |
Lion | 600 | 4 |
Zebra | 800 | 6 |
<tbody>
</tbody>
Table 2 | ||
RID | Amount | Count |
Deer | 500 | 2 |
Lion | 800 | 5 |
Zebra | 700 | 5 |
<tbody>
</tbody>
Desired Result
RID | Amount | Count |
Elephant | -500 | -2 |
Deer | +500 | +2 |
Lion | +200 | +1 |
Zebra | -100 | -2 |
<tbody>
</tbody>
RID is the related field
What formula do I use in power query or Power Pivot?
Thanks.
Note Question should be:
Calculate The Difference Between two Fields in Two Related Tables
Last edited: