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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
cmcgo3
Helper II
Helper II

How To Cross Reference Between Two Tables

*** Any assistance would be greatly appreciated !! ***

 

I have two tables; Scores and Sample Table, one (Scores) containing a list of 200 names.  The other table (Sample Table) is a copy of first table with a sample function that will generate a random 25 names by week.  I am trying to create either a calculated column or DAX in the first table that will tell me which names in the second table have been sampled.  I am thinking that my difficulty lies in the fact that the second table is a copy of the first..

 

Since Mitchell Chapman is in the Sample Data I would like it to say "true" or "1" in the All Data

 

 

cmcgo3_0-1700488695588.png

Sample Table =
VAR ProductNum_=
DISTINCTCOUNT('Scores'[name])
return
SAMPLE(ProductNum_ *25,'Scores',[name])

 

 

test.pbix 

2 REPLIES 2
Anonymous
Not applicable

Hi @cmcgo3 ,

 

Please try code as below to create a measure.

m1 =
IF ( MAX ( 'All DATA'[name] ) IN VALUES ( 'SAMPLE DATA'[name] ), 1, 0 )

 

Best Regards,
Rico Zhou

 

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

 

Thank you, will give it a try

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.