合同期限一年以内

Duration of a Contract within a year

团队,

我试过这个公式来在一年内退还我的合同金额。意思是 SUMX 函数中的“参数‘2’是必需的。我在某处缺少括号吗?

Z - 无合约价值 = if(HASONEVALUE('Z - Contract Calender'[Year]),COUNTROWS('Sales Force_Contract')*MIN('Sales Force_Contract'[Z - 日利率]),SUMX (SUMMARIZE(VALUES('Z - Contract Calender'[Year]),'Z - Contract Calender'[Year],"ABCD",COUNTROWS('Sales Force_Contract')*MIN('Sales Force_Contract'[Z - Daily Rate] )))))

谢谢,

您缺少提供第二个参数值,如下所示-

Z - No Contract Value = 
if(
    HASONEVALUE('Z - Contract Calender'[Year]),
    COUNTROWS('Sales Force_Contract') * MIN('Sales Force_Contract'[Z - Daily Rate]),
    SUMX(
        SUMMARIZE(
            VALUES('Z - Contract Calender'[Year]),
            'Z - Contract Calender'[Year],
            "ABCD",COUNTROWS('Sales Force_Contract') * MIN('Sales Force_Contract'[Z - Daily Rate])
        )
        ,
        //You are missing something here after the comma
    )
)