Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
I have two tables where in Bills are stored in one table & payments are in another table, need to create a new table with following information. Both tables are in data model, I need to know the DAX formula to generate the output table.
Thanks in Advance.
Regards,
Jay
Solved! Go to Solution.
Hi @Jayadev,
Based on my test, the formula(DAX) below should work in your scenario.
Table = SUMMARIZE ( Table1, Table1[Bill Date], Table1[Key], "Amount", SUM ( Table1[Amount] ), "Received", SUM ( Table2[Received] ), "Remaining", SUM ( Table1[Amount] ) - SUM ( Table2[Received] ) )
Regards
Hi @Jayadev,
Great to help! Could you accept my reply above as solution to close this thread?
Regards
What is "Key"? I assume that is an invoice number? And did you intend for the 'Key' & 'Customer' in the second line of the required output to be 'M020' & 'Abc' respectively? Is there a relationship between the two tables? Or is there a bridge table in between - like a 'Key' header table?
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.
Table = SUMMARIZE ( Table1, Table1[Bill Date], Table1[Key], "Amount", SUM ( Table1[Amount] ), "Received", SUM ( Table2[Received] ), "Remaining", SUM ( Table1[Amount] ) - SUM ( Table2[Received] ) )
Regards
Thanks a lot, it works fine.
Hi @Jayadev,
Great to help! Could you accept my reply above as solution to close this thread?
Regards
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
75 | |
68 | |
41 | |
35 |
User | Count |
---|---|
107 | |
56 | |
52 | |
48 | |
40 |