幂查询 M IN 算子 [英] Power query M the IN operator
本文介绍了幂查询 M IN 算子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对于 Power BI,什么相当于 SQL IN
运算符.就像 in 子句:
What would be equivalent of SQL IN
operator for Power BI. Just like in clause:
where [Column1] IN ('Value1', 'Value2', 'Value3')
我正在寻找 M 解决方案(不是 DAX).
I am looking for M solution (not DAX).
推荐答案
您可以使用 List.Contains
函数.
You can use the List.Contains
function.
例如,
= Table.SelectRows(Table1, each List.Contains({'Value1', 'Value2', 'Value3'}, [Column1]))
将过滤 Table1
以仅包含 [Column1]
包含在给定列表中的行.
will filter Table1
to include only rows where [Column1]
is contained in the given list.
这篇关于幂查询 M IN 算子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文