Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Searching Contacts by First Name, Last Name, or a Nickname Using Text Filter Add In

I am trying to create a formula for a text filter search that will allow someone to search by either a contacts first and last name or by a designated nickname. Currently I have two columns of data: one containing both the first and last name (Contact.FirstandLast) and one containing the designated nickname (Contact.Nickname).

 

I'm not sure what function(s) would allow this to be possible. 

6 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous,

    You could combine the two columns in a new Calculated Table, like this:

    PLUs = UNION(
           DISTINCT(<YourTable>[Nickname Column]),
           DISTINCT(<YourTable>[FirstLast Column])
    )
     
    After that, I'm not sure exactly what you're trying to do - could you give more details on the goal?
     
    Thanks,
    Nathan
    • Anonymous's avatar
      Anonymous
      Not applicable

      Anonymous  Thanks for the reply. The end goal is to be able to search by a contact's first, last, and/or nickname. 

       

      Ex. I have a contact Douglas Johnson. I want to be able to search by Douglas Johnson or Doug Johnson. 

      • Anonymous's avatar
        Anonymous
        Not applicable

        Anonymous  - 

        Ah, I wasn't familiar with the Text Filter visual - pretty nice!

        First you would create the table as mentioned above. Then use that new column in the Search Filter visual.

        Hope This Helps

        Nathan