Forum Discussion

adamsumm's avatar
adamsumm
Frequent Visitor
9 years ago
Solved

IF and Search Function for finding if a specific value exists in two columns

Hello,   Very new to Power Bi so I am still trying to figure out how to complete some of the basics.  I am attempting to create a new comlumn that will print either "Personal" or "Company" when sea...
  • v-yulgu-msft's avatar
    9 years ago

    Hi adamsumm,

     

    Please try this formula:

    personal =
    IF (
        SEARCH ( "personal", new_call[description],, 0 ) > 0
            || SEARCH ( "personal", new_call[Transfered_to.cmdb_ci],, 0 ) > 0,
        "Personal",
        "Company"
    )

    Regards,
    Yuliana Gu