Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Search for exact string in column

I want to search for exact string in a column and then get a particular value.

 

Formula i use:

asb Rev new = if(CONTAINSSTRING([segment],"asb"),[asb Rev],blank())

But There are values in segment like asb, asb TSS, asb NIV.

 

Now the values are populating against asb as well as against asb TSS, asb NIV.
Is there a way to search only for exact letters in segment column ??
 
I want to search in such a way that when i write asb in formula ,it searches for only asb not for asb TSS or asb NIV.
 
let me know how can i work this situation in DAX
Help!!
  • Hi Anonymous ,

     

     

    As tested, Greg_Deckler 's solution can help you.

     

    Best regards,
    Lionel Chen

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

4 Replies