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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
PBI_Monkey
Helper I
Helper I

Check if a value is in another table which are not related

Hi Community,

 

I have 2 unrelated tables.

A slicer with Company has to be selected and then it returns the X values associated with it.

Table1 contains X Coordinates eg:

CompanyX 
A144.617 
A144.623 
A144.616 

 

Table 2, contains the same but different company and values:

CompanyGeoX 
A1144.888 
A2144.837 
A2 144.623 

 

I would like to create a calculation which flags if a GeoX value is found in Table1.

For example, if GeoX is found in Table1 in the X column it should return a true or 1. 

Remember that these tables are never related and the Company in Table1 will always be filtered with a slicer to give the list of X Values to do the check.

 

I've tried a number of options using LOOKUPVALUE but it always returns True or 1.

 

Any ideas would be awesome!

Thanks

2 REPLIES 2
PC2790
Community Champion
Community Champion

Hi @PBI_Monkey ,

 

Did you try this:

 

 

IsPresent = if(ISBLANK(LOOKUPVALUE(Table1[X],Table1[X],Table2[GeoX])),0,1)

 

It is working for me.

PC2790_0-1649329568538.png

 

Thanks 

Hi PC2790,

Thanks for the quick response.

I have already tried your suggested calculation, but it returns incorrect True or False.

I think because it needs to be done after the Slicer is filtered and not at the Data side.

As the Slicer values needs to be selected first and then the Match is done.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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