Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PhilC
Resolver I
Resolver I

Keyword search - dealing with plurals when using List (not Text) matching

Hi, further to the post already resolved (see here https://community.powerbi.com/t5/Power-Query/Keyword-search-to-return-exact-word-match/m-p/723186#M2... ), I would like to know if anyone has an approach for dealing with plurals for a keyword list?

 

Using the list approach rather than Text.ContainsAny is beneficial as it eliminates false matches, ie soft / software, but does not pick up where the relevant keyword is appropriately a part of a larger work, a plural being the most obvious occurance.

 

I am currently duplicating my keyword list and appending "s" to each one, thus loading a double set of keywords.  Am wondering if anyone has a more scientific approach for keyword matching using a keyword list.

 

Cheers

Phil

 

@ImkeF   @MarcelBeug   (have linked you both as you have helped or I have used your posts related to this)

1 ACCEPTED SOLUTION
ImkeF
Super User
Super User

Hi @PhilC ,

you can either transform the existing List to a list of plurals and append it to your original list.

A simple method would be this

 

List.Transform(yourList, each _ & "s")

or you search for an API that delivers more accurate versions.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

1 REPLY 1
ImkeF
Super User
Super User

Hi @PhilC ,

you can either transform the existing List to a list of plurals and append it to your original list.

A simple method would be this

 

List.Transform(yourList, each _ & "s")

or you search for an API that delivers more accurate versions.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors