all groups > sql server reporting services > march 2005 >
You're in the

sql server reporting services

group:

excel and column colors/formulas


excel and column colors/formulas MJ Taft
3/7/2005 1:09:01 PM
sql server reporting services:
I have a report that has a pct avail column where the font is colored red,
yellow, or green based upon thresholds. The color is based upon an IIF
formula that compares against the thresholds (db fields). When this report
is exported to excel, the colors are all red (NOT a good thing ... freaks out
the customer). They want to keep the colors on the report, but would like to
eliminate the colors from the export to excel if they wont work properly.
Also when they click on the percent avail they are seeing
=IF(_177=0,0,_176/_177) which of course makes no sense to them.
The expression I am using on the color in srs on that field is this:

=iif((me.value * 100)<= Fields!THRESHD_CRITICAL.Value
,"red",iif((me.value * 100) <= Fields!THRESHD_WARNING.Value
,"gold","green"))

So ... the question is can I do anything about how this exports to excel so
they dont see all of their percentages as RED (they appear correctly colored
Re: excel and column colors/formulas Chris McGuigan
3/8/2005 3:12:26 AM
This issue has been raised elsewhere, it's colouring the whole column
to whatever the first cell evaluates to, i.e. if the fist cell should
have been black, the whole column will come out black in excel.

RS makes a half hearted attempt to convert RS expressions to Excel
formulas if it can, hence the =IF(_177 .. etc. This would be a good
feature if it worked properly. Also would be nice if you could specify
whether to export formulas or values.

We can but hope both issues are fixed in 2005. I don't think it will be
fixed in SP2.

Chris

[quoted text, click to view]
AddThis Social Bookmark Button