Forum Discussion

J18IB's avatar
J18IB
New Member
3 years ago

LookupValue if error help

Fairly new to Power Bi so looking for some help. Below is the formula in columns I am using:

 

=iferror(Lookupvalue(),  "No Found")

 

However, it is returning blanks. When looking in the other sheet, the lookupvalue is not there so I'm not sure what the blanks mean? Basically trying to find the corresponding value in sheet 1, and if its not there, "Not Found" ? 

 

Thnaks in advance

2 Replies

  • HotChilli's avatar
    HotChilli
    Community Champion

    Are you telling us that you are using LOOKUPVALUE without passing any parameters? That won't work.

    https://dax.guide/lookupvalue/ 

    -

    Once you get the correct values to pass using LOOKUPVALUE, you can add the "No found" as the last parameter and it will be used as an alternative/default value 

  • Hey, 

    You can use IFERROR(LOOKUPVALUE,’’NOT FOUND’’)

    Make sure you replace ‘lookupvalue’ with the actual lookup expression that you want to search for in sheet1.

    Do pass the parameters while using Lookup value 

    And it will display ‘not found’ instead of returning a blank value.

    Hope this will  help