Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
For example, I have a column of web site:
www.google_b.com www.amazon_1-3b.com www.amazon345.com
I know that google and amazon are the ones I want to retrieve for another column.
I want to have this column as below
www.google-a.com google www.google_b.com google www.amazon_1-3b.com amazon www.amazon345.com amazon
I will have a list of the desired keywords to map with like [google, amazon, facebook, etc] Does anyone know how to get the dax formula?
It is more like a LIKE "%xyz%" syntax in SQL.
Thanks.
Solved! Go to Solution.
Hi @zakkyang ,
I'm thinking you should be able to use something along the lines of this:
Column = List.First(List.FindText({Keyword list}, [Web site column]))
List.FindText - PowerQuery M | Microsoft Docs
List.First - PowerQuery M | Microsoft Docs
How does the output look?
Br,
J
Hi J,
Cannot find the List.First function, is it power query or dax?
Thanks J. I found a solution using SWITCH.
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 |
---|---|
73 | |
71 | |
55 | |
38 | |
31 |
User | Count |
---|---|
71 | |
64 | |
60 | |
50 | |
45 |