Forum Discussion

gvg's avatar
gvg
Icon for Post Prodigy rankPost Prodigy
9 years ago
Solved

Lookupvalue equivalent to search for text values

Hi DAXers, I am wondering is there a way to search for a text string in DAX and return a value like with LOOKUPVALUE? I believe I can not use LOOKUPVALUE because ir requires a scalar search value. L...
  • MFelix's avatar
    9 years ago
    Hi gvg,

    Assuming you want to return the full data LOOKUPVALUE works fine with text if you only want part of tge value you need to use SEARCH.

    Regards,
    MFelix
  • MFelix's avatar
    MFelix
    9 years ago
    Hi gvg,

    You are making a measure right? In dax you can use max and.min also with text fields, so if.ypu use the.last sintax should work.