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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
bipowerbix
Helper I
Helper I

Measure to check if values in table A are present in Table B, Connection = DirectQuery not Import

Consider Table A has 2 columns, Name, and Email shown below

bipowerbix_0-1683681987947.png



Consider Table B are 5 rows and 2 columns Key and Email respectively shown below
 

bipowerbix_1-1683682067853.png



NOTE: CONNECTION is DirectQuery (NOT IMPORT), I cannot use Calculated Column, can only use Measure. 

How to get this Output:

bipowerbix_2-1683682193321.png 

Values in Check can either be YES/NO or 0/1

 

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @bipowerbix 

try to plot table2 columns with a measure like:

measure = 
IF(
    MAX(table2[Email]) IN ALL(table1[Email]),
    1, 0
)

it worked like:

FreemanZ_1-1683684415200.png

View solution in original post

1 REPLY 1
FreemanZ
Super User
Super User

hi @bipowerbix 

try to plot table2 columns with a measure like:

measure = 
IF(
    MAX(table2[Email]) IN ALL(table1[Email]),
    1, 0
)

it worked like:

FreemanZ_1-1683684415200.png

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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