web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Identifying the contra...
Power Apps
Unanswered

Identifying the contracts with large overlap of line items

(1) ShareShare
ReportReport
Posted on by 4

Hello,

I have the following challenge:

I have a list of contract line items:

Contact IDLine item IDDescription
1000110Item A
1000120

Item B

1000130Item C
1000210Item D
1000220Item A
1000310Item A
1000320Item B
1000330Item D
1000340Item E
1000410Item F

 

I would like to identify for each Contract ID which other contract have an overlap of line item Description of more than 49%.

So the expected out come should be the following:

Base Contract IDComparison Contract IDPercent Overlap
100011000366.6
100021000150.0
1000210003100.0
100031000150.0
100031000250.0

 

I hope that something like this is possible with M code and would appreciate any advice.

Thank You.

Categories:
I have the same question (0)
  • teylyn1 Profile Picture
    362 on at

    That kind of analysis is not easy to do with M code.  It is not clear how you calculate the overlap. This would typically be done in the data model, not in Power Query.

  • Cthies1965 Profile Picture
    4 on at

    Hello,

    update to this post...

    Solution has been provided by a post available here:

    https://community.fabric.microsoft.com/t5/Power-Query/Identifying-contracts-with-a-large-over-lap-of-line-items/m-p/4022505#M131789.

    Thanks again to @AlienSx.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard