cancel
Showing results for 
Search instead for 
Did you mean: 

How to restrict last 12 months from current date

Former Member
0 Kudos

Hi,

SAP BO 4.2  Service pack 2.

Tool: Information design tool

Back end : Oracle 10g

i have date object i need to restrict data in that object for last 12 months from current date. it should be sequence order.

i want like below format:

Aug-15Sep-15Oct-15Nov-15Dec-15Jan-16Feb-16Mar-16Apr-16May-16Jun-16Jul-16Aug-16

please reply anyone have idea.

Note: i want create above requirement object in Information design tool not in webi

Accepted Solutions (0)

Answers (1)

Answers (1)

amitrathi239
Active Contributor
0 Kudos

try this.Create predefined filter in the universe.

Table.Col1  BETWEEN  add_months(sysdate,-12) and sysdate

Former Member
0 Kudos

Hi Amit,

i used below formula data is coming fine but sequence is not coming properly:

@Select(Custom Dimensions\DateCalculations\Day Wid Date)>=(@Select(Custom Dimensions\DateCalculations\Last12months startdate)-1) and @Select(Custom Dimensions\DateCalculations\Day Wid Date)<=@Select(Custom Dimensions\DateCalculations\Current date)

i am able to get last 12 months like as shown in above post but it is not coming is sequence  and i need date object with 12 months

below is the sequence i am getting

NOV-15

APR-16

SEP-15

DEC-15

FEB-16

AUG-15

JUL-16

MAR-16

AUG-16

JUN-16

OCT-15

JAN-16

MAY-16

Thanks,