我想突出显示比当月更早的所有月份。 通过在Reporting Services中创建表达式。 我有这个表达月份,有效:
=IIF(month(Fields!Date.Value) < month(today()), "Gold", "White")
现在我想添加year作为过滤器只是为了安全,不知道如何做到这一点:
=IIF(month(Fields!Date.Value) < month(today()), "Gold", "White") & IIF year(Fields!Date.Value) <= year(today())
任何?
答案 0 :(得分:1)
试试这个
=IIF(month(Fields!Date.Value) < month(today()) AND year(Fields!Date.Value) <= year(today()), "Gold", "White")
这可能不是正确的做法,但同时希望这有助于
=IIF((year(Fields!Date.Value)< year(today())) OR (month(Fields!Date.Value) < month(today()) AND year(Fields!Date.Value) = year(today())), "Gold", "White")
如果你描述你想做什么,可能有更好的方法