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
Anonymous
Not applicable

New column in power query based on key word search

Hi Experts

 

I have in my table two key columns EUC Name and EUC Description. I want to search both columns and if I find the following keybwords in either column 

Macro

Calculator 

Forms

Workflow

Lookup

Dashboard

Data Store

Financial Model

 

Then populate Y into a new column otherwise N.

3 REPLIES 3
PhilipTreacy
Super User
Super User

Hi @Anonymous 

It's always best to provide some real sample data so code cna be written specifically against it.

You could use List.ContainsAny or Text.Contains, depends on the source data.

This blog post exaplains several examples of searching for text

https://www.myonlinetraininghub.com/searching-for-text-strings-in-power-query

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Icey
Community Support
Community Support

Hi @Anonymous ,

 

Please refer to this blog: DAX – “CONTAINSX” – Finding if a value in table 1 has a matching value in table 2.

 

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

amitchandak
Super User
Super User

@Anonymous , refer if this video can help

https://www.youtube.com/watch?v=YxZ_8-vsEpE

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.