If you are using all choices option in dashboard prompts and presentation variable, there is a way to detect this if you write a filter manualy (using convert filter to SQL option in Answers).
Prompt:
Report:
Detecting all choices for heading:
case when LENGTH('@{pv_char}')>0 then concat('Calendar month is ', '@{pv_char}') else 'All choices' end
or you can write it like this:
case when LENGTH('@{pv_char}') is null then 'All choices' else concat('Calendar year is ', '@{pv_char}') end
Detecting all choices in filter:
TIMES.CALENDAR_MONTH_DESC = ifnull('@{pv_char}',' ')
or
ifnull('@{pv_char}',' ')=' '
Put a heading in narrative view below tittle.
Test (all choices):
NQQuery.log:
Test (selected value):
NQQuery.log:
The same is if you are using number column in dashboard prompt and variable pv_number, just replace pv_char with pv_number and CALENDAR_MONTH_DESC with CALENDAR_YEAR for example.
Sql2Odi - best practices for auto-generating your ETL content
-
I blogged a while ago about our Sql2Odi tool that converts SELECT (and WITH
as well) statements into Oracle ODI Mappings. (Blog posts 1, 2 and 3.)
Now th...
2 years ago
4 comments:
Very nice. Thanks for this posting.
Good Post, even I had used it like this in one of my projects where I had to use variables.
Thanks a lot! Works like that!
Hi,
We are using session variable :
NQ_SESSION.Customer
And in dashboard page; customer field is prompted.
How can implement all choices with session variable and customer is prompted filter?
Post a Comment