Forum Discussion
Merge two tables while summing values from subtable
- 9 years ago
Hi jeffs9876,
According to your description above, adding a calculate column in Payment Table should be a better choice than merging the two tables in your scenario. :smileyhappy:
1. Create a relationships between the Payment table and Refund table with the Payment ID column if there isn't yet.
2. Then you should be able to use the formula below to add a new calculate column in Payment table to get the total refunds for each payment from the Refund Table.
Refund Amount = CALCULATE(SUM(Refund[Refund Amount])) + 0
Regards
Hi jeffs9876,
According to your description above, adding a calculate column in Payment Table should be a better choice than merging the two tables in your scenario. :smileyhappy:
1. Create a relationships between the Payment table and Refund table with the Payment ID column if there isn't yet.
2. Then you should be able to use the formula below to add a new calculate column in Payment table to get the total refunds for each payment from the Refund Table.
Refund Amount = CALCULATE(SUM(Refund[Refund Amount])) + 0
Regards