I am trying to conditional format a bar in my Bar Chart.
I am comparing Planned Time VS Actual time and I want to set a conditional format to display different colors IF Actual is less than or Equal to Planned then show me RED else GREEN.
I am unable to find a way to do this. Please Help!
I tried SWITCH
and IIF
functions but nothing happens. Same of my code attached.
=iif(Fields!ActualDuration.Value <= Fields!PlannedDuration.Value, "Light Coral", "Dark Sea Green")
I expect the bars to change color according to my criteria.
由于图表对值进行求和,因此Series Fill
属性的表达式也需要使用SUM:
=iif(SUM(Fields!ActualDuration.Value) <= SUM(Fields!PlannedDuration.Value), "Light Coral", "Dark Sea Green")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.