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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Syndicate_Admin
Administrator
Administrator

Find condition data between two tables in Power Query

Hello tod@s

Please, I need your help, I have two tables, the first named "System" and the second named "Manual", both tables have a column called "Aux", where in both some data are repeated, I need through a custom column in Power Query, search for the data of the table "System" in the table "Manual" through the column "Aux", in case I find the values I need to place a new column called "Status" in the "System" table that indicates "Do not add" if you find otherwise "Add".

Attached pbix drive. so they can access the editor.

https://drive.google.com/file/d/1g6o4DYppiU5q6kDMvBBWU7SaWL3JNJI8/view?usp=share_link

Greetings and thanks.

2 REPLIES 2
amitchandak
Super User
Super User

@Syndicate_Admin , refer if this approch can help

 

https://medium.com/@amitchandak/power-query-across-table-calculated-column-718809a97fd

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

Try with the formula you indicate in the link, but there is something I must be doing wrong, because it throws me all the rows like "do not add"

ArimaKousei_0-1671838288734.png

This is the code you enter

= Table.AddColumn(#"Merged column inserted", "Custom", each let
_col = [Aux],
_tabla = Table.SelectRows(MANUAL,each [Aux]),
_condicion = if _tabla = _col then "add" else "do not add"

in
_condicion)

Please if you can help me correct, maybe the whole code this evil

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.