Reporting ServicesSQL Server Reporting Services. Please specify which version.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Reporting Services section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
I have a table with 5 columns and I want to put this expression for the background color;
IIf xi > avg(x) + 3*stdev(x) OR xi < avg(x) - 3*stdev(x) THEN highlight
This is what I want to achieve, if column one is XI; then column 2,3,4 is X.
Then do this: Starting from column one, for to highlight column one, I firstly have to get the avg of column 2,3,4 and 5, add it with (3 * standard deviation of column 2,3,4 and 5 values) , then see if the value I get is below column one(which is XI on this instance),
And the same applies for other columns, if I want to see if I can highlight column two, I need to get the avg of column 1,3,4 and 5, then add that with (3 * standard deviation of column 2,3,4 and 5 values) then see if the value I get is below column two(which is XI on this instance).
Please help me on how can I get around this issue, or maybe if that's a better way.
It would be helpful if you would post a sample of your data source and then give a specific example or two of the intended logic. Please show the column names and values for all five columns and a few records. Something like this, perhaps:
ColName1, ColName2, ColName3, ColName4, ColName5
Change background color of Col1 if ...
Change background color of Col2 if ...
__________________ Paul Turley
Mentor | SQL Server MVP, SolidQ
Author: SQL Server Reporting Services Recipes for Designing Expert Reports; Professional SQL Server Reporting Services (2000, 2005, 2008 & 2012), Beginning T-SQL (2000, 2005 & 2008), SSIS, SSAS & Access