reporting-services

SSRS How to change background color after a field in a tablix

为君一笑 提交于 2020-01-06 22:00:49
问题 I have a tablix table with hundreds of rows of data. I would like to have the background color to be yellow right after a particular condition. How can I do that? Example - I want all the data to be yellow iif(Fields!pet.Value="cat"), so hamster and on... 回答1: You need to change the expression for the cell's BackgroundColor and remember what it was. We'll need custom code for this. Go to the Report menu, choose Report Properties... and click on Code and enter the following code: Dim

SSRS How to change background color after a field in a tablix

好久不见. 提交于 2020-01-06 22:00:09
问题 I have a tablix table with hundreds of rows of data. I would like to have the background color to be yellow right after a particular condition. How can I do that? Example - I want all the data to be yellow iif(Fields!pet.Value="cat"), so hamster and on... 回答1: You need to change the expression for the cell's BackgroundColor and remember what it was. We'll need custom code for this. Go to the Report menu, choose Report Properties... and click on Code and enter the following code: Dim

SSRS Issues with 32bit and 64bit ODBC drivers

痞子三分冷 提交于 2020-01-06 21:04:44
问题 The ultimate goal is for users to be able to run a report that looks pretty and grabs current information from our database. We'd like to use SQL Report Builder since we're already using it for other reports. The database is Cisco UCCX and we're accessing it with an ODBC connection from our reporting services SQL Server 2008 R2. We've successfully setup System ODBC connections with both 64bit and 32bit drivers. When trying to access the connections though, we're receiving errors. Using the

NOLOCK HINTS IN REPORT Stored Procedures

烈酒焚心 提交于 2020-01-06 20:35:53
问题 We have some SSRS reports which run slowly with large amounts of data. We thought to do some query optimization in backend stored procedures in the reports. My question is, is it good to add with (nolock) hints in stored procedures (only in select statements) for reporting purposes? 回答1: DB Locks of course are important to ensure you aren't getting 'dirty' data involved in your transactions. Still, there are conditions where you can safely use NOLOCK. For instance, if you must use a cursor (

$_SERVER['HTTP_REFERER']

↘锁芯ラ 提交于 2020-01-06 19:41:12
问题 I am making a report problem link on my website and I want it to email me the last address they were on before clicking on the report link. I know/think you use $_SERVER['HTTP_REFERER'] but I dont know how to put that in the mail code?So how would you write that here is my mail code with out it. Mail("email@email.com", "Subject", "Message"); echo "Report Sent"; 回答1: The message should be a variable that you can put information in: $message = "Error report: <p>Last site visited: {$_SERVER[

How to Add Excel-like “color scale” red-yellow-green conditional formatting in SSRS report based on min and max values

你。 提交于 2020-01-06 18:09:42
问题 How can I create heat map in SSRS based on min and max values? Right now I'm using SWITCH function in order to differentiate colors. = SWITCH (Fields!.Value = 0, "Coral", Fields!.Value >=1 and Fields!.Value <= 5 , "Yellow", Fields!.Value >=6 and Fields!.Value <= 10 , "Gold", Fields!.Value >= 11 and Fields!.Value <= 16,"#bdff30", Fields!.Value >= 17 and Fields!.Value <= 22,"#7fda24", Fields!.Value >= 55 ,"#0ca102") But how can I just tell SSRS that, for example between 5 different values,

Using condition to set SSRS matrix column name

北战南征 提交于 2020-01-06 18:09:38
问题 I was trying something new, using matrix and only want to see the recent two years and i made 2 columns. The first column had this expression '=MAX(Fields!Year.Value)-1' and the second column has the expression '=MAX(Fields!Year.Value)'. I expected to only see 2 year columns but it shows all of them and on the last column it sums up all the orders. See the photos below: In the design view my matrix looks like this: The output in report is: The problem is that year 2007 only exists in another

Using condition to set SSRS matrix column name

℡╲_俬逩灬. 提交于 2020-01-06 18:09:13
问题 I was trying something new, using matrix and only want to see the recent two years and i made 2 columns. The first column had this expression '=MAX(Fields!Year.Value)-1' and the second column has the expression '=MAX(Fields!Year.Value)'. I expected to only see 2 year columns but it shows all of them and on the last column it sums up all the orders. See the photos below: In the design view my matrix looks like this: The output in report is: The problem is that year 2007 only exists in another

Summing lookups in SSRS

给你一囗甜甜゛ 提交于 2020-01-06 17:58:07
问题 I have an SSRS tablix that pulls data from several datasets resembling the following (changed to avoid explaining the exact context) : There is an employees dataset that gives the employee ID, the employee ID of their manager and the number of tasks they have completed e.g. Manager Employee Tasks DATA003 DATA001 118 DATA003 DATA002 42 DATA003 DATA003 94 DATA003 DATA004 118 From another database there is a dataset that gives the number of complaints against each employee, and the number that

SSRS Format seconds as time (negative seconds)

时间秒杀一切 提交于 2020-01-06 17:43:06
问题 I have a column with integers: TotalSec that has seconds. It can be 0, negative or positive. I have to format these seconds in a report. But cant get something working for the negative seconds. My logic: For 0 = Nothing, For Positive format as HH:mm:ss For Negative - ABS the value then format as -HH:mm:ss =IIF(SUM(Fields!TotalSec.Value)=0, Nothing, IiF(SUM(Fields!TotalSec.Value)>0, Format(DateAdd("s",SUM(Fields!TotalSec.Value), "00:00:00"), "HH:mm:ss"), "-" & Format(DateAdd("s",ABS(SUM(Fields