SSRS 2012: How to get a "Select All" that returns NULL instead of an actual list of all values from a multi-select parameter?

I have a multi-select parameter that can have a list of thousands of entries. In general, the user will pick a few entries from the list or "Select All". If they check "Select All", I would much prefer that I get a NULL or an empty string
instead of a list of all values. Is there any way to do that?
In experimenting with a work-around, I tried putting an "All" label with a null value in the list, but it is ignored (does not display in the drop-down). If I use an empty string for the value, my "All" entry does get displayed, but so
does "Select All", which is confusing. Is there a way to suppress "Select All"?
- Mark

I adapted the following from a workaround posted by JNeo on 4/16/2010 at 11:14 AM at
http://connect.microsoft.com/SQLServer/feedback/details/249227/multi-value-select-all-parameter-in-reporting-services
To get a null value instead of the full list of all values when "Select All" is chosen:
1) Add a multi-value parameter "MyParam" that lists the values to choose.
2) Add a DataSet "ParamCount" identical to the one used by "MyParam", except that it returns a single column named [Count] that is a COUNT(*) of the same data
3) Add a parameter "MyParamCount", set it to hidden and internal, then set the default value to 'Get values from a query', choosing "ParamCount" for the Dataset and the one [Count] column for the Value field.
4) Change the parameter for the main report DataSet so that instead of using [@MyParam], it uses this expression:
=IIF(Parameters!MyParam.Count =
Parameters!ParamCount.Value, Nothing, Join(Parameters!MyParam.Value, ","))

Similar Messages

  • How to get average between rows that are null?

    I need to get the average between the 2 positive numbers.
    Then update the table with the average for those rows that are NULL between the 2 positive numbers.
    The average will come (78+89)/2= 83.5. Round it to 84.
    Then it will be:
    6-4-13       84
    6-5-13        84
    6-6-13        84
    As for 6-9-13 and 6-10-13, those values will still be NULL.
    {code}
    create table dummy( tmestmp date
    ,maxtemp number(4,0));
    insert into dummy(tmestmp,maxtemp) values(to_date('20130601','YYYYMMDD'),70);
    insert into dummy(tmestmp,maxtemp) values(to_date('20130602','YYYYMMDD'),81);
    insert into dummy(tmestmp,maxtemp) values(to_date('20130603','YYYYMMDD'),78);
    insert into dummy(tmestmp) values(to_date('20130604','YYYYMMDD'));
    insert into dummy(tmestmp) values(to_date('20130605','YYYYMMDD'));
    insert into dummy(tmestmp) values(to_date('20130606','YYYYMMDD'));
    insert into dummy(tmestmp,maxtemp) values(to_date('20130607','YYYYMMDD'),89);
    insert into dummy(tmestmp,maxtemp) values(to_date('20130608','YYYYMMDD'),91);
    insert into dummy(tmestmp) values(to_date('20130609','YYYYMMDD'));
    insert into dummy(tmestmp) values(to_date('20130610','YYYYMMDD'));
    {/code}
    I need the output to look like this:
    Header 1
    Header 2
    01-JUN-13
    02-JUN-13
    03-JUN-13
    04-JUN-13
    05-JUN-13
    06-JUN-13
    07-JUN-13
    08-JUN-13
    09-JUN-13
    10-JUN-13
    70
    81
    78
    84
    84
    84
    89
    91
    null
    null
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
    PL/SQL Release 10.2.0.4.0 - Production
    "CORE 10.2.0.4.0 Production"
    TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    Suggestions?
    TIA.
    Steve42

    select  tmestmp,
            nvl(
                maxtemp,
                round(
                       last_value(maxtemp ignore nulls)
                         over(order by tmestmp) +
                       first_value(maxtemp ignore nulls)
                         over(order by tmestmp
                              rows between 1 following and unbounded following
                      ) / 2
               ) maxtemp
      from  dummy
    TMESTMP                MAXTEMP
    06/01/2013 00:00:00         70
    06/02/2013 00:00:00         81
    06/03/2013 00:00:00         78
    06/04/2013 00:00:00         84
    06/05/2013 00:00:00         84
    06/06/2013 00:00:00         84
    06/07/2013 00:00:00         89
    06/08/2013 00:00:00         91
    TMESTMP                MAXTEMP
    06/09/2013 00:00:00
    06/10/2013 00:00:00
    10 rows selected.
    SQL>
    SY.

  • Values from a Multi-Select in the where clause of a Select statement

    I have a web page that solicits query parameters from the user.
    The selections that the user makes will populate the WHERE clause of a Select statement.
    One of the controls on the page is a multi-select control.
    When this page posts, I would like to execute a Select statement wherein the selected values from this control appear in the .. Column IN ( <list here> ) portion of the WHERE clause.
    This is an extremely common scenario, but I cannot seem to locate a how-to or message thread that addresses this specific case.
    I have an idea that it may involve dynamic SQL or Execute Immediate, but cannot seem to pin down the answer.
    Any help would be greatly appreciated!

    anonymous - As illustrated here: Re: Search on a typed in list of values
    Scott

  • Get all the values from a multiple select in a multipart form

    Hi there!
    I am using a form with enctype="multipart/form-data" in order to upload files from the form.
    I have read this page: http://commons.apache.org/fileupload/using.html and everything works well for my form.
    The only problem is that I can't get all the values from a "multiple select" html object. I get only one value.
    Using servlets I have used this method:
    public java.lang.String[] getParameterValues(java.lang.String name) But now I have enctype="multipart/form-data" in my form and I can't use this way...
    Is there a way to get all the values of a multi-valued parameter?
    Thanks a lot!
    Stefano

    Hi
    I have got solution for this problem so, I am listing here logic
    assume tag name of html
    <select name="moption" multiple="multiple">
    iterate it in as
    String moption="";
    boolean cnt=true;
    while(itr.hasNext())
    FileItem fi=(FileItem)itr.next();
    if(fi.isFormField())
    if(fi.getFieldName().equals("moption"))
    if(cnt==true)
    moption=fi.getString();
    cnt=false;
    else
    moption=moption+","+fi.getString();
    If wants more help then mail me your problem
    at [email protected]
    Thanks!
    Anand Shankar
    Edited by: AnandShankar on 6 Nov, 2009 12:54 PM

  • How to create a group of contact from a multi-selection of mails in a mailbox to answer to all senders?

    How to create a group of contact from a multi-selection of mails in a mailbox to answer to all senders?

    Use Mail Scripts. Its Add Addresses function will collect all the addresses from all selected messages and allow you to select the ones you want to add and allow you to create groups as you go.

  • How to get the SQL Signon that Agent Jobs "Run As" or "Executed as User"

    How to get the SQL Signon that Agent Jobs "Run As" or "Executed as User"?
    I have an install SQL scripts that creates a Linked Server. I want to put some security on the Linked Server and only grant the Agent Job Signon (the "Run As" or "Executed as User") access to the linked server. I need to retrieve the
    Agent Job Signon (something like "NT SERVICE\SQLAgent$FIDEV360BI02").
    I could query certain jobs and SUBSTRING the Message column - using some form of the query below, which would return "Executed as user: NT SERVICE\SQLAgent$SSDEVBI02. The step succeeded." But that is pretty imprecise.
    use msdb
    SELECT [JobName] = JOB.name,
    [Step] = HIST.step_id,
    [StepName] = HIST.step_name,
    [Message] = HIST.message,
    [Status] = CASE WHEN HIST.run_status = 0 THEN 'Failed'
    WHEN HIST.run_status = 1 THEN 'Succeeded'
    WHEN HIST.run_status = 2 THEN 'Retry'
    WHEN HIST.run_status = 3 THEN 'Canceled'
    END,
    [RunDate] = HIST.run_date,
    [RunTime] = HIST.run_time,
    [Duration] = HIST.run_duration,
    [Retries] = HIST.retries_attempted
    FROM sysjobs JOB
    INNER JOIN sysjobhistory HIST ON HIST.job_id = JOB.job_id
    -- CHANGE THIS
    -- WHERE JOB.name like '%GroupMaster%' or Job.name like '%etlv%'
    ORDER BY HIST.run_date, HIST.run_time

    by default all sql jobs are executed as sql server agent account, unless otherwise a proxy is setup.
    you can get the proxy information as Olaf mentioned, if the proxy_id is null for the step, it implies that the job step was executed as sql server service account and in such case it will be null
    so, if it is null, it ran as sql server agent account.
    so, one work around is get the sql server agent service account and if the proxy is null, that means it ran as sql server agent account, so, use isnull function. the disadvantage would be if the sql server agent account was switched, you might not get the
    accurate information as the new account will show up though the job really ran as old account, to get this information, you need to  get this from the logmessage column as you mentioned above.
     try this code...
    /*from sql 2008r2 sp1, you get the service accounts using tsql,otherwise you have to query the registry keys*/
    declare @sqlserveragentaccount varchar(2000)
    select @sqlserveragentaccount= service_account
    from sys.dm_server_services
    where servicename like '%sql%server%agent%'
    select message,isnull(name,@sqlserveragentaccount) as AccountName
    from sysjobhistory a inner join sysjobsteps b
    on a.step_id=b.step_id and a.job_id=b.job_id
    left outer join sysproxies c on c.proxy_id=b.proxy_id
    Hope it Helps!!

  • I never used this program before. I tapped on the "budget form" and decided I'd rather use the "expense form".  I can't figure out how to get to the page that you choose which form you want

    I never used this program before. I tapped on the "budget form" and decided I'd rather use the "expense form".  I can't figure out how to get to the page that you choose which form you want. How would I do that?

    Pct,
    In the Numbers spreadsheets window where all your documents are shown as icons, tap the Plus Sign.
    Choose Create Spreadsheet
    Select the template you want to use
    Jerry

  • How to get master data records that do not have transaction data in a query

    Hi,
    How to get master data records that do not have transaction data in a query output. Can we create a query or any other way to get the master data records that do not have transaction data?

    Hi,
    Create a multiprovider which includes transactional data target and master data info object. Make sure that identification for this master data info object is ticked on both the provider.
    Create report on this multiprovider , keep the master data info object in rows , and now you should able to see all the values which are there in master data info object irrespective of transaction happened or not .
    Next you may create condition showing only zero keyfigure values , ie. master data without any transaction.
    Hope that helps.
    Regards
    Mr Kapadia

  • How to get a SQL statement that trigerred a trigger ?

    I'd like to trace all insert and update operations done on a table.
    So, how can I get the SQL statement that triggered a trigger ?
    Thanks

    Use AUDIT to trace all sql statement about table, views etc. (except column) :
    http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10759/statements_4007.htm#SQLRF01107
    Or, if you are in 9i or later, you can use DBMS_FGA (you can audit just a column) :
    http://download-west.oracle.com/docs/cd/B14117_01/appdev.101/b10802/d_fga.htm#ARPLS015
    Nicolas.

  • I just got a new macbook pro. How do I get the 900  songs that I took off of cds into iTunes on my computer from my iPhone. I had no problems syncing the music I had purchased from iTunes. I have tried to sync it using iTunes match, this did not work.

    I just got a new macbook pro. How do I get the 900+  songs that I took off of cds into iTunes on my computer from my iPhone. I had no problems syncing the music I had purchased from iTunes. I have tried to sync it using iTunes match, this did not work. I would like to have access to my full library without going into the user profile of my old computer, which is on my new computers hard drive. I would like to eventually delete the old profile so that I have more space on my hard drive.

    http://support.apple.com/kb/HT4527?viewlocale=en_US&locale=en_US

  • How can we read the screen field values from the report selection screen wi

    Hi expart,
    How can we read the screen field values from the report selection screen with out having an ENTER button pressed  .
    Regards
    Razz

    use this code...
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_posnr.
    **Read the Values of the SCREEN FIELDs
    CALL FUNCTION 'DYNP_VALUES_READ'

  • How to Populate table using values from a muti-select list

    I have a muti-select list in a page, the user can select some of the values from the muti-select list. How to populate a table in a process using the selected values.
    Thanks.
    XP

    XP,
    you can also have a look at the following thread.
    Re: Shuttle Control In APEX 3
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • I am trying to upgrade my iPhone 4 to the latest iOS via iTunes, but I keep getting a message saying that an error [-5000] occurred and continuing will delete all content on my iPhone. What's the solution?

    I am trying to upgrade my iPhone 4 to the latest iOS via iTunes, but I keep getting a message saying that an error [-5000] occurred and continuing will delete all content on my iPhone. What's the solution?

    okay I've done everything regarding the transfer process (via file>transfer purchases) and syncing, so everything on my iPhone device seems to have been transferred to my iMac... however, I still get that message ("There are purchased items on the iPhone..."), trying to upgrade the iOS Have tried several times the same process of hitting transfer purchases via file, but nothing seems to make that message go away! Would have been nice to know which files I actually do need to transfer, which I don't get any info on of course...
    Starting to get really annoying this thing.. Any smart suggestions what's going on?

  • HT2602 I am stuck. I can not figure out how to get the microsoft office that is on my (admin) profile dock onto the dock for the other users on my mac. Can anyone help me out?

    I am stuck. I can not figure out how to get the microsoft office that is on my (admin) profile dock onto the dock for the other users on my mac. Can anyone help me out?

    ebony --
    So, when you open your main Applications folder, there is no Office app there?
    It's in your Users>Applications folder?

  • I deleted my uninstaller by accident how do get another one so that I can uninstall After Effects from my hard drive

    I deleted my uninstaller by accident how do get another one so that I can uninstall After Effects from my hard drive

    Why did you do that? Certainly not standard procedure. Fortunately, there is a fix: Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6

Maybe you are looking for

  • HP LaserJet Pro 100 color MFP M175nw does not connect to wireless network

    I recently upgraded my wireless network router. I had my HP LaserJet Pro 100 color MFP M175nw connected to the old wireless network router. The SSID is password protected (WPA2) I need to connect the printer to the new wireless network router. Howeve

  • Shortcut to close window in Safari but the current?

    I've been searching all over for this. I'm sure it s obvious ,but the words that I search are so common ,I get way to much info. Anyway I want to know how I can close all safari window but the currently active. Lets say there is 5 windows or tabs ope

  • Will Bootcamp run on a Macbook Air?

    I'm planning to buy a Mac laptop for my wife. She needs to use Windows (yuk). I'm considering a Macbook Air. Will I be able to run Bootcamp?

  • Dynamically setting Processing order in SSAS using AMO script

    Hi, I am looking for a AMO script to set the processing order (sequential or parallel) while processing the cube.We have the AMO script to process the cube with all options.This is a additional feature,which I am trying to add. I am not finding any m

  • Tv card and arch

    I have got hold of an old system that has a tv card, cannot give you much info from card only know that it uses saa7134 Need to know how to get it working and how under Arch 03:01.0 Multimedia controller: Philips Semiconductors SAA7134/SAA7135HL Vide