SSRS 2008 R2 matrix layout issue

Hi, I am working on a report where I have to report total number of tickets resolved per Resource in a week and I get the total number of tickets from a different table and issues resolved from another and most of the aggregation I do it in my dataset and
display it as a matrix report.
The problem I am running into is for instance my layout looks something like below. My data will be I will have 4 records for 2014 week-2 and for each resource will have a Total of 57 tickets and the same for week-3 and when I do the total for Atlanta the
total I get is 57 * 4 + 39 * 4 instead of staright 57 + 39. Please guide me fix this.
Region  Year Week Total Resource1 Resource2 Resource3 Resource4
Atlanta  2014 2      57    16             7               8             12
                    3       39     8             9             
13              1
Thanks in advance..............
Ione

What is the formula in the total column?
The layout looks like a matrix, is it?
How did you add the total column to the matrix/table?
What fields are returned by the 2 datasets?
The *4 issue seems to indicate that the dataset that returns total has multiple rows (1 per resource) that includes the same total value for each region/year/week and that the formula in the total cell is summing the values of the dataset rows. If this is
the case then the issue may be cleared up by simply eliminating the multiple rows in that dataset. That may mean removing the resource field from that dataset's select list or adding the DISTINCT keyword to the select (assuming it is TSQL).
"You will find a fortune, though it will not be the one you seek." -
Blind Seer, O Brother Where Art Thou
Please Mark posts as answers or helpful so that others may find the fortune they seek.

Similar Messages

  • SSRS 2008 R2 Line Chart Issue

    Hi, 
    Problem:
    I have an issue of SSRS Line Chart extending backward and forward (same issue discussed in post - http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/3cebd5b2-bb15-4bd1-be16-0daadc613082/)
    when Empty point option Value is set Average 
    I tried sorting on Category Group as suggested by Sean Boon in the URL mentioned above. But, still the issue is not fixed. 
    I am using SSRS R2. 
    Thoughts ?

    Hi, 
    Problem:
    I have an issue of SSRS Line Chart extending backward and forward (same issue discussed in post - http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/3cebd5b2-bb15-4bd1-be16-0daadc613082/)
    when Empty point option Value is set Average 
    I tried sorting on Category Group as suggested by Sean Boon in the URL mentioned above. But, still the issue is not fixed. 
    I am using SSRS R2. 
    Thoughts ?
    I am running into the same issue again :( 

  • Calculate percentage between two rows in a matrix report with a single row group in SSRS 2008

    I need your help. I have a matrix report in ssrs 2008. The report contain one field value column and one value column. I need to calculate a percentage for two values. For example : row 1 : Discount 10 Row 2 : Sales 100 Result : 10/100. I have only one
    row group, I need to have a condition where Field = Discount % on Revenue then Discount/Total Turnover. Because of the  grouping for total, I am not being able to calculate the %, its just totalling the % discount. Kindly refer to the snapshot of the
    report.

    Hi Thanks a lot for your answer, but unfortunately it didn't work,the report is reading from a stored procedure which I have unpivot to convert all columns into rows, so that's why Discount % on Revenue, Discount and Total Turnover is found in one column.
    So the Field!Col.Value is the Discount % on Revenue, Discount and Total Turnover. I have tried to change the code to
    "=SUM(IIF(Fields!Col.Value = "Discount",Fields!value.Value),0))
    /IIF(SUM(IIF(Fields!Col.Value = "Turnover Total",Fields!value.Value),0)) = 0 ,
    Nothing,SUM(IIF(Fields!Col.Value = "Turnover Total",Fields!value.Value),0)))" but to no avail. Any other suggestion will be most welcome.
    Thanks.
    If everything you're getting from stored procedure then you need to calculate and bring the value from there itself.
    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

  • Center a report title in Matrix report SSRS 2008

    I have fought with my first Matrix report for about a week now. What a pain. Now of course when I seem to be close to the end I can't center my report title on the report. How do I center a title? Help please. Thanks. SSRS 2008.

    Hi gainesvillepratt,
    After testing the issue in my local environment, we should add a textbox with title value above the matrix. Changing the Width of textbox with the same size as the rendered the matrix Width (Row Groups area width + Column Groups area width * the number of
    columns in column group), then setting the TextAlign property to Center in the Properties Windows pane. Thus we can achieve your requirement.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Issues passing drillthrough parameters from a multi-level tablix in SSRS 2008 R2

    Hello,
    I am really struggling with trying creating a drillthrough report that starts with a matrix (tablix)  and passing those  parameters. I am using SSRS 2008 R2.
    Here's my scenario:
    I have a matrix that has mulitple levels where you can drill down. Here an example with all the levels open:  
    Active
    Term
    Leave
    Total
    128
    88
    121
    United States
    110
    80
    85
    New York
    65
    30
    57
    Manhattan
    10
    6
    9
    Buffalo
    20
    23
    4
    Albany
    35
    1
    44
    Texas
    45
    50
    28
    Dallas
    40
    30
    22
    Houston
    5
    20
    6
    France
    18
    8
    36
    Centre
    18
    8
    36
    Blois
    7
    2
    8
    Druex
    6
    1
    15
    Tours
    5
    5
    13
    I want to drillthrough to another report - Detail Report. As I understand it, I would click the 65 for New York and I would see the detail for the 65 Active people. If I click the 2 under Blois, I would see the 2 terminated people in Blois. My understanding
    for this to work, the Detail Report would need a a parameter for each of the level possibilities in the matrix that I could click: Country, State, City as well as the Status (Active, Term, Leave).
    While I understand about passing parameters, what I don't understand is how to pass the parameters if they are blank. Let's say I clicked 65 for New York, I would need to pass State = New York  Status = Active. But the remaining parameters (Country
    and City  would be null). I know Country doesn't need to be Null in this case.
    My Detail Report has the parameters defaulted to Null, but whether I put the parameters in a Filter for the dataset or in the query itself, I cannot get it to ignore the Nulls.
    As a crazy work-around (I think) I can put in the Where of the query  something along the lines of: this:
            and (a.Country in (@paramCountryCode) or NULL  in (@paramCountryCode) )
    and I would need to do that for each parameter. Usually I have to use 'ALL' instead of NULL, I'm note sure why.
    Additionally, in the Report Action of the Main Report, I need to pass those parameters for each level and their Status. I am also not clear whether or not I need to put in all the parameters on each of the levels (Country, State, City) of the matrix. And if
    I do, do I need to make the expressions an IIF statement stating whether or not they are In Scope?
    All the examples I was able to find, only showed one or maybe two parameters being passed. Doing the way I am trying, seems convoluted, error-prone and tedious. I really hope that I am wrong.
    Is there a better way to approach drilltrough reports from a matrix when there are multiple levels?
    Thank you for the help.
    ~J

    Hi Jenna_Fire,
    According to your description, you have a matrix contains total for each group on each level. Now your requirement is, when you click on any number (data field or total), it will go to the detail report which returns all the detail information of the people
    within the group scope. For example, if you click on the total of Active users in United States, it will return the detail information of Active users in New York and Texas. Right?
    In this scenario, we should set the parameter (@Country, @State, @City) allow multiple values in both main and detail report. And in Default Value (@Country, @State, @City), query out all distinct values. In the textbox which contains
    those total values, when set use these parameters to run the report, we only need to pass the parameters of parent groups. For example, if we click on the total of Active users in New York, we only need to pass Country, State, Status to detail report, and
    in the detail report, the City parameter will use all distinct values (Default Values) because we don't pass the City parameter. We have tested this case with sample data in our local environment. Here are steps and screenshots for your reference:
    1. Create parameter Country, State, City and Status in both main report and detail report. Set both Available Value and Default Value get values from query (Create a dataset for each parameter, use "select distinct [column] from [table]" as query). Set allow
    multiple values for parameter Country, State and City in both reports.
    2. In corresponding textbox, pass appropriate parameters in go to report Action.
    4. Filter data in detail report (in where clause or using filters).
    5. Save and preview. It looks like below:
    Reference:
    Using Parameters to Connect to Other Reports
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How to calculate difference and percentage in matrix report dynamic columns in SSRS 2008

    Hi Friends,
    I need to calculate Difference and Percentage In matrix report SSRS 2008
    1) Row grouping based On Product
    2) Column Grouping Week and Fiscal Year Current week  and Previous Year same Weeks 
    3)Data Invnetory(Value fileld)
    Example:
    If value1 and Value2 Available we need to calculate Percentage and Difference.Otherwise Not required NA I need to Show.
    For example If Particular week,Current year data is available,Previous year  week data is not available No
    need to cal Diff and Percentage we need to show Empty.
    Below Code is working for If two values is available.
    If any one of the fiscal year week data is not there it's taking some garbage values.
    I tries with If condition in GetPCT() and GetDiff() It's not working.
    Can some one please help me on this.
    I am using the custom code 
    Public Shared Value1 as String
    Public Shared Value2 as String
    Public Shared previous as string
    Public Shared previousweek as string
    Public Shared Function GetValue(Value as String,partner as String,Week as String) as String
    If partner =previous and Week =previousweek Then
    Value2=Value
    Else
    previous=partner
    previousweek=Week
    Value1=Value
    End If
    return Value
    End Function
    Public Shared Function GetDiff()
    return Value2-Value1
    End Function
    Public Shared Function GetPct()
    return (Value2-Value1)/Value1
    End Function
    How to handle this.
    Thank You, Manasa.V

    Hi veerapaneni,
    According to your description, if one of the fiscal year week doesn’t have data, the custom code returns false results.
    For your requirement, if NULL value exists in the database, we should replace it as zero then perform calculate. So within the code, we should judge whether the value is NULL. To achieve your goal, please refer to the steps below:
    1. Create a table like below.
    create table dif4
    ([Product Group] varchar(50),
    [Week] varchar(50),
    [Fiscalyearweek] varchar(50),
    value int
    insert into dif4 values
    ('Desktops','W01','FY14W01',0),
    ('Desktops','W01','FY15W01',45),
    ('Desktops','W02','FY14W02',null),
    ('Desktops','W02','FY15W02',30),
    ('Desktops','W03','FY14W03',12),
    ('Desktops','W03','FY15W03',50),
    ('Notebooks','W01','FY14W01',35),
    ('Notebooks','W01','FY15W01',56),
    ('Notebooks','W02','FY14W02',45),
    ('Notebooks','W02','FY15W02',87),
    ('Notebooks','W03','FY14W03',75),
    ('Notebooks','W03','FY15W03',105),
    ('Tablets','W01','FY14W01',34),
    ('Tablets','W01','FY15W01',46),
    ('Tablets','W02','FY14W02',49),
    ('Tablets','W02','FY15W02',96),
    ('Tablets','W03','FY14W03',42),
    ('Tablets','W03','FY15W03',113)
    2. Add the custom code in the Report Properties.
    Public Shared Value1 as Integer
    Public Shared Value2 as Integer
    Public Shared previous as string
    Public Shared previousweek as string
    Public Shared Function GetValue(Value as Integer,product as String,Week as String) as Integer
    If Value=Nothing Then
    Value=0
    End If
    If product =previous and Week =previousweek Then
    Value2=Value
    Else
    previous=product
    previousweek=Week
    Value1=Value
    End If
    return Value
    End Function
    Public Shared Function GetPct()
    If Value1=0 Then
    return 0
    Else
    return (Value2-Value1)/Value1
    End If
    End Function
    Public Shared Function GetDiff()
    return Value2-Value1
    End Function
    3. Design the matrix like below.
    4. Then get the expected results.<o:p></o:p>
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • SSRS 2008 Matrix grouping help

    Hi. I have a requirement to create an SSRS report with a tablix or matrix which looks like the image below. My dataset will hold the following column values: Project name, overall rag, cost rag, scope rag, headline and commentary.
    The RAG values are all colours which I will represent via a background expression. The grey columns will be static.
    The headline and commentary values are long text values and should run under the RAG columns as depicted.
    I have no idea how to group and create this in an SSRS 2008 report; please can someone let me know how I should configure this?

    We can merge cells in Data Region of tablix. Refer this link
    http://technet.microsoft.com/en-us/library/dd207131.aspx
    Moreover it is important that we know how the data looks like in Data Set. Post the sample data.
    Regards, RSingh

  • Ssrs 2008 r2 straight line within a matrix

    In an SSRS 2008 R2 new report have placed a matrix on the end of the report for information the user wants to see at the end of the report. The user wants to place a straight line between the different infomation sections in the tablix. Here are the problems
    I am having:
    1. In a row I would like to merge 2 cells together so that a line placed within the matrix is the same length. The problem is that I do not know how to merge the cells.
    2. When I drag a line into a cell in the matrix, the line is not straight. The line points to an angle. I have tried to change the properties of the line on the endpoint values but that has not worked. Thus can you tell me how to make the line placed within
    a matrix cell to be straight?

    Take a look at this post for inserting a horizontal (or vertical) line into a tablix cell:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/397d6dc4-766a-43c9-9706-5370a2bfaeb4/insert-line-into-table?forum=sqlreportingservices
    For merging cells, you simply select a set of contiguous cells, right-click, merge cells. There is a catch of course. The catch is that all of the cells you are trying to merge must be in the same scope. Below are some screenshots showing a simple Matrix
    with 1 column group and 1 row group.
    As you can see in this screenshot, I have selected 2 adjacent cells that are both in the same scope, and merge cells is available.
    In this screenshot, I have selected 2 adjacent cells that are not in the same scope. The left cell is only scoped by the row group while the cell on the right is scoped by both the row and the column group. As a result, I cannot merge the cells.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • SSRS 2008 Line Chart Issue.

    We are facing an issue with SSRS 2008 charts. We have a report which shows dynamic number of series on a line chart. The data values may not exist for all series for
    the same x axis points. We expected SSRS to connect the missing points as average and have set the empty point option to average.
    The issue is that the
    1)     
    lines for interpolated points only appear when we set the color of empty point to say red and not when it is set to automatic. We need the interpolated line in the same auto
    colour as the original line as we will have markers for the data points from the DB and no markers for empty points.
    2)     
    The interpolated lines extend backwards in the series also – we expect it to only fill the gaps and not extend backward or forward.
    Are these issues known and is there a work around for these issues ? We got your name from one of the SSRS community discussions. Could you please connect us with
    the right person if you are not the right contact for this issue ?
    I also got following reply from one of the MS guy, it says
    Hi Akshay,
    The lines should not go backward.  I have seen this happen before and I’ll have to double-check on what that occurs. If you
    are using a Category Axis, make sure you set the sorting to use a Cdate() expression.  I think that might be it ,but I’ll have to double check.
    As far as using the auto-coloring on the series when you have empty points like this, I don’t think that’s possible.  It would require
    a DCR.  You may need to implement something along the lines described in this article  http://msdn.microsoft.com/en-us/library/aa964128(SQL.90).aspx.
    When I tried the suggestions I over come the auto colouring issue and also used CDATE () but lines still extend bacawords. Can anyone suggest what to do it this situation

    Hi AKshay_Jadhav,
    Firstly, I am not sure who is that MS guy you mentioned without the detail name. Based on my understanding to your issue, I think you could utilize the function
    IsNothing in reoprting services to have a check whether the value is null, if it is Null, you should give a average value to this point, if not leave it to be the original value. Of course, you could achieve this in T-SQL. To
    the color and marker, we could type in the expression in both feature to control their display effort.
    Hope this helps.
    Thanks,
    Challen Fu
    Challen Fu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • How to calculate percentage and difference of two values in matrix report in ssrs 2008

    Hi everyone,
    DB--SQL server
    SSRS-2008
    I am creating matrix report with grouping on WEEK and Fiscalyearweek,
    I need to calculate of difference between FY14W01,FY15W01 ande  percentage of those..
    how to calculate in ssrs level.
    Thank You, Manasa.V

    Hi veerapaneni,
    According to your description, you want to calculated the increment percentage and difference between two fiscal year week within each week. Right?
    In this scenario, since we need to do calculation based on values between dynamically generated cells, we can't simply use expression to achieve this goal. In this scenario, we need to use custom code to record the value for fiscal 14 and fiscal 15, then
    we can calculate the difference and percentage within the column group. We have tested your case in our local environment, please refer to the steps and screenshots below:
    1. Add the custom code below into the report (you may need to modify the data type based on your scenario:
    Public Shared Value1 as Integer
    Public Shared Value2 as Integer
    Public Shared previous as string
    Public Shared previousweek as string
      Public Shared Function GetValue(Value as Integer,product as String,Week as String) as Integer
    If product =previous and Week =previousweek  Then
         Value2=Value
    Else
    previous=product
    previousweek=Week
    Value1=Value
    End If
         return Value
      End Function
      Public Shared Function GetPct()
         return (Value2-Value1)/Value1
      End Function
    Public Shared Function GetDiff()
         return Value2-Value1
      End Function
    2. Design the matrix like below:
    3. The result look like below:
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Ssrs 2008 export to csv file display issue

    In a new SSRS 2008 report, I would like to know if there is a way to automatically expand the width of some of the rows when the data is exported to a CSV file so the data is displayed correctly. Here are examples that I am referring to:
    1. In one column where there is suppose to be a date that looks like 12/11/2014, the value of ########## is displayed. The value of 12/11/2014 is what is setup in the SSRS formatting option.
    2. In a number field that is suppose to look like 6039267049 the value that is displayed is 6E+09.
    Basically if I manually expand the width of the columns that I am referring to above, the data is displayed correctly. Thus can you tell me what I can do so that the data is disaplayed correctly in the CSV file and ther user does not need to manually expand
    the column to see the data?

    Hi wendy,
    After testing the issue in my local environment, I can reproduce it when use Excel to open the csv file. As per my understanding, there is no width when we export the report to csv, Excel is just using the default cell sizes when we open the csv. So when
    a date value is wider than the default cell size, it would be displayed as ##########. When a number value is wider than the default cell size, it would use Scientific format.
    As to the date value, we can use the expression =cstr(Fields!Date.Value) to replace the former one =Fields!Date.Value. In this way, the width of the value is narrower than the default cell size, so that the date value can be displayed correctly. For the
    number value, it already narrow down the width with Scientific format. Or we can Select all the cells in the csv file, then click Format| AutoFit Column Width to change all the cells width to fit its corresponding values in Excel level.
    Besides, we can try to export to excel instead of csv. Excel format can inherit the column width in the report. So in this way, we can directly change the width to fit the values in Reporting Services level.
    Hope this helps.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • SSRS 2008 Header height issues due to merged columns

    When working on a report today we ran into an issue which took us quite some testing to figure out. At some point we decided to switch some of the headers of columns around and when rendering the report again it for some reason created a header which was
    way heigher then the biggest text there, showing a huge empty space in the header underneath the text.
    My first guess was that there had to be some extra spaces in some column or something alike, which made the cells grow so much. This however was not the case. As a next step I cleared the cells in the headerrow one by one to figure out which field was making
    the header grow this much. It turned out to be the header in the 10th column. When I replaced the text in this cell, it did not make the header grow anymore. When I put the original text back, it started growing again. As a next step I removed the text in
    this cell, pasted it in another cell (column 11) and rendered the report, with the same huge header again. Out of frustration I tried a desperate last move, copied it to column 1 and rendered the report, the effect was a small header without some weird height.
    So the conclusion was that this text was making the header grow hugely in the columns 10 and 11, but not in column 1? What is the difference between column 10/11 and column 1?
    Then I noticed that column 7, 8 and 9 were pretty small columns, only holding integer values. The header above this, however, was one word, so the 3 cells in the header for these columns were MERGED. So basicly, only looking at the cells in the header, my
    huge text was in the 8th cell from the left, not the 10th (10th column, but due to merging the 8th cell). As a test I editted the width of the 8th column (the middle one of the merged cells) to be as wide as all the other columns holding text. The rendering
    of the report, with the huge text in the original headercolumn, now did not grow my header to be extremely big. This combined with the way "hiding" works in SSRS 2008 oppose to SSRS 2005 (ie, in 2008 a hidden cell disappears completly, moving all next cells
    up to the left, where as in 2005 a hidden cell just shows as empty in the report), leads me to believe that there is a bug in SSRS 2008 considering cell widths and merged cells? It is like the 10th column header now thinks it is part of the 8th column (being
    the 8th cell in its row due to merging) and therefor works with the width of this 8th column to judge how much increased height it needs. In fact it is the width of the 10th column and therefor doesnt need the height it creates, resulting in a huge empty space
    underneath the text.
    Is this a known issue by Microsoft? Any ETA on this for a fix?

    This combined with the way "hiding" works in SSRS 2008 oppose to SSRS 2005 (ie, in 2008 a hidden cell disappears completly, moving all next cells up to the left, where as in 2005 a hidden cell just shows as empty in the report), leads me to believe that
    there is a bug in SSRS 2008 considering cell widths and merged cells?
    Hi Joel_i,
    I was a little confused with the paragraph above. Could you please elaborate it?
    Based on the information posted, I tried to reproduce the scenario, but it works fine. During my test, the header cells grow
    only when the text in the head column is too long which will caused newline, or there is some extra space in some columns. So, you might need to check the properties of the 8<sup>th</sup> column cell, such asSpaceAfer,
    SpaceBefore, to make sure all properties are set rightly.
    To provide you further assistance, could you please post the report and dataset with sample data to our data collection E-mail
    address?
    E-mail: sqltnsp AT microsoft.com (Please replace the AT with @, and remove additional spaces).
    Thanks,
    Lola Wang
    Please remember to mark the replies as answers if they help.

  • Strange issue with a huge SSRS 2008 report (supposed to return 3 million records)

    Hi,
    NOTE: The strange part (as mentioned in title) will come in the end.
    I am running a SSRS 2008 report which fetches 3 million records from a remote server. After around 1 hour the report processing stops and I see an error icon on the lft bottom of the browser window. When I click on that to see the error details it shows
    some PageRequestManagerSQLErrorException with an unknown error message with code 12029 (sometimes 12002).
    When I see the reportserver logs there is an error message logged in it which says "Microsoft.ReportingServices.Library.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the
    database is required for all requests and processing. ---> Microsoft.ReportingServices.Library.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for
    all requests and processing. ---> System.InvalidOperationException: Timeout expired.  The timeout period elapsed prior to obtaining a connection from the pool.  This may have occurred because all pooled connections were in use and max pool size
    was reached."
    The <DatabaseQueryTimeOut> value in the report server configuration file is already having a value set to 7200 seconds(2 hours).
    NOW, the strange part is, when I open the ExecutionLog2 table in ReportServer database, there is an entry for the same report with the status as "success" !!!
    My head is spinning over this issue, somebody please rescue.
    Regards.

    Not sure if this will help but you might give it a try :
    1. Open the Registry Editor.
    2. Navigate to the registry path below.
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters\
    3. Create a DWORD value MaxUserPort.
    Value name
    MaxUserPort
    Value data (in Decimal)
    10000
    4. Restart the server.
    5. Check and confirm that the registry key ‘MaxUserPort’ is added.
    Do the same process as above for TCPTimedWaitDelay and reduce the value to 60.  The above steps are to increase the maxuserports and reduce the time_wait in order to free up resources on the server.

  • Issue with SSRS 2008

    Hey, I am trying to generate this oracle database report and getting this error message.
    I am using SSRS 2008 to build this report and the query is not responding.
    It give me: ORA-01858: a non-numeric character was found where a numeric was expected
    When I run my Query in the builder, it returns perfect results, however if I try and run my Query through the report I made in SSRS2008, it gives me this error message. The Query is connecting to a PL/SQL database.
    Here is my query.
    Please I need help. Thanks in advance.
    SELECT distinct
    t.uniquenum,
    t.doc_id,
    t.doc_class,
    t.BAIDS as Business_Account_ID,
    t.doc_category,
    t.doc_type,
    t.trade_entity,
    t.trade_id,
    t.document_date,
    t.trade_date,
    t.inactive,
    t.modified_by,
    t.modified_date,
    t.mime_type,
    t.product_category,
    t.term_matured_date,
    t.doc_classification,
    s.uniquenum
    from fndept.sig_updated_docs_header t
    join fndept.sig_updated_docs_detail s
    on (t.uniquenum = s.uniquenum)
    WHERE
    (Trunc(modified_date) BETWEEN to_date(:BeginDate, 'mm/dd/yyyy') AND to_date(:EndDate, 'mm/dd/yyyy'))
    ORDER BY t.DOC_CLASS, t.DOC_CATEGORY, t.DOC_TYPE, t.modified_date

    Another possibility report parameters :BeginDate and :EndDate are declared in SSRS as DATETIME and therefore being passed to Oracle as DATE. Then construct:
    to_date(:BeginDate, 'mm/dd/yyyy')which expects a string as first parameter but receives a DATE implicitly converts :BeginDate to string using default date format which is most likely set to 'DD-MON-YYYY' and then tries to convert that string to date using 'mm/dd/yyyy' format. Obviously it fails. For example (I'll use SYSDATE):
    SQL> select to_date(sysdate, 'mm/dd/yyyy') from dual;
    select to_date(sysdate, 'mm/dd/yyyy') from dual
    ERROR at line 1:
    ORA-01858: a non-numeric character was found where a numeric was expected
    SQL> If that's the case (:BeginDate and :EndDate are declared in SSRS as DATETIME) - remove offending TO_DATE:
    WHERE
    (Trunc(modified_date) BETWEEN :BeginDate AND :EndDate)
    ORDER BY t.DOC_CLASS, t.DOC_CATEGORY, t.DOC_TYPE, t.modified_dateSY.

  • Performance issue due to localization code in SSRS 2008

    The reports I am working on consist lot of data and all the customers use it frequently.
    Report title and columns are localized by expressions .
    This takes long time for report rendering and exporting to csv. When I test without the localization code it doesn't take that long .
    Can someone help me to optimize the report. SSRS 2008 R2
    Archana

    Hi Archana,
    In Reporting Services, the total time to generate a reporting server report (RDL) can be divided into 3 elements:
    Total time = (TimeDataRetrieval) + (TimeProcessing) + (TimeRendering)
    TimeRendering means the number of milliseconds spent after the Rendering Object Model is exposed to the rendering extension. It includes the Time spent in on-demand expression evaluations (e.g. TextBox.Value, Style.*). So it is make sense that the report
    with localization code takes longer time.
    Besides, we can improve the report performance form other aspects. For example, we can add filter, sorting and aggregation in dataset query, because filter, sort, and aggregation is more efficient on the data source than during report processing. For more
    details about report performance, please refer to the following article:
    http://technet.microsoft.com/en-us/library/bb522806(v=sql.105).aspx
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for

  • IPad Apps (Games) no longer working properly

    It all started when I downloaded Reckless Racing HD. I noticed that the screen jittered quite a bit, and when actually trying to drive the little cars in the game, it basically didn't work. The graphics seemed to glitch quite a bit. Fine. It's probab

  • Why can't I access Muse? It gives me an "unexpected error".

    I've downloaded photoshop, illustrator, bridge, and edge easily with no troubles.  I just downloaded Muse and I tried to open it but it says I need to activate the program online before using.  So I click next and it tells me "an unexpected error occ

  • Direct provisioning through API - OIM 11g

    Hi, OIM 11g here. I am trying to use the APIs to make direct provisioning. What i have done till now: tcUserOperationsIntf userIntf = (tcUserOperationsIntf)ioUtilityFactory.getUtility("Thor.API.Operations.tcUserOperationsIntf"); ResourceData rd = use

  • Adobe premier elements 11 downloaded but will not install

    adobe premier elements 11 downloaded but will not install?

  • Satellite Pro L300 - using partition magic

    Hi, I have a Toshiba Satellite Pro L300 laptop and I would like to make an additional partition beside the already existing C: and the hidden partition. I have created the recovery discs and I want to use partition magic for the partitioning process