SSRS Matrix Condtional Formatting

I'm building myt very first SSRS report.  I've read the other posts and it seems this should be very simple, but there is something I must be totally missing.   It is a matrix report with two levels of row groupings, by business
unit and by order status, returning a count of orders with columns for each region.    I would like the entire row for certain statuses to be a different color.  
First, I'm not sure where to put the code to have it affect the entire row.   I've been trying to format just the field that contains the order status.   I select the cell, F4, and in Background Color type =IIF(Fields!OrderStatus.Value
= "PP LATE", "RED","BLUE")  Everything comes back Blue.  I've also tried trimming the field and I've tried just checking  Left(Fields!OrderStatus.Value,2)  = "PP".  Same Result.  
What am I missing?

OMG.  I think my whole problem must have been not realizing that while the SQL is not case sensitive, the expression is...  It seems to be working now on the cell.  I tried copying the entire formula and pasting it into the Sum
Counts cell and it seems to work provided the cell is populated. But sometimes the cell is blank--and then it is going to the default color.   Is there a way to apply this at the row level? 
Nope Me.Value will work for individual cells only
For row level you need to use the actual expression itself.
Also if case is your issue you can apply ucase function to make case unified before doing the comparison.
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page

Similar Messages

  • SSRS Matrix report to show or hide year column based on parameter value "Date" selected.

    Hey experts!
    I have a requirement an ssrs matrix report should display columns (year/s) based on parameter value (date/s). 
    My Dataset fileds are: Product, Year_name, Month_name, Date
    Currently my report output looks like this-
    Param Date: 2013-08-01 00:00:0.000
    Product +Calender2011      +Calender2012     -Calender 2013........                        +Calender2014
                             Total
                      Total Jan13  Feb 13  Mar13..  Dec13   Total           Total
    Abc                      100
                        220
    10      20         30.......  20       250              400
    Xyz 110
    200 50      80         40.......  30       450              600
    My requirement:  if I'm selecting Date parameter value as '2013-xx-xx' I should only able to see Year column 'Calender2013' and rest of the years should hide. Similarly If I'm selecting Date parameter value as '2014-xx-xx' I should only able to
    see Year column 'Calender2014' .
    Appreciate your kindly help. 
    Afan

    Hi Afan,
    According to your description, you want to only show the selected year on your report, right?
    In this case, you need to get the year from the date parameter using the expression below
    =Year(Parameters!Date.Value)
    And then use the expression below to get the year from Year_Name field.
    =Right(Fields!Year_Name.Value,4)
    Then add a filter to the dataset to filter the data like below
    Expression:=Year(Parameters!Date.Value)
    Operator:=
    Value:=Right(Fields!Year_Name.Value,4)
    Reference
    http://msdn.microsoft.com/en-IN/library/dd255287.aspx
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Find the difference between two columns in an ssrs matrix ? MSCRM

    Hi All,
    I am working in reporting part of our project (On-line MSCRM 2013) & in reporting services.
    I am trying to create report using fetch xml based. Below is the snap what we required the result.
    Kindly help me, how to get the difference in both column. (Its a matrix table where year is grouped).
    We need difference between both year Like (Plan Revenue of 2013 & Plan Revenue of 2014 difference in Plan Revenue Diff section) and same for Actual
    Revenue.
    https://social.microsoft.com/Forums/en-US/054d5ca4-0d38-4dc6-84a8-88866cc228fe/find-the-difference-between-two-columns-in-an-ssrs-matrix-mscrm?forum=crmdevelopment
    Thanks,
    Mohammad Sharique

    Hi Bro,
    I used parametrized option for year and done the report,Currently we are getting values in Difference column now i want to show
    that value in percentage. How can we show the percentage based on that value. Means i want to show the Difference in Percentage. 
    Kindly help me i tried but getting some issue. Below i am mentioning the code and snap with result.
    Below expression using to showing Plan Revenue in Percentage for year.
    =
    Sum(IIF(Fields!new_year.Value =Parameters!StartYear.Value,cdec(Fields!new_planrevenueValue.Value/1000), cdec(0)))
    - Sum(IIF(Fields!new_year.Value =Parameters!EndYear.Value,cdec(Fields!new_planrevenueValue.Value/1000), cdec(0)))
    /IIF(Sum(IIF(Fields!new_year.Value = Parameters!StartYear.Value,cdec(Fields!new_planrevenueValue.Value/1000), cdec(0)))>0,
    (Sum(IIF(Fields!new_year.Value = Parameters!StartYear.Value,cdec(Fields!new_planrevenueValue.Value/1000), cdec(0))))
    ,1)
    )*100))
    Result issue is as below in snap with highlighted in red colour.
    Kindly help me on this issue also :)

  • Column limit in SSRS Matrix report being uploaded to Report Manager in SQL2008 R2

    Hi,
    I am getting this error :
    SQL Server Reporting Services
    Error
    The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible
    version.
    I am attempting to upload my SSRS Matrix report to Report Manager. The report has a lot of columns (109 row columns followed by the variable number of column columns).
    After trial and error, I discovered that when I only have 107 row columns I can upload successfully.
    Can anybody explain why this is happening? Is there a limit of 107 columns?
    Thanks,
    GRustean

    As there was too much nesting in the tablix inside the report. We added new tablix and shifted some rows to that tablix. Because maximum of 36 level nesting is allowed in tablix

  • PXI-2533 SSR Matrix and damaged crosspoints

    Hi
    I have a PXI-2533 SSR matrix card and PXI-4070 in my chassis. I am using NI Teststand to do resistance and voltage measurements on my UUT.  I am measuring a high impedance on a couple crosspoints on my UUT. By placing a 1kohm resistor on two crosspoints and using NI-SWITCH and DMM softpanel, I verified that the SSR will not close and it measures in the megaohms.
    I would like to know what's the best practice to determine a damaged crosspoint? Does NI have a tool that will test the SSR automatically?  Also, is there a table list the SSR relay crosspoint to the board reference designator? Something similar to the 2815 relay replacement guide.
    http://zone.ni.com/reference/en-XX/help/375472A-01/switch/2815_relay_replacement/
    Thank you,
    Sopheak

    NI has an internal final verification test tool to verify all modules are operational before leaving the factory.  We don't have a public tool, but it is easy to replicate a similar system:
    1. Short all columns together and connect to DMM-
    2. Short all rows together and connect to DMM+
    3. Verify that with no relays closed, the resistance is infinite.  If the resistance isn't infinite, then you've got a shorted relay somewhere.  To determine which relay is shorted, you'll need to diconnect half the rows or columns recursively until the short is gone.  Once you've determined which relay is shorted, replace it and repeat step 3 until there are no shorts.
    4. Close all relays one at a time and verify the resistance is in specification (1.4Ω for 2533).  If a relay exceeds specification, make note and then once you've cycled through all relays, replace all out-of-spec relays.
    We don't publish solid state relay replacement guides, as these modules shouldn't fail if used within specification.  However, if you let me know which crosspoints are broken, I'll let you know their location.  We do offer an RMA service, if you'd like NI to service the module, but it sounds like you've got everything under control and know how to use an iron .  FYI: The 2533 uses Avago's ASSR-1510-503E
    Of course, you'll need to understand why the 2533 has blown out solid state channels... something in your test system likely exceeded voltage/current specifications.
    -John Sullivan
    Analog Engineer

  • SSRS Matrix with customized column

    I need to create a report in SSRS 2008. it's in the matrix format, but instead of normal columns that grows to the right, they want something like stepped rows only for column
    Something like this:
    col1
    col2
    col3
    row1
    row2
    row3
    instead of the standard matrix
    col1 col2 col3
    row1
    row2
    row3
    Can anyone suggest to me how to do this?
    Thanks!
    EDIT: I include an url that hopefully help to clarify things a bit. I basically need to create a report in SSRS that resemble this below:
    (sorry, unable to include image yet since I'm a new member)
    http://imageshack.com/a/img633/7375/JB1wPE.jpg

    Hi Daniel,
    According to your description, you create a matrix in SSRS 2008. Then you want to make columns grows with step-shape.
    In Reporting Services, dynamic column headers expand horizontally in a matrix. All the column headers can only be within one row. It’s not supported to put headers into different rows. However, we can make each column header displays in different positions
    of a text box, then make it look like step-shape. As we tested in our environment, we set expression for column group like bellow:
    =Switch(Fields!ID.Value="P01","P01"&chr(10)&chr(10),Fields!ID.Value="P02",chr(10)&"P02"&chr(10),Fields!ID.Value="P03",chr(10)&chr(10)&"P03")
    Then we can get step-shape column headers.
    Reference:
    Adding a Matrix (Report Builder 2.0)
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • SSRS Matrix report. Variance expression by Month. Need to compare month from prior year to current month of current year VS2010

    Please help.  I have a matrix report.  In the report I have row group  PO Type.  One the Column groups I have a parent group by Fiscal Year, and then a child group by Month.  When I run the report, I get two years of data back broken
    out by month.  Please see below.
    Now here is where I am getting stuck.  I need to take the variance between the current month of the current year, from the same month of the prior year.  So I need to show the difference between Oct , 2014 from Oct, 2013. November, 2014 from November
    2013... etc. etc.
    In the example below, how do I create a column or row showing the variance for Contracts for October 2014.  I need to take the contracts for October 2014 which is 3 and subtract that from October 2013 which is 8.  Any suggestions? How do I do that
    for each month?  Then I need to do it for the quarter... then the year?  But I'll be happy if I can just get the month working first.
    Any help will be appreciated. 
    here is what my rdl file looks like.
    Here is what my report looks like when I render it.

    Hi Adrian_s2012,
    According to your description, you want to compare values for the month of current year with the month of prior year and get the variance. Right?
    In Reporting Services, we don't have any function to get this "Year to Year" Growth. In this scenario, if you data source is a cube, we suggest you use Analysis Services to achieve your requirement. If this data source is just from database, it will be hardly
    to calculate the variance because we need to compare the values within every two different column group and matrix generate adjacent columns one by one. Even we make it by using custom, every time executing the long code when generating result
    in a cell will reduce a lot of performance, we really don't suggest to do that in SSRS. Here is a thread with much easier requirement, please take a reference of that:
    http://social.msdn.microsoft.com/Forums/office/en-US/842e2dcb-d949-4297-9d91-eac989692cb5/difference-between-the-grouped-column?forum=sqlreportingservices
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • SSRS Matrix Report

    Please see below matrix report before and after I run. How can I find percentage of below marked fields,
    for example: 1/3=0.33 (%33)  Female(PAs)/Total(PAs)=?
    Erdal Huzmeli

    Hi Erdal,
    According to your description, you have a matrix report and you want to get percentage of two different column in this report. Right?
    In Reporting Service, we can’t just use ReportItem function or aggregation function with scope string to calculation when we are working in a matrix because the columns of matrix are dynamic. So we need to define some functions in custom code and do calculation
    by calling those functions. Your scenario has been tested in our local environment. Here are some steps and screenshots for your reference:
    Add the custom code below into your report:
    Dim Shared Num1 As Integer
    Dim shared Num2 As Integer
    Public Function GetPA(PA as Integer, Type as String) 
    If Type = "Male" Then
       Num1=PA
    ELSE If Type="Female" Then
       Num2=PA
    End If 
    Return PA 
    End Function
    Public Function GetMalePct()
    Return Num1/(Num1+Num2)
    End Function
    Public Function GetFemalePct()
    Return Num2/(Num1+Num2)
    End Function
    Ps: We notice that Total PA=Male PA +Female PA. So we use “Num1+Num2” in the functions that we define in the custom code instead of using “SUM(Fields!PA.Value)” in expression.
    Put the expression below into the PA textbox in Gender group:
    =Code.getPA(SUM(Fields!PA.Value),Fields!Gender.Value)
    Put the expression below Female textbox within Gender Percentage:
    =Code.getFemalePct()
    Put the expression below Male textbox within Gender Percentage:
    =Code.getMalePct()
    Save and preview, the matrix and result looks like below:
    Reference:
    Custom Code and Assembly References in Expressions in Report Designer (SSRS)
    How to calculate the Percent change in a dynamic
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • SSRS matrix click on the count like a pivot table to get details

    Hi,
    I am trying to create a matrix report to work similar to a pivot table, where when a user clicks on the count, the details are displayed. When I add the action to open a sub-report, how do I pass in the parameter values for the group that was selected? meaning
    if in row group- I have company name, and column group I have job title, when the count gets clicked, i need to pass in the company name for the row that was clicked along with the column group. How can I proceed?
    Thanks in advance!

    Hi NewCSharpUser,
    According to your description, you have created a main report which contains company name as row group and job title as column group. And a drill through report which contains company name as a parameter to filter the data. When you click the data region
    in the main report, you want to display corresponding details in the drill through report filtered by the company name, right?
    In your scenario, you could add a “Go to report” action, then specify a parameter to filter the drill through report. Please refer to steps below:
    1. Design the main report like below:
    2. Preview the report.
    Reference:
    Drillthrough Reports (Report Builder and SSRS)
    If the method couldn't meet your requirement, please share you report design and expected results for our analysis.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • SSRS Matrix not showing all the entry for a Column Groups

    I created a Matrix in my SSRS report and for some reason if the COLUMN GROUP has more than one
    entry it only shows the first one and not the second or consequent entries.
    I opened a question in SO and here is the link:
    http://stackoverflow.com/questions/23248421/how-to-add-column-in-a-ssrs-table-based-on-criteria
    All help is appreciated.

    Hi SiKni8,
    According to your description, you have a matrix report. If a user has more than one start date and end date, you want to put all those start dates and end dates into one single row for this user. Right?
    In Reporting Service, for all data fields textbox appearing at intersection of rows and columns, the matrix will use Sum aggregation function by default. If the data can’t be calculated by aggregation function, it will return the first one of records. This
    is the reason why you only get the first start date and end date for each user. In your scenario, it is impossible to append more columns at the end of the matrix without setting column group. And we can never append columns dynamically based on the numbers
    of the records. So for your requirement, we find a workaround which we think is the most related to the answer you want. We use custom code to get both StartDate and EndDate, then return them as string. After that we append those strings and put the whole
    string into a cell. Your case has been tested in our local environment. Here are steps and screenshots for your reference:
    Put the custom code below into your report:
    Dim Num As String = ""
    Dim tempstr As String = ""
    Function AggregateString(Title as String, StartDate as String, EndDate as String) 
    If Title = Num Then
       tempstr = tempstr + "(" +StartDate+" , "+EndDate+")  "
    Else
      tempstr=""
      Num = Title
      tempstr =tempstr+"("+StartDate+" , "+EndDate+")  "
    End If 
    Return tempStr 
    End Function
    In our sample report, we created a matrix based on your description. It looks like below:
    In textbox next to [Title], put the expression below into it:
    =runningvalue(Code.AggregateString(Fields!Title.Value,Fields!StartDate.Value,Fields!EndDate.Value),Last,"Title")
    Ps: In our report, we set the type of date as string when creating table and dataset. If your date type is different, use Cstr() function and convert it into string.
    Save and preview. The result looks like below:
    Reference:
    Matrices (Report Builder and SSRS)
    RunningValue Function (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • SSRS 2008: date format Jan 3rd 2014

    Hi Friends,
    Please provide a way to below result  from regular datetime field(I dont have an option to update a query)
    Jan 3rd 2014
    here in 3rd the word 'rd' should be small.
    Please do the needful.
    Thanks in advance
    Parixit

    I think you are going to need to custom format your string, and use some custom code to call in your report to add the rd, st, th to the end of your number.
    I should note that the following example should have included 23, as well as 3 in the 'rd' section
    http://cortechs.wordpress.com/2012/08/23/ssrs-to-format-a-date-with-st-nd-rd-and-th-contraction/

  • Is there a way in SSRS 2008 to format datetime to half hour?

    Is there a way to format date time in SSRS 2008 to half hour. I am working on a graph and I am sorting by the hour, but i need
    half hour is there a way I can do this?

    Hi Fozzy767,
    To round time to half hour, we need to use custom function in SQL Server Reporting Service(SSRS). A similiar function can be got from the following thread:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/443a22c6-d5fd-44f6-a379-67f3760537fb/round-time-to-quarter-hour?forum=sqlreportingservices
    To understand how to use custom function, please see:
    http://technet.microsoft.com/en-us/library/ms156028.aspx
    Thanks,
    Jinchun Chen

  • SSRS MAtrix - how to centre a title on top of a matrix

    I have a matrix report as shown where the Expr is the title to be centred across the matrix..
    Then when I preview it or view in asp.net web app it is displayed as below..
    As you can see the title isn't centred. There are also a number of other problems -
    I cannot make the page any wider in design view or it adds the white space on at the end and thus expands to more white pages when printed
    For the same reason as above I'm limited in the size I can make the footer to the width of the 'design' view document and not the finished doc with all the headings
    Searching the internet has resulted in: MAke a list and create your matrix inside the list. I couldn't get this to work by copying and pasting it and I'm not recreating the matrix. Also another site said to expand the title across the length of the report
    as it would be displayed - this doesn't work as it creates white pages in print view.
    I had no idea how primitive SSRS was or I'd have just stuck to doing everything in ASP.NET.
    Any help would be much appreciated, thanks

    Hi Jenny B D,
    According to your description that your report have more than one page and the columns also will break to the next page, you have add page header and page footer in the report, in the page header there is a textbox which will
    display title information and now the title information not in the center of the across the matrix when view in web app, right?
    I have tested on my local environment and because we can't use the expression to control the size, so there is no good solution to set the title to center.
    Please following the steps below to check all the related properties of size to make sure there will no blank page when print and also display the page wider when view in web app:
    Right click on Report area and select the Report Properties
    Make a note of the values for Page width(8.5), Page Height(11in), Left margin(1in), Right margin(1in),Top margin(1in),Bottom margin(1in)
    Close and go back to the design surface and in the Properties window, select Body
    Click the + symbol to expand the Size node and  do setting as below:
    Body Width  <=Page width- Left margin -Right margin(Body Width <=6.5)
    Body Height  <=Page Height- Top margin -Bottom margin-Header Height-FooterHeight(Body Height <=11-1-1-1-1=7)
    If you want the report display wider in the web app, you can increase the width of the report viewer control but no the report:
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • SSRS - Date Parameter Format

    Hi,
    I have a report where I need to filter values based on dates, so i am using two parameters , From Date and To Date
    I have set the parameter to be Data/time in Parameter Properties -> general tab and Also used an expression to format as mentioned in some of the Forum links for example 
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/2fa790d6-bb28-4e21-8100-fd9ea64ea61b/parameter-date-format-in-ssrs?forum=sqlreportingservices
    i am not getting any error but the format will not change,
    I have already Coverted my datetime values to read as date (yyyy-mm-dd)in the SQL Query but the format in the parameter is still in mm-dd-yyyy format.
    Hope I am not missing something silly and any help will be greatly appreciated.
    Thanks,
    Chaitanya

    Hi,
    Please try below steps:
    Right click dataset -> Properties
    In parameter tabs -> Your Date parameter -> In value of parameter type below expression
    =Format(Parameters!YourDateParameterName.value,"yyyy-MM-dd")

  • SSRS 2012 Conditional Formatting Color Issues When Exporting to Excel

    Hi all,
    We recently upgraded to SQL 2012 from SQL2008 R2. I'm having a strange issue with SSRS2012.
    One of the report has conditional formattings on cell background colors. Everything works fine when render the report in browser or preview mode. However, the conditional formatting stop working when export the report to Excel (no issues if
    export to pdf). All cells are high-lightened with pre-defined color although it should only high-lighten those cells that fulfil the condition.
    Has someone encountered this issue before ? Thanks for any help.

    Hi ZZ02,
    I have test the scenario in my testing environment, however, everything goes well when exporting to Excel format. The issue might be related to the expression for the conditional background color. To make further analysis, please post the expression as well
    as the report design structure.
    Additionally, in SQL Server 2012 Reporting Services, the Excel rendering extension renders a report to the native format of Microsoft Excel 2007-2010, the format of which is ExcelOpenXML. By default, the previous version of the Excel rendering extension,
    compatible with Microsoft Excel 2003, is disabled. At this time, I suggest that you enable the Excel 2003 rendering extension by modifying the RSReportServer.config file. After that, the Excel 2003 rendering format will be available on report manager (not
    available in Report Designer). So, please export the report from report manager and check the result again.
    For more information about enable the Excel 2003 rendering extension, please see:
    http://social.msdn.microsoft.com/Forums/en/sqlreportingservices/thread/0713de27-dcc0-4e51-81ac-5272647d171f
    Regards,
    Mike Yin
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here. 
    Mike Yin
    TechNet Community Support

Maybe you are looking for

  • FEBAN - FB05 - error F5243 for vendor payment

    Hello, I kindly ask for a hint. The vendor payment is included in eleclonical bank file. From transaction FEBAN (Edit bank statement) for item which is not fully cleared we get to trans. FB05 (post with clearing) and try to post to account type K (ve

  • Front end and conc manager issue post db upgrade

    Hi, We have upgraded our database from 10.2.0.4 to 11.2.0.1. Our ebs application is on 12.0.6. Also the architechture is : DB+Conc on one node and Web+Forms on the other. We are not able to get the front end.Also concurrent managers arent cmg up ( Wh

  • Inserting an image into Clearbox with html code

    Hi guys, I am using Clearbox to make pop up boxes so I can use text and images in it and I am editing them with html code. This is the code that I have (default for clearbox html) <div class="item"><a href="htmlcontent" rel="clearbox[gallery=Gallery,

  • Archivelog mode in oracle 9i

    what are the process to keep archivelog mode in oracle 9i senthil

  • What's with all the Data?

    Hello everyone, my Dell Inspirion 1521 laptop with 136gigs of disk space seems to only have 25.3 gigs free. This is strange because all the programs that show up under "Programs and Features" only add up to about 7gigs and all the folders in my OS (C