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
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
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.

Users online (2,187)