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
erhan_79
Post Prodigy
Post Prodigy

IF FORMULA HELP

hi there ;

 

i need your supoort about below formula ;

 

i have tableA which include below vendor volumn

 

Capture13.JPG

 

İ would like to create a new column and it must list like that ;

 

IF vendor includes " ABC" write this cell  " Important" , If vendor includes "DEF" write this cell  " Not Important" ; If none of them cell will be empty 

 

thanks in advance for your kind supports 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@erhan_79 ,

Create a new column like

Switch( true(),
search( "ABC" ,[column],,0)>0,"Important",
search( "DEF" ,[column],,0)>0,"Not Important",
"Not Important"
)

Or a if like this

if(search( "ABC" ,[column],,0)>0,"Important",if(search( "DEF" ,[column],,0)>0,"Not Important",blank()))

 

You can also use containsstring

https://docs.microsoft.com/en-us/dax/containsstring-function-dax

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@erhan_79 ,

Create a new column like

Switch( true(),
search( "ABC" ,[column],,0)>0,"Important",
search( "DEF" ,[column],,0)>0,"Not Important",
"Not Important"
)

Or a if like this

if(search( "ABC" ,[column],,0)>0,"Important",if(search( "DEF" ,[column],,0)>0,"Not Important",blank()))

 

You can also use containsstring

https://docs.microsoft.com/en-us/dax/containsstring-function-dax

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.