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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Decal
Helper I
Helper I

Lookup Value in another table using a filter

This may be pretty basic for many of you, but here is what I am trying to do.  

 

I have a table of job requisitions and a table of job applicants.  I want to lookup a value in the applicant table ([new hire]) when the [candidate status] = "Ready for Hire".  The similar column between the two table is [job requisition]

 

I tried create a temptable:

VAR temptable = FILTER(RELATEDTABLE(dimApplicants),dimApplicants[candidate status]="Ready for Hire")
 
And then use a lookupvalue:
RETURN
LOOKUPVALUE (temptable[newhire],dimApplicants[job requistion],temptable[job requisition])
 
DAX doesn't like this.
 
I can always create a subset actual table and link to that, but I was just hoping to be more efficient.
2 REPLIES 2
danextian
Super User
Super User

Hi @Decal ,

 

LOOKUPVALUE does accept multiple lookup columns and values.

LOOKUPVALUE (
    dimApplicants[new hire],
    dimApplicants[job requistion], temptable[job requisition],
    dimApplicants[candidate status], "Ready for Hire"
)




Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
vicky_
Super User
Super User

You can always try:

Measure = CALCULATE(MIN(dimApplicants[newhire]), FILTER(RELATEDTABLE(dimApplicants),dimApplicants[candidate status]="Ready for Hire"))

just note that this doesn't handle the case where there's 2+ candidates

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.