cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Pawan
Frequent Visitor

contains function

Hi ,

 

I have a field like below. I need dax help to write

if Name contians Asian Fund LP,Asian Fund 4 then its yes else Name.

 

input:

Name:

ABC Asian Fund LP 90

Germany Asian Fund 4 as

argentina

 

 

expected output:

Name:

yes

yes

argentina

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Pawan , A new columns

 

if( containsstring([Input], "Asian Fund"), "yes",[Input])

 

or

 

if( containsstring([Input], "Asian Fund") || containsstring([Input], "Asian Fund 4"), "yes",[Input])

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Pawan , A new columns

 

if( containsstring([Input], "Asian Fund"), "yes",[Input])

 

or

 

if( containsstring([Input], "Asian Fund") || containsstring([Input], "Asian Fund 4"), "yes",[Input])

Helpful resources

Announcements
Exciting changes

Power BI Community Changes

Check out the changes to the Power BI Community announced at Build.

May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Kudo Data Story carousel

Data Stories Gallery

Visit our Data Stories Gallery and give kudos to your favorite Data Stories.

Top Solution Authors