Forum Discussion
look up value not working
Hi, I have to retrieve a value from a different table and I am using this formula:
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
- amitchandakSuper User
Can you share sample data and sample output. If possible please share a sample pbix file after removing sensitive information.Thanks.
My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970- bbbt123Helper 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?
- AnonymousNot applicable
Kunde = LOOKUPVALUE(Kunde[ID]; Kunde[ID];Angebot[Kunde ID])
Use this code it might help you.
Regards,
Lewis
- bbbt123Helper I
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
- daxCommunity 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 ZhiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.