Forum Discussion
Summarising values from two tables
- 8 years ago
Hi Jayadev,
Based on my test, the formula(DAX) below should work in your scenario. :smileyhappy:
Table = SUMMARIZE ( Table1, Table1[Bill Date], Table1[Key], "Amount", SUM ( Table1[Amount] ), "Received", SUM ( Table2[Received] ), "Remaining", SUM ( Table1[Amount] ) - SUM ( Table2[Received] ) )Regards
- 8 years ago
Hi Jayadev,
Great to help! Could you accept my reply above as solution to close this thread? :smileyhappy:
Regards
Thanks for the attention.
You are right, Key is, Invoice Number, there is relationship, table A will have multiple rows, Table B one record for each invoice number.
Yes required output to be M010, M020 respectively. I made mistake in my example, you pointed out rightly
Thanks once again for attention, please help me to apply the DAX.
Regards,
Jay
Hi Jayadev,
Based on my test, the formula(DAX) below should work in your scenario. :smileyhappy:
Table =
SUMMARIZE (
Table1,
Table1[Bill Date],
Table1[Key],
"Amount", SUM ( Table1[Amount] ),
"Received", SUM ( Table2[Received] ),
"Remaining", SUM ( Table1[Amount] ) - SUM ( Table2[Received] )
)
Regards
- Jayadev8 years agoHelper I
Thanks a lot, it works fine.
- v-ljerr-msft8 years agoMicrosoft Employee
Hi Jayadev,
Great to help! Could you accept my reply above as solution to close this thread? :smileyhappy:
Regards