Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
bbbt123
Helper I
Helper I

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
1 ACCEPTED SOLUTION
bbbt123
Helper I
Helper 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

View solution in original post

6 REPLIES 6
bbbt123
Helper I
Helper 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

dax
Community Support
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.

amitchandak
Super User
Super 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-tr...

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
Not applicable

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

Use this code it might help you.

Regards,

Lewis

Hi, thanks for that but I don't get your code. the labels of the columns do not match my examples

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.