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
remi
Advocate II
Advocate II

Find a word in the whole table

Hello all,

 

Want to search for a string of characters that begin always with a certain 3 characters but may vary in size.

e.g. IN-1; IN-99, IN-5644 etc, and also this type of info is in different columns that might have a different name or number (when you import the data it might have the same column name followed by _x, x is a number).

 

Is there any way to check the entire table for IN- or a big chunk of columns?

 

Thank you in advance!

 

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @remi,

 

You can use Text.StartsWith to check if a value begins with "IN-".

=Text.StartsWith([A],"IN-")

1.PNG

 

For your requirement that to find specific text across multiple columns in whole table, what is the desired result if found? Can you show us an example?

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @remi,

 

You can use Text.StartsWith to check if a value begins with "IN-".

=Text.StartsWith([A],"IN-")

1.PNG

 

For your requirement that to find specific text across multiple columns in whole table, what is the desired result if found? Can you show us an example?

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hello @v-yulgu-msft,

 

did it with a merge of all the columns in followed by a search of the IN-  with a fixed end, still looking for that dynamic size 

 

find chg0 = var BeginText = SEARCH("IN-", Data[Merged],1,BLANK())

RETURN IF(ISBLANK(BeginText),BLANK(), MID(Data[Merged], BeginText, 6))

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.