on 02-22-2021 4:19 PM
Standard procedure for the data analysts at our company is to include a page of report/query definitions, so the Business Users can see how the data pulled. For any filters in use (via Input Control), the definitions include a list of the data that has NOT been filtered out. In the case where there are MANY objects, the size of the list gets obnoxious and is not very helpful. Can anyone suggest a variable that will list the items that have been EXCLUDED, rather than listing the items that have been INCLUDED? I'm fairly new to BO, so any assistance would be really appreciated!
(There's no out-of-box solution), but here's a trick on how to solve it:
Define the following variables:
v_ListAllCity: =If Pos(ReportFilterSummary(); "City") = 0 Then "All" Else NoFilter(ReportFilter([City]); All)
PosSelected: =Pos([v_ListAllCity]; [City])
v_ListUnselected: =Substr([v_ListAllCity]; 0; [PosSelected]-2) + Substr([v_ListAllCity]; [PosSelected]+Length([City]); Length([v_ListAllCity]))
Note: [City] in your case is [Subtype]
...
Hope this gives you some idea to meet your needs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh, ok. Well, thanks for taking the time to look into it. I appreciate it!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is sooooo close to what I was looking for (THANK YOU!). In my case, though, there will likely be several values selected for inclusion, not just a single value (as in "Boston" in your example above). And the resulting list of EXCLUDED items will only appear once in the entire document, on the Definitions & Filter report. After setting up the variables that you suggested above and pulling the object into a report, I got a MULTIVALUE error. See attached image for a sample of the Definitions & Filter report:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As I said, there is no out-of-box solution, and my suggested trick works fine with input controls with only one item selected.
There is no solution for the multiple selected input control (since the split function is not available in BO).
Another solution is to use Javascript in your report to exclude the selected item (using the split function).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.