I need one parameter value to return all values in SSRS

when clicking on last label , I need data associated with all counties to retrieved , it is working fine when clicking on particular country but I can't figure it out how to do this is with multiple value  
in my SQL code I am trying to do this 
where country in(@country)

There is no need to specify "All countries" in SSRS if you want to select all the countries if you want to render the report. Just pass all the available values and in the "General" tab select
Allow multiple values which gives you the option to choose all the countries or also one or more countries... Don't forget to specify the "IN" operator in your query... it's a must...
Good luck :) .. visit www.sqlsaga.com for more t-sql code snippets and BI related how to articles..

Similar Messages

  • Read Query String Parameter Value in SSRS

    Hi,
    We have Project Server 2010 and Sharepoint Server 2010 env and using SSRS 2008 R2 for reporting purpose in Native mode.
    Here I am displaying the SSRS Project report in Project Server page using Report Viewer web part like below.
    Here I want to read projuid query string parameter value (Highlighthed above in URL ) in SSRS by using any way, so that I can pass that
    projuid value in my SSRS report parameter to filter and make this report dynamic.
    Right now I have to select the ProjectName (Label) which passes ProjUID
    as value from the Parameter, but I want it should read the projuid
    from URL so that this reports will display the project the data for the opened Project automatically
    Thanks and let me know in case we can achive this using OOTB or some custom functions.

    Hi,
    For the report parameter, you can get the value from database query or some embedded funcitons etc. or even some customerized function.
    You may consider to create your own code for the report to read the projuid from application or URL. The customer code can be used to get the values from the applicaiton or from the url etc. Then report can call the customer code function to get the value.
    refer link
    https://technet.microsoft.com/en-us/library/ms155798(v=SQL.100).aspx
    https://support.microsoft.com/kb/920769?wa=wsignin1.0
    Thanks,

  • Report does not return all data in SSRS

    Hello All
    I have been developing a report in SSRS, and i have a few filters applied to it. The only thing that i have in the Query that brings everything to my main dataset is the Date filter. @startDate, @endDate.
    When i run the query in Management Studio, i get 420 rows for october(1st - 31st), but when i do the same in the report preview(With the same query), i get only 27 rows.
    All my parameters have a dataset, and i'm using "IN" instead of "=", they also are configured to have multiple values. 
    When i test it, i make sure i select all the values available. 
    What do you guys think might be the issue here??? 
    Thanks in advance!

    Can you post how your filter statement looks like for handling multiple date values in query?
    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

  • Accessing concurrent prg parameter values having space in shell script

    Hi, I have a CP that is tied to Host (shell script). One of the parameter values of CP contains spaces. When I print this parameter ($5) in shell script, space is taken as terminator and it parses it in mutiple postions, like if value is "Hello There" then $5 comes as "Hello" and $6 comes as "There"
    How do I access whole values including space as one parameter value?
    Regards,
    Harish

    Hi Ashutoosh,
    OS is SunSolaris 5.9
    My problems was that if I pass a value from concurrent program that has space and wanted to access that value in shell script as one parameter, it won't allow.
    I did anlaysis on this and I think for now, there is no way out. If I pass values from unix to shell script it works, because I will enclose in quotes.
    I removed the spaces while passing value from Concurrent program and was able to achieve what I wanted but its an work around.
    Thanks,
    Harish

  • Search Method by more one parameter

    Hi All,
    I am trying to use search method (LOV) which has three parameters..
    How can let the user search by one parameter or two or all..

    Are you asking how to write the SQL for the VO for this?
    How about:
    Where field1=nvl(:p1,field1)
    and field2=nvl(:p2,field2)....

  • Parameter not returning all values

    I have a crystal report built off an oracle DB.  For one parameter it is not returning all values.  I can display data or the entire table it shows me all values, but when i build a parameter it only shows me through August.  It is a date/time field.

    check the following thread
    [Dynamic Parameter only showing 1000 records when Crystal report is run.;
    regards,
    Raghavendra.G

  • Allow only one set of parameter values for all worksheets

    I would like to " Allow only one set of parameter values for all worksheets ", but prompt before executing the worksheet. This function is a great time saver, but the users on occasion would like to change at the least one of the parameters. Is this possible? What setting do I use? I've tried various combinations of the " After opening a workbook: " on the options page. " Run query automatically", " Don't run query (leave sheet empty) ", and " Ask for comformation ". I would have thought that "Ask for comformation " was the trick, but no. I'm considering putting a do nothing parameter that has the setting of " Allow different parameter values for each worksheet. " so that it will keep all the others, default this one, but prompt for a possible change.
    Any thoughts...
    Thanks,
    Jamie

    Hi Jamie
    Even though you have the same parameter for all worksheets a user can still choose what to use on a worksheet. Its just that if they click to another worksheet then that parameter will be applied.
    Which version of Discoverer are you using?
    Best wishes
    Michael

  • How to show all data when using more than one parameter?

    Hi All,
    I used a query like this to show the data in a report:
    select col1, col2 // col1 and col2 are columns of tabale tab1
    from tab1
    where
    tab1.col1 =
    (case when :P_COL1 IS NOT NULL then // :P_COL1 IS A USER PARAMETER TO EQUAL COL1
    :P_COL1 ELSE tab1.col1
    end)
    AND TAB1.COL3 =
    (case when :P_COL3 IS NOT NULL then // :P_COL3 IS A USER PARAMETER TO EQUAL COL3
    :P_COL3 ELSE tab1.col3
    end)
    The problem is when I run the report with paramters values or not, It shows the data which is not null for both col1 and col3.
    That is when the value of col1 or col3 is null the report would not return that record!
    I want the report to show all data not only values which is not null!
    How to do this?

    Rainer,
    That where clause will fail when col1 in the table is null and the parameter has the dummy value. Consider the following:
    variable p_col1 varchar2
    exec :p_col1 := 'yourdummyvalue';
    select
    from
         select 'yourdummyvalue' col1 from dual
         union all
         select 'other' from dual
         union all
         select null from dual
         union all
         select 'X' from dual
    ) tab1
    where nvl(tab1.col1,'yourdummyvalue') = nvl(nvl(:p_col1,tab1.col1),'yourdummyvalue')In this case, the query returns the row with null and the row with 'yourdummyvalue', where only the row with 'yourdummyvalue' should be returned.
    You must do something like this:
    where ( :p_col1 is null or ( :p_col1 = tab1.col1 ) )That one is the simplest and does not need a dummy value. Here are some other more complicated examples:
    where nvl( :p_col1, 'yourdummyvalue' ) = decode( :p_col1, null, 'yourdummyvalue', tab1.col1 )or this:
    where nvl( :p_col1, 'yourdummyvalue' ) = nvl2( :p_col1, tab1.col1, 'yourdummyvalue' )In the last 2 cases, it will not matter if the dummy value exists in the data, but they are unnecessarily complex.
    Kurz

  • Retrieve All records and display in Report using CAML query in Report Builder if Parameter value is blank

    Hello Experts,
    i have created a report where i have one parameter field where user will pass parameter(e.g. EmpId). As per parameter record will fetched to report if no parameter is passed then it will display all records. I have done it by taking SqlServer Database as datasource.
    by using Following method
    Now i would like to do it by taking Sharepoint List as Datasource. For that what would be the CAML Query.
    Here is my existing CAML query.
    <RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <ListName>Employees</ListName>
      <ViewFields>
        <FieldRef Name="Title" />
        <FieldRef Name="FirstName" />
        <FieldRef Name="LastName" />
        <FieldRef Name="FullName" />
        <FieldRef Name="UserName" />
        <FieldRef Name="Company" />
      </ViewFields>
      <Query>
        <Where>  
    <Eq> 
        <FieldRef Name="Title" />
      <Value Type="Text">    
       <Parameter Name="EmployeeId"/>    
    </Value>
    </Eq>                  
        </Where>
      </Query>
    </RSSharePointList>
    The above code is working if i am passing an employeeId to Parameter. If nothing is passed, it is Not retrieving any record.
    Please suggest
    Thank you
    saroj
    saroj

    Your problem follows the well-established pattern of using an "All" parameter filter in SSRS. There are a few approaches depending on the size of your data. The easiest one is to return all data from CAML and then filter it within SSRS, the following thread
    provides some examples,
    http://stackoverflow.com/questions/18203317/show-all-records-some-records-based-on-parameter-value.
    Other options include passing all of the possible values within the CAML query when "All" is selected, using multiple Report Files to distinguish between both CAML queries, or to use multiple datasets with some logic to show/hide the correct one.
    Dimitri Ayrapetov (MCSE: SharePoint)

  • Use of layout when more than one parameter - Error Missing Parameter Values

    Hi,
    Is it possible to use a crystal report which has more than one parameter as the layout for the bill of materials report.
    I have 3 parameters
           1. DocKey@       The Bill of Materials to be printed
           2. Number of levels to be printed
           3. type of levels to print.
    When I try to print it gives me the error Missing Parameter Values.
    I have tried changing the DocKey@ to CodeKey@ but the same error.
    Does anyone now where to find a list of these tokens?
    Thanks
    Chris

    I looked at the crystal report conversion to try to find what parameters it used and found none.
    I have managed to create and use a crystal report to replace the production order using DocKey@ as the parameter.  This works within SAP.  However I have converted the system production order to crystal reports and from the converted report I cannot see any parameters at all.
    How and where can you find out what paramters you need to use to replace any PLD report?  Several reports have multiple selection criteria before the report prints.  How can you find out what their tokens are called?  I am starting to pull my hair out.  I am getting great help from this forum, but do you know any documentation which actually explains this area.
    Thanks
    Chris

  • XL Reporter Parameter that returns all data if not used

    Is there a way to use a parameter on a field, but if the user doesn't select a value, return all rows? I have a report that returns a bunch of data about items. I would like one report where if the use chooses to narrow it down to a specific item they can, but if they choose not to narrow it down, it would return all items. I can only get it to do one or the other, but not both in one report.
    Thanks

    I have a parameter setup for the ItemCode and I tried to assign it * for its default value, but it returns nothing. If I enter a valid item code it works, but it seems as if I put an * in, it looks specifically for that rather than treating it like a wildcard. If I remove the parameter and put the *, it returns all. I want the parameter available, but if they don't want to use it I would like to return all records.

  • Need UCM service which has  to return all the files in the Folder

    HI,
    I need a webservice which has to return all the images/text files in the folder. I ll pass folder name has a input parameter..once i got all the files i have to shown those images in the web page.
    Do we have any service with this requirement?? Or
    i have to use 'Seach' service ,Which has return all the files meta info ...with this info do i have to use GetFile service for displaying data??
    Any suggestions??
    Thanks

    Hi Jiri,
    I dont know abt folios..I ll go thru it now..
    When coming to the option a)
    When we are calling Search service it will return resultset which contains meta data(Filename,File Id,URL,etc.....) for list of files in the folder. Now what i do to display image is , using this URL i ll bulid image object using this URL and i ll display it on the webpage(This web page contains Silver light component to display these images.)
    I m assuming problem with this one is every time when i m building image i m hitting the the server to construct the image. Instead im trying to get the all the images in one shot when i pass folder name??
    I doubt myself wether my assumtion is correct or not...
    any suggestions plz..
    Thanks

  • Export workbook – One sheet needs to be run first before all sheets can be

    I have “Init” sheet in a workbook, which sets the entered parameter values in DB context. Other worksheets query data based on the DB context value.
    Now, I’m writing a DOS batch job to automatically export the workbook. The problem I’m facing is I can’t instruct Discoverer to run the “Init” sheet first.
    So far I tried the following commands
    c:\oracle\BIToolsHome_1\bin\dis51usr.exe /connect test#/dev@dec_db /opendb " Account.DIS" /Sheet Init,Test_1,Test_2 /parameter Acct_ID 0113 /parameter MV 40494801 /batch /export HTML "ELT_report_%today_date%.xls"
    c:\oracle\BIToolsHome_1\bin\dis51usr.exe /connect test#/dev@dec_db /opendb " Account.DIS" /Sheet Init /Sheet ALL /parameter Acct_ID 0113 /parameter MV 40494801 /batch /export HTML "ELT_report_%today_date%.xls"

    Deepakanu.
    1. I don't have the command in front of me, but you have to run each command separately for each worksheet if that's what you need to do.
    So, your first run would be something like:
    c:\oracle\BIToolsHome_1\bin\dis51usr.exe /connect test#/dev@dec_db /opendb "Account.DIS" /Sheet Init /parameter Acct_ID 0113 /parameter MV 40494801 /batch /export HTML "ELT_report_%today_date%.xls"
    while your second ... all runs would be to label each worksheet separately OR if you used the ALL, it would re-run Init again and may screw you up.
    Sounds like you'll have to specify each separately if you're dependent on the order.
    2. Alternatively, if you just used the ALL version and that's it (ie: put in /Sheet ALL by itself), then I thought that the first worksheet in a workbook (farthest left) would be the one to run first. If this is correct, then maybe this would work if you make sure of the worksheet ordering in the workbook.
    Russ

  • Pass values to parent report's parameter  when click "Return to prev.."

    We have one report A which has parameters(use prompt to select value, not URL) to filter data, A has drill across action to report B(replace current report), we now can pass A's parameters to B.
    But if we click the "Return to previous Report" in B, all parameters in A dismiss. A report lose parameters used before, and we do not know how to pass parameter to A again, (all action must replace current report)
    Edited by: Jeffrey Yan on Mar 8, 2010 6:49 PM

    While creating prompt for Report A, you can set its default value (in prompt window before the last step where it lists all the values from the data object, you can click on the value and then click the arrow button). This way, when you return to A from B, at least it will open up with the default prompt value.

  • Export txt file with all parameter values during the report execution

    Hello,
    I've developed one report in Report Builder 3.0 , report server being  SRSS 2008 R2. This report has one report parameter named id_product. There are two data sets available. One data set  is for populating the report table.  In the second
    data set I'm trying to export the id_product. The below query works fine only for single valued parameter id_product, this query being used in the second data set   Report pops-up an error when trying to run the report for multiple products at the same
    time. I looked in SQL Profiler and it seems like inserting the parameter values in the global temporary table is not possible using the current code.
    I'm aware of the VB Expression named Join but in such case I'm not sure if I can use it. It would be great if I can use this kind of expression. This way I would not create the data set anymore.  
    Current query:
    drop table ##SelectedValuescreate table ##SelectedValues(id_product nvarchar(max))insert into ##SelectedValues(@id_product) exec xp_cmdshell 'bcp "select ''id_product'' union all select * from ##SelectedValues" queryout "G:\Report\sqloutput.csv" -c -T -t'
    Input: ProductId parameter values : 12, 16, 20
    Desired output in csv:
    id_product
    12
    16
    20

    Hi chopstix21,
    Just as you thought, we can use join function to insert the values from a multiple value parameter to a temp table with VB Expression. After testing it in my own environment, we can refer to the following steps:
    Create the second dataset using the query below:
    drop table ##SelectedValues
    create table ##SelectedValues(id_product nvarchar(max))
    insert into ##SelectedValues(‘1’)
    exec xp_cmdshell 'bcp "select ''id_product''
    union all select * from ##SelectedValues" queryout "G:\Report\sqloutput.csv" -c -T -t'
    Change the dataset using the expression like below:
    ="drop table ##SelectedValues"&
    "create table ##SelectedValues(id_product nvarchar(max))" &
    "insert into ##SelectedValues values (" & Join(Parameters! id_product.Value,"),(") &")" &
    "select * from ##SelectedValues"
    When we select 12, 16, 20 from parameter id_product, the second dataset will return 12, 16, 20 values as id_product field.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for

  • Windows failed to apply the Internet Explorer Zonemapping settings - the data was invald (event ID: 1085)

    Hi All, I have a large domain and a long list of websites that are trusted using the following group policy setting: Administrative Templates > Windows Components > Internet Explorer> Internet Control Panel > Security Page > Site to Zone Assignment L

  • Error Message Displaying the status Bar not like popup message

    Hi all, My Requirement is while creating  invoice if pricing conditons is repeted , system should thorough the error message like (uplicate Condition Types Are Not Possible  in the status Bar but Im getting poup Error message So I want to display the

  • Emergency! Help with flicker in applet!

    I have used the bufferstrategy technique before and I know all about double buffering and all, but I normaly ama programming with Frames and Canvas instead of Applets. My applet is flickering as I update the images on the screen can a bufferstrategy

  • Oracle11g heterogenous data guard Linux-ASM primary, Windows-Filesystem standby

    Is it possible to setup a standby database on (Windows 64bit) OS filesystem with 32GB datafile limit that syncs with a primary database on (Linux 64bit) ASM that has datafiles that are larger than 32GB. There is a Linux-ASM standby in place, this wil

  • Doucment Number Ranges

    HIi All         Here My Question is that I have created document number range 1 t0 50000 for purchase order for year 2009-10 Now my Client want Same number range for next year Is it Possible or any smart solution is there ??? Thanks & Regards Amit