Pages

Pages - Menu

Thursday, August 26, 2010

Using Presentation Variable in timestampadd function

1) Create a prompt day week and declare presentation variable



To show 30days back booked quantity the date selected in prompts

In fx use

FILTER("Facts Other"."Booked Qty" USING (Time."Day Date"=TIMESTAMPADD(SQL_TSI_DAY, -30, DATE '@{day}')))




You can apply the same formula for 1....n days

For month level use
FILTER("Facts Other"."Booked Qty" USING (Time."Day Date"=TIMESTAMPADD(SQL_TSI_MONTH, -3, DATE '@{month}')))

where -3= three months back



 

2 comments:

  1. Thanks Saichand.

    Reposting the same...

    ReplyDelete
    Replies
    1. Hi Sai,
      If i want to disply the data lin the report like as below:
      days 0-7 100
      8-15 200
      16-30 300
      Here 0 to 7, 8 to15 ,16 to 30 are the days in a month
      Please help me on this.
      Regards,
      Chaitanya

      Delete

.