Categories
- All Categories
- Oracle Analytics Learning Hub
- 19 Oracle Analytics Sharing Center
- 17 Oracle Analytics Lounge
- 233 Oracle Analytics News
- 45 Oracle Analytics Videos
- 15.9K Oracle Analytics Forums
- 6.2K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 87 Oracle Analytics Trainings
- 15 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Oracle Analytics Cloud - OAPublisher Parameter Issue on Snowflake Data Source
We have a data model off of a Snowflake data source that is working without issue except in one particular case: selecting all parameter values.
The Data Model uses our standard code method - (FIELD IN (:PARAMETER_NAME) OR 'All' IN (:PARAMETER_NAME))
However when we run the report and select All, nothing returns.
If we manually select the entire LOV, it works.
Any ideas?
Best Answer
-
With the assistance of Tracey who worked on my SR, the following solution for this issue has been identified:
( COLUMNNAME IN (:PARAMETER) OR (CASE WHEN COALESCE(:PARAMETER, NULL) IS NULL THEN 1 END) = 1 )
0
Answers
-
No experience with Snowflake but see if below works for you:
- Add an
'All'option with a null or special value, like '@ALL @' .
Display Value
Return Value
All
@ALL @
WHERE (:PARAMETER_NAME = '@ALL @' OR FIELD IN (:PARAMETER_NAME))
This makes it explicit: when @ALL @ is selected , skip filtering.I think this pattern is reliable, when data source doesn't gracefully handle ambiguous
INlogic with'All'.0 - Add an
-
Please check with Oracle Support by logging a SR, Oracle team have more knowledge base and might have seen this with other Users. Otherwise, log an Idea in Idea Lab. Hope it helps!
0 -
SR has been submitted and I will share the solution here once established for future reference and user need.
1
