Multiple select parameter with each selected value covering multiple sub values

Hello, everyone,
In my SSRS report, I need to set a multiple select parameter called Group, with values: group1 group2, etc....
When group1 is selected, it needs to apply to data of certain sub groups: sub-group1, sub-group2;
When group2 is selected, it needs to apply to data of different sub groups: sub-group3, sub-group4 and sub-group5;
when both group1 and group2 are selected, then, it needs to apply to data of sub-group1 to sub-group5.
I know how to do it when only one group is selected: simply use a case statement in the query to select the right sub groups based on the group selected.
But I don't know a good way to do it when multiple groups are selected.
Any help, pointers are much appreciated. Thanks in advance!
Regards

Hi QQFA,
If I understand correctly, there are two parameters (Group and Sub_group) in the report. When we select group1 in Group parameter, it will auto select sub-group1, sub-group2 in the Sub_group parameter; when we select group2 in Group parameter, it will auto
select sub-group3, sub-group4 and sub_group5 in the Sub_group parameter; when we select both all, it will auto select all sub_group values. If I have misunderstood, please don't hesitate to let me know.
In this scenario, we can create a temporary table with Group and Sub_group columns, then select Sub_group column values based on the Group field. For more details, please see:
Create a dataset with the query below:
CREATE TABLE #temp([group] nvarchar(50),sub_group nvarchar(50))
INSERT INTO #temp VALUES     ('group1','sub-group1'),('group1','sub-group2'),('group2','sub-group3'),('group2','sub-group4'),('group2','sub-group5')
SELECT * FROM  #temp
where [group]  in (@Group)
Set available values and default values of Sub_group parameter with get values from the sub_group field in the new dataset.
Note that the two parameters are all multiple parameters.
If there are any misunderstanding, please elaborate the issue for further investigation.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support

Similar Messages

  • How to use SELECTION-SET with FREE-SELECTIONS?

    Hi,
    how to use SELECTION-SET with FREE-SELECTIONS?
    Regards,
    Vinay.

    Check http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm

  • Parameter with no selection

    i have a report that runs through an prime compliance suite application
    i created a sort parameter if they select a certain field it sorts the report that way.
    when the parameter screen displays through the viewer
    you have an option to select NO VALUE but nothing is passed to the parameter field to the report
    i remember soemthing like i can use in the report
    if hasvalue?  something of that nature, as isnull isnt working.

    Something is being passed back as a value, even if it's just an empty string... (I'm assuming the "NO VALUE" is the description and the value is being left blank...)
    Try
    IF {?Parameter} = ""
    or
    IF LEN({?Parameter}) < 1
    HTH,
    Jason

  • Select List with Submit : a display and a return value are needed...error

    Hi,
    Why the next SELECT returns error in Select list with submit ?
    List of values definition:
    SELECT b.nom nom_bannniere,
    b.no_banniere no_bann
    FROM banniere@my_source b
    WHERE b.statut = 0
    ORDER BY nom_bannniere;
    1 error has occurred
    * LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query.

    gfrancoeur,
    Try this SQL:
    SELECT b.nom d,
    b.no_banniere r
    FROM banniere@my_source b
    WHERE b.statut = 0
    ORDER BY 1Thanks,
    - Scott -

  • Tabbed selection screen with AT SELECTION-SCREEN ON events does not work

    I have a selection screen with 3 tabs fields on each tab have AT SELECTION-SCREEN ON field events.  
    If you are on tab 1 and select a variant that populates fields on all tabs and then click the execute button ABAP does not seem to recognize that the field has changed when it executes AT SELECTION-SCREEN ON field event unless you physically go to each tab.
    I can work around this by:
    1) moving all of the AT SELECTION-SCREEN ON field events in a AT SELECTION-SCREEN OUTPUT event.  This is not efficient and it potentially opens me up to other problems.
    2) changing the selection screen to remove the tabs and have all of the fields on 1 screen.  This makes for a very long screen.
    Is there any way to have ABAP check all tabs?
    Thanks,
    Jerry

    I finally got it to start.   Let it sit and tried and it wouldn't but then I tried again and it did.  How do I blow the dust out?   I think it must be something with the heat since that comes up alot. 
    I will do it, I love my Mac.

  • Adding selection parameter in VF04 selection screen

    Hi Gurus...
    I need to add a selection parameter on selection screen of VF04 transaction.
    Is it possible to do so?
    If yes, please tell me how.
    Thanks.

    HI Jagdish
    You can go in for Source Code Enhancements. (wont require the access key in this case)
    Note - Available SAP ERP 6.0 onwards
    1) Just click on the spiral (ENHANCE) button
    2) Right click on the suitable enhancement point / Enhancement Section
    3) Go to Enhancement Implementation -> Create
    4) Add your code in the enhancement implementation and activate
    You will need to add your code at multiple place (Obviously !!); just use the same implementation for all the Point / Sections you use in the program.
    Refer Source Code Enhancements - Part 5 of the Series on the New Enhancement Framework for more.
    Hope it helps. Please revert in case of specific issues.
    Neeraj

  • I no longer get the hallow boxes when I select something with the selection tool.

    I'm really frustrated. I use to be able to select an object with the selection tool and the bounding box would have hollow squares on the corners and in the centers of each side. I could use these to transform the object. Now the bounding box appears but the hollow boxes are missing and i have to use the free transform tool, which when I use to lengthen a text box vertically it stretched the text instead of just enlarging the bounding box. I have tried cntrl + shift + B but that does not solve the problem, What am I doing wrong and how on earth can I fix it. Please help.

    Two things I can suggest:
    1) Under view make sure that the show bounding box is checked.
    2) My Illustrator does that sometimes. The bounding box will not have the corners. I just select the artwork then click on the selection tool again and they show up.....I guess its a glitch.

  • Selection Screens with optional selections

    How do you deal with selection screens that have optional selections?  I guess my question is do you have a select statement for each possible combinations or is there a way to dynamically create the select statements depending on the user's choices on the selection screen.
    Regards,
    Davis.

    Hi,
    We create select satement dynamically.
    Please review RPLICO10 report for more on dynamic selections, it is one of the best and easiest report o go through.
    Regards,
    Amit
    Reward all helpful replies.

  • Can only select items with direct selection tool

    I have been working on a design: one layer, with multiple groupings, nothing is locked. I'm trying to select the items with the selection tool, but can only select items with the direct selection tool (which is very inconvenient in this case). I can select the text with the text tool, but that really serves no purpose in my case. Anyone have any ideas as to what's going on? When I was working on it yesterday, everything was fine with all the tools. Thanks in advance.

    Imcookin,
    It may be a corruption of preferences, or an issue outside Illy.
    You may try to close down and just restart, or close down and restart pressing Ctrl+Alt+Shift/Cme+Option+Shift, or close down and use the suggestions in Move the folder or, if none of those suggestions help, have a look at the list in Other options

  • How to replace the existing selection screen with new selection screen

    Hi,
    I have first selection screen with parametre as a table name, then I have created dynamic selection screen as 2nd selection screen with different fields of that table as select options. This is done using genaration of dynamic report. Now If I click on button on this 2nd selction screen , then I want to replace this 2nd dynamic selection screen , with the other selection screen fields.
    Can anybody guide me, How to do replace one slection screen with different selection screen.
    and one imp thing is this selction screen is populating with dynamic fields on it.
    Regards,
    Mrunal

    As I can understand you want to make some of the screen field to disable or visible on screen  depending upon the interaction of user with screen 1.
    You may use this example code in PBO of screen 2.
    LOOP AT SCREEN.
        " action has been taken to modify the area office screen as per the option chosen at screen 99.
        CASE ACTION.
            " if the user has taken up the option of UPLOAD
          WHEN 'UP'.     " screen processing while we upload the plan
            " during upload we will make dates as output fields only
            IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
              SCREEN-INPUT = 0.
              MODIFY SCREEN.
            ENDIF.
            " also make 2 buttons disabled
            IF SCREEN-NAME = 'AO_DO' OR SCREEN-NAME = 'AO_VE'.
              SCREEN-ACTIVE = 0.
              MODIFY SCREEN.
            ENDIF.
          WHEN 'DN'.      " screen processing while we upload the approved plan
            " during upload we will make dates as output fields only
            IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
              SCREEN-INPUT = 0.
              MODIFY SCREEN.
            ENDIF.
            " also make 2 buttons disabled
            IF SCREEN-NAME = 'AO_UP' OR SCREEN-NAME = 'AO_VE'.
              SCREEN-ACTIVE = 0.
              MODIFY SCREEN.
            ENDIF.
          WHEN 'VW'.      " screen processing while we view the plan
            " during upload we will make dates as output fields only
            IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
              SCREEN-INPUT = 0.
              MODIFY SCREEN.
            ENDIF.
            " also make 2 buttons disabled
            IF SCREEN-NAME = 'RLGRAP-FILENAME' OR SCREEN-NAME = 'FNAME'.
              SCREEN-ACTIVE = 0.
              MODIFY SCREEN.
            ENDIF.
            " and hide the file input field
            IF SCREEN-NAME = 'AO_DO' OR SCREEN-NAME = 'AO_UP'.
              SCREEN-ACTIVE = 0.
              MODIFY SCREEN.
            ENDIF.
        ENDCASE.
      ENDLOOP.

  • Trying to trigger multiple analog measurements with each pulse of a 500PPR encoder

    I am trying to take multiple analog measurements form 6 sensors with each pulse of a 500 ppr encoder and write these to a file.  Problem I have run into is I am not getting 500 readings with 1 revolution of the encoder the most I have received is 187 however this isnt consistant.
    using
    6024 E Series card
    BEI L25G encoder
    Still relatively new to labview along with using an older version 7.0
    Thank You in advance
    Solved!
    Go to Solution.
    Attachments:
    Rotary.vi ‏213 KB

    Never mind after looking at it somemore i found i was using the wrong sample rate

  • Multiple oracle session with one select

    Hi,
    When i run simple select statment oracle OPENS 5 different sessions and each session run same select .
    any body know what is wrong with it ,is there any parameter problem.
    HERE is a programe :
    ORACLE.EXE (P000)
    ORACLE.EXE (P001)
    ORACLE.EXE (P002)
    ORACLE.EXE (P003)
    ORACLE.EXE (P004)

    Basically my problem is that i am running an INSERT statement based on a SELECT statement on different tables.
    Now the problem is at times Oracle stops responding and my application hangs.
    I cannot find any other clue than the parrallel execution of INSERT statement by ORACLE.
    The reason i am considering this as an issue is when i check the status of my table on which i am running INSERT statement, they are locked.
    Below is sample peusdocode of my task.
    For each file
    begin
    open oracle connection
    read data from file using sql loader;
    insert into my tables based on select; ///// here after reading 1 or 2 files oracle hangs
    close oracle connection;
    end

  • How do I stop the Menu audio from restarting with each selection?

    I have modified an Encore (CS4) menu in Photoshop so that it has 10 animating video thumbnail buttons, a 1:30 music file, subpictures on the thumbnails to highlight what is selected, and I routed the buttons to go in the order I wanted.  When I initially made the menu I didn't have subpictures or customized routing.  The music played continuously and each of the thumbnails animated.  Now that I have added to it, every time a different thumbnail is selected, the music starts over from the beginning, like it is tied to the selections, and I don't want that.  Have I missed selecting or deselecting something somewhere?  Everything else is fine.  The thumbnails still animate, the subpictures highlight in a different color, the routing is the way I wanted...just the audio file is holding me up.  Thanks.

    Are you using Auto Activate on any of the buttons?
    Is this a preview-only issue or does it appear on a burned disc?
    Try deleting the menu audio, saving your project, closing and re-opening
    En, then adding the audio to the menu again.  Any change?
    -Jeff

  • CS2 - Can't select points with direct selection tool

    Noramlly in CS5 and any other version of Photoshop or Illustrator that I know of, if you click a point in an object, it will show the handles for transforming the line. As I'm creating something today, it works for a while and then stops. Yesterday I had the same problem. I drew a few things and then suddenly, the Direct Select Tool is not showing any transform handles.
    I can get them to show if I can click and drag a box over the point, but this is slow and doesn't work well for layered art. I already tried resetting my illustrator preferences. Any other ideas?
    EDIT: Also, in CS5 there's a simple icon that you can click to convert the currently selected point from a curved point to an angled point. Is there not such a thing in CS2?
    I ask because at work I only have access to CS2.

    Gregor,
    Sometimes Illy gets distracted an confused when others start intruding. The usual suspects are listen in Item 7 in Other options .
    You did get rid of the preferences while Illy was alseep, no?

  • HELP!!  Unable to select objects with the selection tool

    Not sure if I accidently hit a key that I wasn't supposed to, but the selection tool stopped working the way it should. When I put the cursor on top of an object and click the mouse button, nothing happens.  Also ctrl A doesn't work.  Any suggestions?  I've shut down and restarted and that didn't work.

    grooveslapp,
    To keep previously selected objects selected, ShiftClick the following ones.
    If Ctrl+A does not select anything, and if no selection appears in the Info palette (select Objects in the flyout), something else is the matter, and it may be time to Move the folder

Maybe you are looking for

  • URGENT: Mail Issues

    All, I have the following issues in the Coldfusion Server. In the mail log I'm seeing the following issues logged. Where all the emails are valid emails. I just made them xxxx, yyyy inorder to protect their identity. Invalid Addresses; nested excepti

  • Where are the SyncBOs stored in the server.

    Hi, I have created some SyncBOs in the SAP system. Now I want to take back up of them.. Can I know where are they stored in the server and how can I go about having there backup? Waiting for some quick answers Ankur

  • No updates on iPhoto and iMovie, says they were purchased on another account; I only have the one.

    I just received my new MacBook Pro 13, and while updating software and installing Office and Acrobat, found that I could not update iMove or iPhoto, because they were purchased under a different account.  I've only ever had one apple ID, and iMovie a

  • Missing idocs from SAP to webmethod

    Hi Experts, We have many Interfaces from SAP to AS/400 System Via Webmethods . There are many Idocs are missing in webmethods Even if the Outbound Idocs is showing As Green with Status 03 in SAP. So Could You Please give some Suggestion where could b

  • URGENT:mods.h missing in Tuxedo 11R while upgrading from Tuxedo6.5 to 11R

    In Tuxedo 6.5 there was a header file mods.h. I can't find this header file for Tuxedo 11R. Actually my code is using one function (change_atts()) of mods.h. I need to switch the same code for Tuxedo 11R in HP-UX 11.31 machine. Can someone help me wh