Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Expression to Hide a value if it is equal to some number and make the font a color if it is less than some number

$
0
0

I am working in SSRS 2008 R2 and I have columns that displays numbers from 0 to 100.  I want to hide the value if it is equal to 100 and highlight the value if it is less than 100.  I would be satisfied with just changing the font color to white if the value = 100 and making it red or some other color if it is less than 100.  How do I accomplish this?  I tried the expression below in the textbox properties but when I execute the report I get #Error in the field.  I also placed it in the Color property box but then BIDS returns "The value expression for the textrun 'ID00_00_59.Paragraphs[0].TextRuns[0]' contains an error:[BC30108]'Field is a type and cannot be used an expression.'

=IIF(ReportItems!ID00_00___00_59.Value < 100, "Red", "White")


Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>