过多的论点Q

时间:2018-09-25 13:37:51

标签: powerbi dax

我正在尝试编写一项措施,以使我能够对statuscode和Datesweenween进行过滤。使用过滤器以及两个条件,FILTER函数的参数过多。我可以使用哪种语法来获得预期的结果?

Won-Existing = 
SUMX (
    FILTER ( _enquiries,
        _enquiries[_GUID] = _2018_Budget[_GUID] &&
        _enquiries[statuscode] = 866120005 &&
        DATESBETWEEN(_enquiries[Date Contract Awarded],DATE(2018,8,1),DATE(2018,8,31) 
    ),
    _enquiries[Amount (Enq)]
))

1 个答案:

答案 0 :(得分:2)

看起来有些括号与我不匹配。试试这个:

Won-Existing = 
SUMX (
    FILTER ( _enquiries,
        _enquiries[_GUID] = _2018_Budget[_GUID] &&
        _enquiries[statuscode] = 866120005 &&
        DATESBETWEEN(_enquiries[Date Contract Awarded], DATE(2018,8,1), DATE(2018,8,31)) 
    ),
    _enquiries[Amount (Enq)]
)