我需要比较日期v。"今天"以MM / YY格式然后如果为真,它将执行其余的,如果不是,它将是空白的。这是我到目前为止所得到的,但是我得到了"' Interger'输入'日期'无效......
=IIF(Format(Month(10) & Parameters!Year.Value, "MM/YY") < Format(Today,"MM/YY"),
IIF(Fields!Milestone.Value="Average Number of Days Milestones were Early",
FormatNumber(Fields!Oct.Value,0), IIF(Fields!Oct.Value = 0, "",
FormatNumber(Fields!Oct.Value,0))),"")
我非常感谢任何帮助。谢谢
答案 0 :(得分:0)
我一直在玩,并让它工作
=IIF(FormatDateTime(CDATE("11" & "/" & Parameters!
Year.Value),DateFormat.ShortDate) < FormatDateTime
(Today,DateFormat.ShortDate),IIF(Fields!Milestone.Value="Average Number of Days Milestones were Early",
FormatNumber(Fields!Oct.Value,0), IIF(Fields!Oct.Value = 0, "",
FormatNumber(Fields!Oct.Value,0))),"")