Source | Search | Source | Search | YN | |
EXP/089/20-21 | /20-21 | EXP/089/20-21 | /20-21 | Ok | |
EXP/089/20-22 | /20-21 | EXP/089/20-22 | /20-21 | Nor | |
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
IF = Table.AddColumn(Source, "YN", each if Text.Contains([Source], [Search]) then "Ok" else "Nor")
in
IF
Table1 | Table2 | Result | |||
Source | Search | Source | YN | ||
EXP/089/20-21 | /20-21 | EXP/089/20-21 | Ok | ||
EXP/089/20-22 | EXP/089/20-22 | Nor | |||
let
Search = Excel.CurrentWorkbook(){[Name="Table2"]}[Content][Search]{0},
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
IF = Table.AddColumn(Source, "YN", each if Text.Contains([Source], Search) then "Ok" else "Nor")
in
IF