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])



!! Microsoft Fabric !!
Microsoft Power BI Learning Resources, 2023 !!
Learn Power BI - Full Course with Dec-2022, with Window, Index, Offset, 100+ Topics !!
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!

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])



!! Microsoft Fabric !!
Microsoft Power BI Learning Resources, 2023 !!
Learn Power BI - Full Course with Dec-2022, with Window, Index, Offset, 100+ Topics !!
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!

Helpful resources

Announcements
May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors