2 列のレポートがあります。これら 2 つの列には、「今月」または「先月」という名前が付けられます。「先月」のデータに関連して、「今月」のデータ セルに背景色を追加しようとしています。
私は IIF ステートメントを使用した動的な色分けに精通していますが、これを理解できないようです。
以下では、LOOKUP コマンドで IIF を使用しようとしていますが、このコマンドを正しく使用しているかどうかさえわかりません。どんな助けでも大歓迎です。
=IIF(LOOKUP(Fields!Type.Value = "This Month", Fields!Type.Value, Fields!Count.Value, "ExecutiveFCAPS") < LOOKUP(
Fields!Type.Value = "Last Month", Fields!Type.Value, Fields!Count.Value, "ExecutiveFCAPS"), "LightGreen",
IIF(LOOKUP(Fields!Type.Value = "This Month", Fields!Type.Value, Fields!Count.Value, "ExecutiveFCAPS") = LOOKUP(
Fields!Type.Value = "Last Month", Fields!Type.Value, Fields!Count.Value, "ExecutiveFCAPS"), "Yellow",
IIF(LOOKUP(Fields!Type.Value = "This Month", Fields!Type.Value, Fields!Count.Value, "ExecutiveFCAPS") > LOOKUP(
Fields!Type.Value = "Last Month", Fields!Type.Value, Fields!Count.Value, "ExecutiveFCAPS"), "Orange", "Transparent")))