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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Check if ID shows up in SEPERATE Table

Hello, 

 

So I have one master table (Table A), that has ID & Tag ID columns, and I want to output the return column:

IDTag IDReturn
881001afdTRUE
883003afdTRUE
789gqg123FALSE
44440051aTRUE
546841324saFALSE
168412343FALSE

 

And Table B has these columns:

RedBlueGreenBrown
001afd0051a12lklk43oorp
002afd0051b13lklk44oorp
003afd0051c14lklk45oorp

 

 

 

Table B shows All Tag ID's split by their color. 

I need to somehow see if Tag ID's from Table A, show up in Table B. If the Tag ID's are in A, then output a TRUE in Table A. 

 

I am using power query, and don't know how to connect the tables to perfrom this operation. 

 

Please help!!

 

Best, 

Senad

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous ,

try a new column like

column =

var _tab = union(all(Table1[Red]), all(Table1[Blue]),all(Table1[green]),all(Table1[brownRed]))

Var _cnt = countrows(filter(_tab, search(Table1[Tag ID],_tab[Red],,0) >0 ))

return

if(isblank(_cnt), false(), true())

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
v-yadongf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please create a table like below:

Table = union(all('table2'[Red]),all('table2'[Blue]),all('table2'[GreenBrown]))

vyadongfmsft_0-1661852494016.png

 

Then as @amitchandak  said create a new column:

Column = 
Var _cnt = countrows(filter('Table', search('table1'[Tag ID],'Table'[Red],,0) >0 ))
return
if(isblank(_cnt), false(), true())

vyadongfmsft_1-1661852494019.png

 

Best regards,

Yadong Fang

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

amitchandak
Super User
Super User

@Anonymous ,

try a new column like

column =

var _tab = union(all(Table1[Red]), all(Table1[Blue]),all(Table1[green]),all(Table1[brownRed]))

Var _cnt = countrows(filter(_tab, search(Table1[Tag ID],_tab[Red],,0) >0 ))

return

if(isblank(_cnt), false(), true())

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.