on ‎2017 Jul 13 8:37 PM
How are dynamic multi-select input controls created?
The goal of this piece of the report is to have a multi-select input control (such as the checkbox) drive whether or not a few measures are included in a calculation.
I did check this document here: https://blogs.sap.com/2015/12/03/dimensions-as-input-control-dynamic-control/
However, that is focused on a single-select input control.
Let me state the goal using a fictionalized example.
If I have three 4 choices of gum flavors: Cinnamon, Spearmint, Peppermint, and Watermelon, I want the user to select which flavors will be accounted for in a calculation. Let's say it is for # of packs sold per week. If Cinnamon and Spearmint are selected, then just those two numbers will go into the calculation. We do not have an object that has these flavors listed in it.
1. Creating a string dimension to base the input control after:

*I am not sure if this first input control is correct, but only using one string value, such as ="Cinnamon" resulted in the next step not allowing for selecting a multi-select input control.
2. Set up the multi-select input control:

3. Created a custom list of values (List of Values ...)

The result of the input control:

4. Next, I created a dimension to capture the user's input, using ReportFilter([ObjectName])

5. Adding a table and selecting a couple of flavors results in no values being displayed:

6. Created a formula to test if it would return a 1 if cinnamon is selected. The result here is 0:

So at this point I am stuck, as I do not know how to utilize what the user has selected.
Thanks in advance for your ideas.
Version: BI Platform 4.1 Support Pack 5
Request clarification before answering.
hi,
if you select cinnamon and spearmint you will have to be able to see: "cinnamon;spearmint" like this concatenated in one string.
to show the values, do not use reportiflier() formula, just use your variable in the table .. other aspect can you check if the input control is set to whole document?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jonathan,
You can't use a Multi value select input control with Custom LOVs, I've BO 4.2 SP2, and the option to create Multi value select input control is grayed out as soon as I begin creating an input control on a dummy variable which I created to capture the value selected.
So, the workaround may be to have Custom LOVs as below, and you'll have to calculate by using substr to find which values were selected (as an LOV will have multiple values in an LOV)
Custom LOVs:
Cinnamon, Spearmint
Cinnamon, Spearmint, Peppermint
Cinnamon, Spearmint, Peppermint, Watermelon
Spearmint, Peppermint, Watermelon
Peppermint, Watermelon
and so on, this looks ugly though!!
So, a better solution would be to bring these values from another data provide like excel, that way have a dim object for them, and when we create an Input Control on that object, we can select multiple values.
Thanks,
Mahboob Mohammed
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.