简体   繁体   中英

Indicators in SSRS

I have a column in SSRS report. The value is "True" or "False" or "Yes" or "No" or "1" or "0"

Instead of showing that in that column, I would like to use indicator.

I placed indicator in that column but need to set start and end property. How do I go about doing it so I can show green checkmark when it's "True", "Yes", or '1" and red otherwise?

I am trying =IFF(Fields!Column_name.Value = "True", "Red", "Green") for the Start value for Green Check mark...but obviously I am wrong...

any help?

Well maybe its just a typo in your question but a couple things stand out

  • the function is IIF, not IFF
  • The True result should come first after the condition

I've never used the indicators before, but looking briefly at them, it looks like you can define ranges that are acceptable (green), unacceptable(red), or in the middle (yellow).

Start and End should probably be numeric values, "Green" and "Red" don't seem like valid values.

Try binding the indicator value expression to something like this.

=IIF(Fields!ColumnName.Value = "True" OrElse
    Fields!ColumnName.Value = "Yes"  OrElse
    Fields!ColumnName.Value = "1", 100, 0)

Go to the Indicators properties > Values And States and put the Check's Start & End Value to 1 . And the X put it's Start & End Value to 0 .

Then write your expression like this:

=iif(First(Fields!YourField.Value, "YourDataSet")=True,1,0)

That should give you a Check if checked or an X if not.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM