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

Custom Column error

Hi i am trying to run this simple query to isolate a colum based on a string in my column using the following formula :

 

if | medtigo" in [Page Title] then Null  else [Page Title]

 

This line of code is giving me Token then expected error.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , text-contains  or =

https://docs.microsoft.com/en-us/powerquery-m/text-contains

Try like

if Text.Contains([Page Title]," | medtigo") then Null else [Page Title]

 

if | medtigo" =  [Page Title] then Null  else [Page Title]

 

Please provide your feedback comments and advice for new videos
Tutorial Series Dax Vs SQL Direct Query PBI Tips
Appreciate your Kudos.

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , text-contains  or =

https://docs.microsoft.com/en-us/powerquery-m/text-contains

Try like

if Text.Contains([Page Title]," | medtigo") then Null else [Page Title]

 

if | medtigo" =  [Page Title] then Null  else [Page Title]

 

Please provide your feedback comments and advice for new videos
Tutorial Series Dax Vs SQL Direct Query PBI Tips
Appreciate your Kudos.

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.