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

Join 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.

Reply
clobrien
New Member

How to create a conditional column that only shows when another column contains a certain string

Hello,

 

What I'm trying to do is simple. In microsoft lists, I just want a column to show only if another column (which is a text column) contains the string 'SCAR'.

 

I don't want the conditional column to show if the other column EQUALS 'SCAR,' only if it CONTAINS this string. Is lists capable of doing this?

 

I think for equals the formula would look something like this: =if([$SORT #] == 'SCAR', 'true', 'false') where SORT # is the column that would contain the string.

clobrien_0-1727876978151.png

 

 

So I tried entering =if(contains([$SORT # ], 'SCAR', 'true', 'false'), but it tells me this is not valid.

 

I've been searching for how to do this and can't find anything so any help would be greatly appreciated!

 

Maybe lists is limited to the options on their menu here, but it seems like this should be possible: https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/list-form-conditional-sho....

 

(I posted this already, but it was marked as spam and I can't find. Trying again.)

1 REPLY 1
lbendlin
Super User
Super User

It was likely marked as spam because this here is the Power BI/Fabric forum, not the SharePoint forum.  Maybe try over there?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.