-1

我在水晶报表中有一个计算字段,我需要将其转换为 SSRS 表达式。任何帮助,将不胜感激。

If ({VISIT_TYPE.DESCRIPTION} = "New" or {VISIT_TYPE.DESCRIPTION} = "Walk-In New") then
    if {ATTEND_STATUS.DESCRIPTION} = "Did Not Attend" then
        "c.New DNA"
    else
        "a.New"
else if ({VISIT_TYPE.DESCRIPTION} = "Return" or {VISIT_TYPE.DESCRIPTION} = "Follow Up" 
or {VISIT_TYPE.DESCRIPTION} = "Walk-In Follow Up" or {VISIT_TYPE.DESCRIPTION} = "Walk-In Returns") then
    if {ATTEND_STATUS.DESCRIPTION} = "Did Not Attend" then
        "d.Return DNA"
    else
        "b.Return"
4

1 回答 1

0

尝试这个。您需要将字段替换为数据集字段。

=IIF ({VISIT_TYPE.DESCRIPTION} = "New" or {VISIT_TYPE.DESCRIPTION} = "Walk-In New", IIF ({ATTEND_STATUS.DESCRIPTION} = "Did Not Attend" ,
        "c.New DNA","a.New")
,IIF ({VISIT_TYPE.DESCRIPTION} = "Return" or {VISIT_TYPE.DESCRIPTION} = "Follow Up" 
or {VISIT_TYPE.DESCRIPTION} = "Walk-In Follow Up" or {VISIT_TYPE.DESCRIPTION} = "Walk-In Returns",IIF({ATTEND_STATUS.DESCRIPTION} = "Did Not Attend","d.Return DNA","b.Return"))
于 2016-11-22T16:06:01.600 回答