Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have 2 tables unrelated to many to many records for Key, Loc, Risk are the fields of both tables. From Table 2, I need to sum the amount for only the MImimun ENDR value for each key. Can anyone suggest the best way to accomplish this? The following is an example in Table 2 Power BI.
Table 1
| Account | Loc | Risk | Veh No. |
| A150376 | 9999 | 9995 | 1 |
| A150376 | 9999 | 9991 | 1 |
| A150376 | 9999 | 9998 | 1 |
| A150376 | 9999 | 9997 | 1 |
| A150376 | 9999 | 9992 | 1 |
| A150376 | 9999 | 9994 | 1 |
| A150376 | 9999 | 9993 | 1 |
| A150376 | 9999 | 9999 | 1 |
| A150376 | 9999 | 9996 | 1 |
Table 2
| Account | Loc | Risk | ENDR | Amount |
| A150376 | 9999 | 9999 | 0 | 6443 |
| A150376 | 9999 | 9998 | 0 | 60 |
| A150376 | 9999 | 9997 | 0 | 167 |
| A150376 | 9999 | 9996 | 0 | 344 |
| A150376 | 9999 | 9995 | 0 | 1034 |
| A150376 | 9999 | 9994 | 0 | 20 |
| A150376 | 9999 | 9993 | 0 | 33 |
| A150376 | 9999 | 9992 | 0 | 0 |
| A150376 | 9999 | 9991 | 0 | 0 |
| A150376 | 9999 | 9999 | 1 | -6443 |
| A150376 | 9999 | 9998 | 1 | -60 |
| A150376 | 9999 | 9997 | 1 | -167 |
| A150376 | 9999 | 9996 | 1 | -344 |
| A150376 | 9999 | 9995 | 1 | -1034 |
| A150376 | 9999 | 9994 | 1 | -20 |
| A150376 | 9999 | 9993 | 1 | -33 |
| A150376 | 9999 | 9999 | 2 | 6443 |
| A150376 | 9999 | 9998 | 2 | 60 |
| A150376 | 9999 | 9997 | 2 | 167 |
| A150376 | 9999 | 9996 | 2 | 344 |
| A150376 | 9999 | 9995 | 2 | 1034 |
| A150376 | 9999 | 9994 | 2 | 20 |
| A150376 | 9999 | 9993 | 2 | 33 |
| A150376 | 9999 | 9992 | 2 | 0 |
| A150376 | 9999 | 9991 | 2 | 0 |
| A150376 | 9999 | 9999 | 6 | -5489 |
| A150376 | 9999 | 9998 | 6 | -51 |
| A150376 | 9999 | 9997 | 6 | -142 |
Hi , @Anonymous
It seems that you have find the solution in this thread.
If it is, could you please mark the helpful replies as Answered?
It will help other community members easily find the solution when they get the same issue.
Best Regards,
Community Support Team _ Eason
@Anonymous what is the key column? what is your expected output?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.