Passing parameters in SSRS 2008 R2

Hi, Well I had been always thinking of let's say I create a dataset for County and multiple Zip comprise this county. When we display this in the report parameter dropdown menu how do we display distinct County. SSRS does not have a way to filter duplicates.
Dataset Query:
CREATE TABLE [dbo].[County](
[Id] [varchar](max) NULL,
[County] [varchar](90) NULL
--Insert Records
INSERT INTO [County] ([Id],[County])VALUES('1000,1002,1138,1165,1276,275,309,344,942,953','ZONE 2')
INSERT INTO [County] ([Id],[County])VALUES('1001,1185,287,574,683,684','ZONE 5')
INSERT INTO [County] ([Id],[County])VALUES('1022,1288,1292,286,310,680,699,800,989','ZONE 4')
INSERT INTO [County] ([Id],[County])VALUES('1101,1110','ZONE 4 - NE')
INSERT INTO [County] ([Id],[County])VALUES('1136,1160,1283,285,573,669,716,793','ZONE 3')
INSERT INTO [County] ([Id],[County])VALUES('1263','ZONE 5 - SW')
INSERT INTO [County] ([Id],[County])VALUES('1287,1298,563,964','ZONE 1')
INSERT INTO [County] ([Id],[County])VALUES('1322','ZONE 6')
INSERT INTO [County] ([Id],[County])VALUES('1401','ZONE 65')
INSERT INTO [County] ([Id],[County])VALUES('1430','ZONE 7')
INSERT INTO [County] ([Id],[County])VALUES('1431','ZONE 70')
INSERT INTO [County] ([Id],[County])VALUES('1435','ZONE 71 - NE')
INSERT INTO [County] ([Id],[County])VALUES('1436','ZONE 71')
INSERT INTO [County] ([Id],[County])VALUES('1443,1446,1457,1473,288,396','ZONE 777')
INSERT INTO [County] ([Id],[County])VALUES('1447','ZONE 74')
INSERT INTO [County] ([Id],[County])VALUES('1449','ZONE 74 - NE')
INSERT INTO [County] ([Id],[County])VALUES('1474','ZONE 80')
INSERT INTO [County] ([Id],[County])VALUES('1475','ZONE 80 - SW')
INSERT INTO [County] ([Id],[County])VALUES('1480','ZONE 81')
INSERT INTO [County] ([Id],[County])VALUES('197,207','ZONE 1 - NE')
INSERT INTO [County] ([Id],[County])VALUES('467','ZONE 2 - NE')
INSERT INTO [County] ([Id],[County])VALUES('905','ZONE 3 - NE')
GO
Well here's what I did to get rid of duplicates. Id is the parameter value & County parameter label. How do I pass these Id's as parameter to my query where Id is an Integer.
Thanks in advance................
Ione

Why are you storing ids as a list? It would be much better to store them as individual Id values in multiple rows.
Otherwise you need to create backend query to receive array of values as below
HTTP://www.sommarskog.se/arrays-in-sql-2008.html
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Similar Messages

  • Pass values between ssrs 2008 r2 reports

    In a  ssrs 2008 R2 report, I need to pass parameters to existing subreports that are currently called.  Basically there is a main sssrs 2008 r2 report and there are 3 subreports. I would like subreports #1, subreport #2, and subreport #3 to receive
    the value values of customer number and customer name. I am hoping you can tell me and/or show me code that would tell me how to add parameters parameter values that are used to call these subreports.

    Hi wendy,
    According to your description, it seems that you want to pass parameter values from main report to subreport1, from subreport1 to subreport2, and from subreport2 to subreport3. If in this scenario, you can refer to the following steps about the sample test
    (from main report to subreport1) in my environment:
    Create a parameter named ID in the main report, adjust the report body and tablix with the same size.
    In the subreport1 report, right-click one cell to insert a subreport.
    Right-click the subpeort to open the Subreport Properties, and select the main report name in the drop-down list.
    In the left panel of the Subreport Properties dialog box, click Parameters.
    Select ID in the drop-down list of Name, and select [ID] in the drop-down list of Value.
    Considering your question, because I have create a parameter in the main report and specify the parameter in the subreport1, the main report will be passed by the parameter to subreport1.
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine xiong
    If you have any feedback on our support, please click here.
    Katherine Xiong
    TechNet Community Support

  • Changing the value of a parameter that has been passed into an SSRS 2008 R2 report

    I support 200+ reports that all use stored procedures and have many drill downs with built in URLs.
    I want to do the below to avoid creating a brand new parameter that I will have to add to literally hundreds of places.
    We have what I'll call Param1 that receives a value from the user.  That Param1 is passed to the stored procedure(s) for the report and also embedded in any Action URLs for drill downs to other reports from that report.  All works great.
    Now I have a need to concatenate a string to whatever value they supplied which provides context for the environment in which they are running.  The reason I want to do this instead of creating a new parameter is because I need this in all my reports
    and as stated above I would have to make 100s of changes to make that happen.  If I can figure out a way to concatenate a value to the existing Param1 value I can greatly reduce the number of changes.
    I can't seem to be able to find a way to modify the value on an existing parameter that is passed into the report prior to report execution.
    I get an error when I simply try to concatenate something to the parameter in its Default property.
    I can't find a way to update a parameter value in the Report Code block.  There don't appear to be any methods available on the Parameter Collection to set the value of a parameter.
    Any ideas?
    Thanks!
    Nathan 

    Create a new parameter. Mark it internal, set it's value by expression to:
    =User!UserId+"MyNewValue"
    and pass it to the proc?
    Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.

  • Unable to select parameters when SSRS 2008R2 report is deployed

    I have over one hundred reports deployed to a stand alone SSRS2008R2 server.  For almost all of the reports, the standard report parameters are:
    DBName (an internal parameter used for an embedded connection string)
    Date Range (pre-set date selections such as Last Week, Current Month, Last Quarter, etc)
    Location (integer value)
    Beginning Date
    Ending Date (both dates use the output of Date Range as the default but can be overridden.
    The reports have always deployed and have worked using these parameters and sometimes other parameters with no problems for years.  I just deployed a new report that uses the same 5 parameters that the other reports use and only those 5 parameters.
     The only difference is that instead of Location passing an integer value, it passes a text value (CHAR(8) specifically).  When the report is deployed to the server, the Date Range parameter appears and allows the user to select a Date Range but
    none of the other parameters show any values and do not allow the user to select a value.  The odd thing is that if I change the DataSource to use a specific database and run it on Report Manager through Report Builder, it works fine.  When I run
    it directly on Report Manager, it does not work.  It also does not work when run via the site it is deployed to.  I have run SQL Profiler and all it shows is that the stored procedure for the Date Range parameter is run successfully.  I also
    cannot see anything telling in the Reporting Services log and there is nothing special about the ASP.NET code related to the report.  I have spent over 12 hours on this issue and am truly stumped.
    Any ideas on how to fix this? This needs to fixed urgently.
    Derrick

    Hi DerrickVH,
    According to your description, you have more than one hundred reports with 5 parameters in SSRS 2008 R2, the reports works fine. You deployed a new report to report server, it has same parameters except data type of location is text. When you run the report,
    only Date Range parameter is displayed and allows users to select values from drop down list. If you specify a database and run the report use report builder, the report works fine.
    In Reporting Services, we can use dynamic data source through an expression-based connection string. To troubleshoot this problem, please refer to the following steps:
    The dynamic database connection string can only be used with an embedded data source, we could not use it with a shared data source.
    Specify credentials separately from the connection string.
    Make sure there is corresponding values for the parameters in the database.
    Verify the connection string and values of parameter DBName is correct.
    For more information about Expression-based on connection strings, please refer to the following document:
    http://technet.microsoft.com/en-us/library/ms156450.aspx#Expressions
    If the problem remain unresolved, i would appreciate it if you could give us detailed information of the report, it’s better to provide screenshot and sample data about the report in design surface, it will help us move more quickly toward a solution.
    Best Regards,
    Wendy Fu
    If you have any feedback on our support, please click
    here.

  • 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

  • Ssrs 2008 r2 pass mutiple values to stored procedure that is being called

    In an SSRS 2008 r2 report, I am currently calling a stored procedure called spRoom. I obtain the results of the stored procedure by creating a  temptable called #roomReults
    The temp table that I am creating and using to obtain results looks like the following:
    CREATE TABLE #roomResults(
                     studentID VARCHAR(15),
       endYear SMALLINT,
                     calendarID INT) 
    INSERT  #roomResults
           EXEC [dbo].[spRoom] @endYear, @calendarID 
    Currently I am only passing in one value for both paramters called: @endYear and @calendarID. However now I want to pass
    in several values to each parameter.
    I want to change the sql to look like the following:
     EXEC [dbo].[spRoom] IN (@endYear), In (@calendarID)
    The above gives me syntax errors.
    Thus I am wondering if you can show me how to change the sql listed above so that that I can pass in more than one value from the SSRS report parameters called @endYear and  @calendarID to the stored procedure called [spRoom]?

    Wendy
    What version  are you using? Since SQL Server 2008 we  can use table valued parameter
    Create a user-defined data type with a single column.
    Develop a procedure with a table variable as an input parameter.
    Declare a table variable of the type of the user defined data type.
    Loading 10 records into the table variable and pass the table 
    variable to the stored procedure.
    create type tt_example AS TABLE
     (spid int)
    go
    create procedure usp_example
     @spids tt_example READONLY
    AS
     SELECT *
     FROM @spids
    GO
    declare @spids tt_example
    insert into @spids
    select top 10 spid
    from sys.sysprocesses
    exec usp_example @spids=@spids
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Ssrs 2008 r2 pass paramter value to a sort

    In a new SSRS 2008 r2 report, I am going to be using sql within a dataset and not a stored
    procedure since will I need to pass multiple values to each parameter.
    One of the parameters that I will be working with is allowing the user to be able to pick what items
    they want to sort on. The sort will have 3 items that will be always be sorted on first which are:
    year, and school_number.  The users will be able to pick additional items to sort on like grade, and teacher.
    The following is the sql that I have so far:
    select year,  school_number, grade,teacher,room,course_number, course_name
    from dbo.school
    order by  year,  school_number, several parameter values.
    Thus I am wondering if you would modify the sql above so that I can allow the user to sort on the additional parameters in any order like grade,teacher,room,course_number, course_name?
    If any part of my request is not possible, I am wondering if you would show me what is possible in the sql?

    Hi jazz_dog,
    According to your description, you want to sort the report by grade,teacher,room,course_number or course_name based on a parameter selection. If in this case, we can add an expression in sorting to achieve your requirement:
    Add a parameter named Sort with the available values below to the report:
    Label: grade                                       Value: grade
    Label: teacher                                     Value: teacher
    Label: room                                        Value: room
    Label: course_number                         Value: course_number
    Label: course_name                            Value: course_name
    Add a the expression below to the tablix Sorting:
    =switch(Parameters!Sort.Value="grade",Fields!grade.Value,Parameters!Sort.Value="teacher",Fields!teacher.Value,Parameters!Sort.Value="room",Fields!room.Value,Parameters!Sort.Value=" course_number",Fields!course_number.Value,Parameters!Sort.Value="course_name",Fields!course_name.Value)
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Ssrs 2008 r2 use parameters for sorting purposes

    In an ssrs 2008 r2 report, I have a report where a user wants to sort a report based upon the following parameters:
       1. lastName,
       2. firstName, 
       3. studentNumber,
       4. [School Name].
    The above is the default order of how the user wants to be able to sort the report.
    The following is the definition and the columns that are to appear in the report:
             studentNumber varchar(15)
     ,lastName varchar(40)
     ,firstName varchar(35)
     ,[School Name]  varchar(40)
     ,[School of Assignment] CHAR(3)
     ,grade varchar(4)
     , Description varchar(50)
     ,[Beginning Date] smalldatetime
    The above columns are all contained in one tablix.
    The user wants to be able to sort the report by changing the parameters that I just listed
    above.
    Thus can you show me code and/or point me to a url that would show me how to allow the user to sort
    the report in any order based upon the 4 parameters listed above?

    The interactive sort is not what the user wants. The user wants to be able to change the default sort order by using a sort parameter value.
    I know that the tablix and the detail rows of a report have a sort option. I want to be able to connect, the sort parameter values with the tablix sort. I have seen on the internet where each sort parameter value can be represented with a number value.
    I don't  care what is easier, I want to do what the user is requesting. Thus can you show me code on how to accomplish this goal?
    Ok. I just gave you a better option
    If you still want it to be based on parameters you can add one more parameter to your report called SortBy with values of your fields. Then inside sor expresson for your tablix use an expression like
    =Fields(Parameters!SortOrder.Value).Value
    and it will automtically sort based on field you choose from parameter
    Only thing you need to make sure is that values given for SortBy parameter combo should be exactly same as your field names used in your report dataset.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • SSRS,MDX- Passed parameters are not hitting the main query in Dataset

    I have created a SSRS report which has to accept two parameters i.e., store name, Date(to show sales on particular date) in report. which are working fine for me. but, those passed parameters are not hitting the main query in main Dataset. what ever i
    pass in parameters, it is displaying all the rows(every city values). i think i am not correct in creating the statement in  Main dataset query, to receive those 2 parameters into the main query. can anybody please help me how to create the statement
    in main date set to display the results for the exact parameter i am passing(which has to be in MDX).
    ram

    Hi ramprasad74,
    According to your description, you want to use parameter in the report, then after parameter values are selected, corresponding data will be displayed in the report. But the parameters do not work and all the rows are displayed.
    To pass parameter to main report dataset, we need to define parameter for MDX query and assign parameter name same as SSRS report parameter. For detail information, please refer to the following steps:
    Create a Dataset to retrieve data for Store name parameter.
    Create Store name parameter, type name and prompt, set Date type to Text, check Allow multiple values check box, then select get values from the dataset.
    Create a Dataset for Date parameter.
    Create Date parameter, type name and prompt, set Date type to Date/Time, then select get values from the dataset.
    Create a new dataset used to retrieve data for the report, add statement like below to the mdx query: {STRTOMEMBER(@Date)} * {STRTOSET (@Store_name)}.
    In Query Designer pane, click Query Parameters and assign parameter name same as SSRS report parameter.
    For more information about SSRS Report with Single and Multi Selection Parameter using MDX Query, please refer to the following blog:
    http://www.codeproject.com/Articles/799265/SSRS-Report-with-Single-and-Multi-Selection-Parame
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.

  • Ssrs 2008 r2 parameters

    In an existing SSRS 2008 R2 report, I need to add some extra parameters to several reports that call subreports. There will be times when the parameters may be empty. The visibility of specific columns and report headers will determine if the column or report
    header will be displayed. If the parameter(s) are empty, null, do not contain anything, I want those columns and report headerts to not display.
     Can you show me the code that will test to see if a parameter value is null?

    this was your requirement
    If the parameter(s) are empty, null, do not contain anything, I want those columns and report headerts to not display
    What I was suggesting was to use the following expression for the Hidden property of the columns which you want to hide
    when parameter has null of '' as value
    IIF(Len(Parameters!parameterName.Value) =0,True,False)
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • SSRS 2008 R2 calls Oracle stor proc produces error invalid number or type of parameters

    Hi,
    Our Microsoft SQL Server Reporting Services (SSRS) version 2008 R2 reports have been working for years. They retrieve data from stored procedures on an Oracle 11 DB using the Oracle 11 Client. After the Oracle Client on the SSRS server was upgraded from version 11 to 12, none of the reports work anymore.
    Trying to open any report in IE displays the following error:
    Query execution failed for dataset 'ds_MyDataset'. ---> System.Data.OracleClient.OracleException:
    ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'usp_MyOracleStoredProc'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    The simplest example we're using to troubleshoot the problem is a report that has no parameters, which calls an Oracle stored procedure which has no input parameters, and only 1 output parameter (of type "Ref Cursor", the one Oracle needs in order to return the resultset). Even this simple report produces the error shown above.
    I placed a "debugging aid" inside the body of the stored procedure, a SQL insert statement to log to a table, so I can see if the body of the procedure's being executed at all. It never runs. That leads me to think that the error occurs before executing the procedure, when SSRS is probably using something like DeriveParameters() to detect the number and type of parameters the procedure has.
    This leads me to think that when SSRS detects which parameters the Oracle procedure has, the Oracle Client returns 1 parameter (the output cursor). SSRS looks at the number of parameters defined in the report's dataset, and it finds zero b/c the output cursor parameter Oracle uses to return the data doesn't need or can't be defined in SSRS. Then SSRS compares 1 <> 0, and displays the error.
    So, in order to test, I removed the output parameter (the one of type "Ref Cursor") from the Oracle stored procedure, and then the report runs, and the body of the procedure gets executed. There are no errors, but no data b/c the output cursor parameter has being removed from the Oracle procedure.
    This leads me to think that in this case, when SSRS detects which parameters the Oracle procedure has, the Oracle Client returns zero parameters. SSRS looks at the number of parameters defined in the report's dataset, and it matches b/c there aren't any, so SSRS proceeds to execute the procedure.
    Could there be a "miscommunication" between SSRS 2208 R2 and Oracle Client 12 in reference to the number of parameters, b/c with Client 11 all reports work, but with 12 none works?
    Any help with this matter will be greatly appreciated.
    Sincerely,
    Richard

    Our Microsoft SQL Server Reporting Services (SSRS) version 2008 R2 reports have been working for years. They retrieve data from stored procedures on an Oracle 11 DB using the Oracle 11 Client. After the Oracle Client on the SSRS server was upgraded from version 11 to 12, none of the reports work anymore.
    Havent' run across that one before but it sounds like more of a problem with SSRS than anything to do with Oracle.
    But what you posted above raises the obvious question: WHY?
    Why did you upgrad the Oracle client to 12c to begin with if you are still using an Oracle 11g database? Major upgrades like that are normally done for very specific reasons so what were they?
    I suggest you test by reinstalling the 11g client and get your reports working again.
    Also - did you install the new version of ODAC to support the new Oracle client? There could be a compatibility issue if you are using a new Oracle client but the older ODAC version.
    ODAC 12c Release 2 installation instructions
    You also need to make sure the bit versions (32 vs 64 bit) match.

  • SSRS 2008 R2 Report parameters have default values and report not to auto run

    Hi, I am using SSRS 2008 R2 one of my requirements for a Report is all the parameters have default value and I do not want this report to auto run when users open this report. I can create a dummy hidden parameter to break the auto run for this
    report. But I am looking for solutions other than that.
    Thanks in advance..........
    Ione

    Hi lone,
    According to your description, you have a report with parameters. Now you want you report not to run automatically with your parameters default values. Right?
    In Reporting Service, if you have parameters with default values in your report, your report will always auto run with these default values. We can say these default values are used for report running initially. So for your requirement, if you really need
    to see your default value before the report running, the best workaround is set one more parameter to break the auto run like you have done. If you just want your report not to auto run, your can achieve it by removing those default values.
    Reference:
    Report Parameters (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou (Pactera)

  • Controlling execution of subreport on main Report in ssrs 2008 R2

    Controlling execution of subreport on main Report in ssrs
    Hi,
    Am using more than 100 subreports in my main report using ssrs 2008 R2.
    And given conditional Visibility in sub reports based on the Parameter selection in main Report . But the performance is very very slow in main report.
    While selecting single sub report executes in seconds. The same report in main report executes in hours.
    According to my view,
    All the Sub reports executes and finally conditional visibility is working. Can we Control executing sub reports?
    Regards, Gayathri devi P.S. : Please click the 'Mark as Answer' button if a post solves your problem! :)

    Hi,
    I think the time to render 100 report sure will be long time and the main report want to render those reports.
    So first why you do not separate those report on many reports for different purpose.
    second if this is a dashboard report you may use many matrix in the same report and the parameters passed by default or based on expression.
    I really hope if you make your report as dashboard report, many matrix many parameters render it once. As I remember I think SSRS will try to execute your
    DataSets in parallel which will reduce your waiting time.
    I hope this is helpful.
    Elmozamil Elamir
    MyBlog
    Please Mark it as Answered if it answered your question
    OR mark it as Helpful if it help you to solve your problem
    Elmozamil Elamir Hamid
    http://elmozamil.blogspot.com

  • Ssrs 2008 'select all' option to be selected for a parameter

    In a new ssrs 2008 report, the problem is all reports are not selected from the parameter called 'report' when the report runs automatically.  When the report executes, there is nothing displayed in the parameter selection  dropdown box. The user
    has to click the down arrow to select which reports they want to execute.
    Here is the siutation for the ssrs 2008 report:
    In a new SSRS 2008 report, I want to be able to allow the user to select which report they  would like to see generated by selecting the report name from a dropdown list. This is a multi-valued parameter and the parameter name is called 'report'. I
    would like the default value to be for all 5 reports to be selected.
    All 5 reports will be on the 'main' report. There will be no subreports. Each report will have its own unique matrix and the matrix will be visibile based upon what is selected in the parameter called 'report'.
    My question is how can I make the 'default' value for the parameter called 'report' have all the reports selected?
     Normally to get all multivalued parameter values selected you create a dataset and run a query against a table. However in this case, there is no table to query. The user just selects what report(s) they want executed.
    Here is the code that is used:
    1.Right-click the multiple parameter ‘repot’ to open the Properties dialog box.
    2.Specify the values below in the Available values:
     Label: report1                                                
    Value: report1
     Label: report2                                                
    Value: report2
     Label: report3                                                
    Value: report3
     Label: report4                                                
    Value: report4
     Label: report5                                                
    Value: report5
    3.Specify the values below as the Default Values:
     report1   report2   report3   report4   report5
    4.Right-click the ‘report1’ to open the Tablix Properties dialog box.
    5.Select Visibility in the left pane, type the expression below in the “Show or hide based on an expression” textbox:
     =iif(InStr(join(Parameters!report.Value,","),"report1")>0,false,true)
    6.Use the expressions below to control the visibility of the ‘report2’, ‘report3’, ‘report4’, ’report5’:
     =iif(InStr(join(Parameters!report.Value,","),"report2")>0,false,true)
     =iif(InStr(join(Parameters!report.Value,","),"report3")>0,false,true)
     =iif(InStr(join(Parameters!report.Value,","),"report4")>0,false,true)
     =iif(InStr(join(Parameters!report.Value,","),"report5")>0,false,true)
    Thus can you tell me how all values from the 'report' parameter can be selected automatically  when the ssrs report is executed?

    Pass default value as below and see
    =Split("Report1,Report2,Report3,Report4,Report5",",")
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Ssrs 2008 r2 report dataset call a stored procedure

    I am modifying an existing SSRS 2008 r2 report. In a dataset that already exists within the ssrs 2008 r2 report I need execute
    a stored procedure called StudentData and pass 3 parameter values to the stored procedure. The stored procedure will then return 5 values that are now needed for the modified ssrs report. My problem is I do not know how to have the dataset call the stored procedure
    with the 3 parameter values and pass back the 5 different unique data values that I am looking for.
    The basic dataset is the following:
    SELECT  SchoolNumber,
            SchoolName,
            StudentNumber,      
     from [Trans].[dbo].[Student]
     order by SchoolNumber,
              SchoolName,
              StudentNumber
    I basically want to pass the 3 parameters of SchoolNumber, SchoolName, and StudentNumber to the
    stored procedure called StudentData from the data I obtain from the [Trans].[dbo].[Student]. The 3 parameter values will be obtained from the sql listed above.
    The  columns that I need from the stored procedure called  StudentData will return the following data columns
    that I need for the report: StudnentName, StudentAddress, Studentbirthdate, StudentPhoneNumber, GuardianName.
    Thus can you show me how to setup the sql to meet this requirement I have?

    Hi wendy,
    After testing the issue in my local environment, we can refer to the following steps to achieve your requirement:
    Create three multiple parameters named SchoolNumber, SchoolName and StudentNumber in the report. Those available values from the basic dataset SchoolNumber, SchoolName and StudentNumber fields.
    If you want to pass multiple values parameter to stored procedure, we should create a function as below to the database:
    CREATE FUNCTION SplitParameterValues (@InputString NVARCHAR(max), @SplitChar VARCHAR(5))
    RETURNS @ValuesList TABLE
    param NVARCHAR(255)
    AS
    BEGIN
    DECLARE @ListValue NVARCHAR(max)
    SET @InputString = @InputString + @SplitChar
    WHILE @InputString!= @SplitChar
    BEGIN
    SELECT @ListValue = SUBSTRING(@InputString , 1, (CHARINDEX(@SplitChar, @InputString)-1))
    IF (CHARINDEX(@SplitChar, @InputString) + len(@SplitChar))>(LEN(@InputString))
    BEGIN
    SET @InputString=@SplitChar
    END
    ELSE
    BEGIN
    SELECT @InputString = SUBSTRING(@InputString, (CHARINDEX(@SplitChar, @InputString) + len(@SplitChar)) , LEN(@InputString)-(CHARINDEX(@SplitChar, @InputString)+ len(@SplitChar)-1) )
    END
    INSERT INTO @ValuesList VALUES( @ListValue)
    END
    RETURN
    END
    Use the query below to create a stored procedure, then use it to create a dataset to return 5 values:
    create proc proc_test(@SchoolNumber nvarchar(50),@SchoolName nvarchar(50),@StudentNumber nvarchar(50))
    as
    begin
    select StudnentName, StudentAddress, Studentbirthdate, StudentPhoneNumber, GuardianName
    from table7 where SchoolNumber in (SELECT * FROM SplitParameterValues (@SchoolNumber,','))  and SchoolName in(SELECT * FROM SplitParameterValues (@SchoolName,','))  and StudentNumber in (SELECT * FROM SplitParameterValues (@StudentNumber,','))
    end
    Right-click the new dataset to modify the parameter value in the Parameters pane as below:
    =join(Parameters!SchoolNumber.Value,",")
    =join(Parameters!SchoolName.Value,",")
    =join(Parameters!StudentNumber.Value,",")
    For more details about pass multi-value to stored procedure, please see:
    http://munishbansal.wordpress.com/2008/12/29/passing-multi-value-parameter-in-stored-procedure-ssrs-report/
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for

  • White screen in Avid Meridian after export from FCP 6?

    After exporting a sequence as 10 bit uncompressed NTSC (using AJA Kona II card) on FCP Ver. 6.06, I imported the file into my Avid Symphony (Meridian). When I tried to play the file, I could only see a white screen. Audio plays fine. I have searched

  • Can't import XMP-Files from Bilora/Jobo Geotagger in Aperture 3.0.1

    Hello, now I use Aperture 3.0.1 and have buy the Bilora Geotagger with the Photo GPS Software from Jobo. But when I import the RAW-pictures in Aperture, Aperture says, can't read some files, that means the XMP Files. When I look in a editor in the XM

  • Importing graphics in CALS Table XML

    Does anyone have an example of how to import a graphic within one of the cells of a CALS table (XML)? thanks

  • Anyone else's macbook case burst??

    I have had my  white macbook for a couple of years. Not long after I got it a bit of the casing came away and I never thought anything of it. Then I noticed a split right along the whole computer.  Also another part of the casing is now hanging off. 

  • It's only the pdf's..

    I use the app Notability on my iPad to write all my notes in class, and then I open them in iBooks as a pdf, however I have to print from my MacBook Pro. I cannot get all of the pdf's to show up in my iBooks on my laptop to sync, only some show. How