Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Background:
I want to create a new table column in power query.
Every time the exact word "abc" is found in [TITLE], abc shall be written in the new Column otherwise N/A.
Column
abc
abc
N/A
...
Code
= Table.AddColumn(#"Summary", "Column", each if Text.Contains([TITLE], "abc") then "abc" else "N/A")
Problem
However with the above function I also get a true value for all word containing abc, for example abcd, aabc etc.
Is there a way in Power Query to look for the exact word and spelling? Similar to the DAX function CONTAINSSTRINGEXACT
Thanks in advance.
Solved! Go to Solution.
Use this
if List.Contains(Text.Split([TITLE]," "), "abc") then "abc" else "N/A"
Use this
if List.Contains(Text.Split([TITLE]," "), "abc") then "abc" else "N/A"
Thank you! Seems to be working as expected.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
10 | |
7 | |
7 | |
6 | |
6 |