on 06-05-2011 1:42 PM
Hi
I have a webi query where I need to provide a date range as selection. But the from date will be based on number of days that user will provide during query execution. For e.g. user will give no of days as 10 so the date range need to be created as (system date -10) to (system date).
I am not sure how to provide the option for user to input no of days and then calculate the date range.
Could you please help me here.
Regards,
Amit
Amit.
it can be done but by creating multiple objects.
create Obj1: @prompt("Enter Number Of days",N,Mono,etc..) and capture the number of days in it.
Create your second object infact a filter object: Obj2: Sysdate
Third Object(filter) Obj3: (Sysdate-(@select(class\Obj1)))
give the between condition in webi using these two objects
between Obj2 and Obj3
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Create a predefined condition along the lines of:
calendar_dim.calendar_date between trunc(sysdate)-@Prompt('Please enter number of days to go back',N,,mono) and trunc(sysdate)
You can then simply include this in any report and it will filter the date according to the number you enter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.