BusinessObjects Board

"start of last year " formula

hi, I am trying to build date formula in Designer to schedule report.

I have “start of this month” (trunc(sysdate,‘MM’))and “start of this year” (trunc(sysdate,‘YYYY’)), how do I get start of last year?

I have tried
add_months(@Select(Dates for Scheduling\Start of this year), -12)

but I get error message say Missing right parenthesis.

Can anyone help?

Thanks a lot.


Coolwater (BOB member since 2011-03-30)

I use:
add_months(trunc(sysdate, ‘YYYY’),-12)
to return 1st Jan last year


JoWilson :uk: (BOB member since 2006-12-06)

[Moderator Note: Moved from WebIntelligence XI to Semantic Layer / Universe Designer]

And welcome to B:bob:B!


Marek Chladny :slovakia: (BOB member since 2003-11-27)

Thank you. It works. :lol:


Coolwater (BOB member since 2011-03-30)

This can help you in future:


Marek Chladny :slovakia: (BOB member since 2003-11-27)