开始日期和结束日期为当天的 SSRS 条件格式

SSRS Conditional Formatting with start date and end date being on the current day

我正在尝试实现条件格式,当开始日期和结束日期都是当天时,背景填充会发生变化,但它让我失望。

这是我的资料:

=IIf(Fields!Adata.Value = "Ball","Yellow",nothing)

=IIF(Fields!Bdata.Value = "Sign","Yellow",nothing)

=IIF(Format(END_DATE.Value, "yyyyMMdd") = Format(Today(), "yyyyMMdd"), 
"Yellow", nothing)
=IIF(Format(START_DATE.Value, "yyyyMMdd") = Format(Today(), "yyyyMMdd"), 
"Yellow", Nothing)

我如何让它们作为一个表达式而不是 4 个单独的表达式工作,让 2 个日期表达式一起工作,它们只在开始日期和结束日期都等于当天时触发。

只是缺少一个 AND,尽管正如 Alan END_DATE 和 START_DATE 所指出的那样,看起来他们需要在他们面前做些什么;字段!,参数!等:

=IIF(Fields!Adata.Value = "Ball","Yellow", IIF(Fields!Bdata.Value = "Sign","Yellow", IIF(((Format(END_DATE.Value, "yyyyMMdd") = Format(Today(), "yyyyMMdd")) AND ((Format(START_DATE.Value, "yyyyMMdd") = Format(Today(), "yyyyMMdd")))), "Yellow", nothing))))