Forum Discussion

bbbt123's avatar
bbbt123
Helper I
6 years ago
Solved

look up value not working

Hi, I have to retrieve a value from a different table and I am using this formula:

 

Column = LOOKUPVALUE(Availability[OnHoliday],Availability[day],lq[deadline],Availability[Email],lq[Email])
 
It doesn't return any error message, just is doesn't work. (it returns null values) The look up value must return the desidered column "on holidays" if the date specified and the email address match.
 
There is no direct relationship between those two columns because they both have mutliple rows so I have created a calendar table to connect all the dates together. Please, help
  • I figured it our by myself. I write here the solution in case someone has the same issue. Basically my first formula was correct (Lookupvalue searching for multiple criteria,) but it was not working because lookupvalue doesn't work with dates. I have changed the format of the date to whole number and now it is working

6 Replies

    • bbbt123's avatar
      bbbt123
      Helper I

      see for instance I have a table with 2 columns Date and Email

       

      Table 1

      Date           Email

       

      1/02/2020  email1

      2/03/2020  email 2

      4/02/2020  email 3

       

      I have a second table with a column with dates, another column with the email address and a 3 column that we call "A"

      Table 2

      Date           Email       A

       

      3/02/2020  email4

      2/03/2020  email 2

      7/02/2020  email 6

       

      In my output I want the column A imported in Table 1 when email address and dates match

       

      Output

       

      Table 1

       

      Date           Email         A

       

      1/02/2020  email1   null

      2/03/2020  email 2    value in A

      4/02/2020  email 3  null

       

      any help?

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        Kunde = LOOKUPVALUE(Kunde[ID]; Kunde[ID];Angebot[Kunde ID])

        Use this code it might help you.

        Regards,

        Lewis

  • I figured it our by myself. I write here the solution in case someone has the same issue. Basically my first formula was correct (Lookupvalue searching for multiple criteria,) but it was not working because lookupvalue doesn't work with dates. I have changed the format of the date to whole number and now it is working

    • dax's avatar
      dax
      Community Support

      Hi bbbt123 , 

      It seems that you solved this problem, right? If so and if you'd like to, you could mark corresponding post as answer or share your solutions. That way, people who in this forum and have similar issue will benefit from it.

      Best Regards,
      Zoe Zhi

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