Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 15 Oracle Analytics Lounge
- 208 Oracle Analytics News
- 41 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 76 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Action links - passing presentation variable using Navigate to Web Page
Answers
-
"CC - Business Unit"."Business Unit - OpCo" IN case when @{PV_SELECTEDOPCO} = 'WhateverTheCombinationIsForAllValues' then "CC - Business Unit"."Business Unit - OpCo"
else @{PV_SELECTEDOPCO}['@']{A} end
0 -
Syntax was not fully correct.
Below is corrected:
"CC - Business Unit"."Business Unit - OpCo" IN (CASE '@{PV_SELECTEDOPCO}'
WHEN '(All Column Values)' THEN '(A,B,C,D)'
ELSE (@{PV_SELECTEDOPCO}['@']{A})
END)
Anyway, if we select All Column Values in the prompt, then it is not filtered at all (not added to the SQL). Not sure if it can be used in CASE statement.
0 -
1. You need to ascertain the explicit value that is being passed for 'All Values', as I said it generates a strange but consistent string combination which you need to use in place of 'All Column Values', as previously advised this can be found by running the analysis and then viewing the physical sql generated via the log file
2. You have converted the filter to SQL, yes?
0 -
2. Yes, it is SQL filter.
1. I have checked in other reports SQL from Monitor. If in prompt you will select All Column Values for "CC - Business Unit"."Business Unit - OpCo", dimension is not included in SQL send to database, which means that it is not filtered and is asking for all entries.
Based on That I do not see an option to use it in CASE.
0 -
You can use your default value in the afore mentioned case logic then.
This has changed from other versions.
0 -
What do you mean?
0 -
Sorry, I may be misunderstanding you.
Are you saying that if the dashboard filter selection is 'All Values' then the entire filter is removed from the analysis when it runs?
I have not seen this before, are you certain that that is the case?
What I was suggesting was that your default (value in the second {} ) would be applied if the prompt was unpopulated, so you should use the value that you are defaulting in the case statement to give the column = column result.
0 -
Hi,
Not removed but not filtering the results, asking for all entries.
Still not sure if I understand your suggestion. How would you like to modify CASE? I do not see option to check Null/Not Null in case.
0 -
Hi,
if your result is null, and this does not cause your default member to be selected then you can use the IfNull function in your case statement to handle it.
0 -
Either; -
"CC - Business Unit"."Business Unit - OpCo" IN case when @{PV_SELECTEDOPCO} is null then "CC - Business Unit"."Business Unit - OpCo"
when @{PV_SELECTEDOPCO} = 'WhateverTheCombinationIsForAllValues' then "CC - Business Unit"."Business Unit - OpCo"
else @{PV_SELECTEDOPCO}['@']{A} end
Or
"CC - Business Unit"."Business Unit - OpCo" IN case when IfNull(@{PV_SELECTEDOPCO}, "CC - Business Unit"."Business Unit - OpCo") = "CC - Business Unit"."Business Unit - OpCo"
else @{PV_SELECTEDOPCO}['@']{A} end
0