on 11-17-2017 11:40 AM
Hi Guru
Is there a way to create a dimension or other date range filter allowing me to return results based on a rolling 12 month period?
For example, I’m returning the prior 12 months and current month-to-date usage, e.g. sep 2016-sep 2017. However, I’d like to change this so that I return prior 11 months (eg dec2016 to Oct 2017) and current month-to-date?
follow these steps if you are on Bi 4.1 SP04.
create variable
V 12 month back date=ToDate(FormatDate(CurrentDate();"dd/MM")+"/"+FormatNumber((Year(CurrentDate())-1);"###");"dd/MM/yyyy")
create another variable.
Show/Hide=if([your date object] between ([V 12 month back date];currentdate())) then "Show" else "Hide"
Apply filter on table where Show/Hide variable where equal to Show to restrict data for 12 months
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks amit.kumar71
is it possible to achieve rolling 12 months data based on user response in webi .
as per my understanding we cannot create User response at webi level .
please correct me if i am wrong .
Thanks,
Anuraag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the reply
we need to pull continuous roll of the prior 11 months and current mtd. So if today is Nov 15 ,2017 and I run a report, I want to return activity from Dec 1, 2016
I thought of using =RelativeDate(CurrentDate();-365) but it may be a issue with leap year .
If user selects 20 nov 2017 we should get a data from 5 dec 2016 to 20th nov 2017 and current MTD
let say your report is running on current date.
create variable V 12 month back date=RelativeDate(CurrentDate();-12;MonthPeriod)
create another variable.
Show/Hide=if([your date object] between ([V 12 month back date];currentdate())) then "Show" else "Hide"
Apply filter on table where Show/Hide variable where equal to Show to restrict data for 12 months
check attached link.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
10 | |
9 | |
7 | |
6 | |
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.