Forum Discussion

fbostan1's avatar
fbostan1
Icon for Helper I rankHelper I
4 years ago
Solved

power query IF statement help

how to write a formula in powerbi for "if a column from my current table equals to a column in another table then its xxx if not xxx"? I can't do conditional column becase the two columns are in two...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi fbostan1 ,

     

    My Sample is as below.

    Table1:

    Table2:

    Custom column:

     

    if List.Contains(Table2[Column1],[Column1]) = true then "Y" else "N"

     

    Result is as below.

     

    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.