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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
vojtechsima
Memorable Member
Memorable Member

Power Query M - If Row is equal to another row in different table

Hello,

I have these two tables:
TABLE1

vojtechsima_0-1620050721514.png

TABLE2

vojtechsima_1-1620050753064.png

I need to add a custom column to TABLE 1 that would check if KEY in TABLE 1 also appears in TABLE 2 then it would do something.

The name structure is the same, I need to do it in Power Query M.

I thought something like this would do that trick, but it seems I can't properly reference the other table's column:

if [Key] = (#"Backlog_Linked Issues"[Key]) then "Incident" else "Proactive"

I know it's a bit silly, but can you please help me with this IF Statement?

 

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

Put something like this in the if:

List.Contains(Table2[Key], [Key])

View solution in original post

1 REPLY 1
HotChilli
Super User
Super User

Put something like this in the if:

List.Contains(Table2[Key], [Key])

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.