DAX表达式等同于SQL" WHERE ColumnA ='是'或者ColumnB ='否'或者ColumnC ='是'或者ColumnD ='否'

时间:2018-06-04 15:09:14

标签: dax

我试图找到将从下面的SQL查询中产生结果的DAX表达式。谢谢 选择计数(ID)AS CNT

FROM myTale

WHERE
ColumnA ='是'或者ColumnB ='否'或者ColumnC ='是'或者ColumnD ='否'

2 个答案:

答案 0 :(得分:0)

尝试这样的模式:

CALCULATE(COUNT(Column), FILTER(Table, Condition || Condition || Condition || Condition))

答案 1 :(得分:0)

Thank you Alexis -

CALCULATE(COUNT(Column), FILTER(Table, Condition || Condition || Condition || Condition))