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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Looking for only values in a non related table

I’ve been trying to use the LOOKUP function but can’t seem to get it to work.  I have 2 tables that do not have a relationship and am trying to get only the Request Id’s (Table 1) are found in the FM Request ID (Table 2).

 

Table1                                             Table2

Request_ID                                     FM_Request_ID

 

Thanks,

DK

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

I briefly simulated some data that I hope fits your situation.

vzhangti_0-1653641860522.png

Column:

Column = 
LOOKUPVALUE('Table 2'[Value],'Table 2'[ FM_Request_ID],[Request_ID])

vzhangti_1-1653641904365.png

Does this match the output you expect?

 

Best Regards,

Community Support Team _Charlotte

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

 

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

I briefly simulated some data that I hope fits your situation.

vzhangti_0-1653641860522.png

Column:

Column = 
LOOKUPVALUE('Table 2'[Value],'Table 2'[ FM_Request_ID],[Request_ID])

vzhangti_1-1653641904365.png

Does this match the output you expect?

 

Best Regards,

Community Support Team _Charlotte

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

 

Greg_Deckler
Community Champion
Community Champion

@Anonymous I tend to use MAXX(FILTER(...),...) in these situations, like:

Measure =
  VAR __ID = MAX('Table1'[Request_ID])
  VAR __T2ID = MAXX(FILTER('Table2',[FM_Request_ID] = __ID),[FM_Request_ID)
RETURN
  IF(ISBLANK(__T2ID),BLANK(),1)

Alternatively, you could do this:

Measure = 
  VAR __ID = MAX('Table1'[Request_ID])
  VAR __FMIDs = SELECTCOLUMNS('Table1',"__FM_Request_ID",[FM_Request_ID])
RETURN
  IF(__ID IN __FMIDs,1,BLANK())


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors