Power query M the IN operator

前端 未结 1 1949
挽巷
挽巷 2021-01-23 04:19

What would be equivalent of SQL IN operator for Power BI. Just like in clause:

where [Column1] IN (\'Value1\', \'Value2\', \'Value3\')
相关标签:
1条回答
  • 2021-01-23 05:19

    You can use the List.Contains function.

    For example,

    = Table.SelectRows(Table1, each List.Contains({'Value1', 'Value2', 'Value3'}, [Column1]))
    

    will filter Table1 to include only rows where [Column1] is contained in the given list.

    0 讨论(0)
提交回复
热议问题