cancel
Showing results for 
Search instead for 
Did you mean: 

How to restrict webi report data by default to Last 7 day

0 Kudos

Hi ,

I would like to restrict by default to last seven days data based on created date feild in webi report . we don’t have universe access. webi report by default to certain period (max(created date) to last 7 days etc) .

Accepted Solutions (0)

Answers (2)

Answers (2)

amitrathi239
Active Contributor
0 Kudos

create Show/Hide variable as:

=if([CreatedDate] between (RelativeDate(Max([CreatedDate]) in report;-7);Max([CreatedDate]) in report ) then "Show" else "Hide"

Filter on Show/Hide variable where equal to Show.

0 Kudos

HI Amit.

Thanks for giving for response. But in my scenario last seven days only restrict like 05/02/2018 08:10:55 PM to 04/25/2018 12:00:00 AM

In above function i used the data showing is 05/02/2018 08:10:55 PM to 04/24/2018 08:10:55 PM

please suggest me any alternate solution include timestamp control also

HI Amit,

Thanks! i got the solutions

jyothirmayee_s
Active Contributor
0 Kudos

Hi,

Try this:

=RelativeDate(Max([CreatedDate]);-7)

Thanks,

Jothi

0 Kudos

Hi Jothi,

I tried this but its not working

jyothirmayee_s
Active Contributor
0 Kudos

Hi,

What is your [CreateDate] format?. does it show timestamp along with date?.

if not, create a variable to show the timestamp;

Formatdate([CreateDate];hhmm)

and use Amit's formula or my formula.

Thanks,

Jothi

0 Kudos

Hi Jyoti,

Thanks for giving response, i used Amit formula and got the solution.