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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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