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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Andybr
Frequent Visitor

Search for text within a string - make dynamic

Hi,
 
I want to search for a particular word in a column within the table.
I want to be able to pass in the search word as a variable value, so can make this dynamic, can it be done?
 
My code currently looks like this:
SearchForString = IF(
    ISERROR(
        SEARCH("Word", 'Table'[Column)
    ),
    "No Match","Match"
)
1 ACCEPTED SOLUTION
2 REPLIES 2
az38
Community Champion
Community Champion

Hi @Andybr 

try

SearchForString = IF(
   SEARCH("Word", 'Table'[Column), , 0) > 0,
   ,"Match",
   "No Match"
)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.