system
#1
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)
system
#2
I use:
add_months(trunc(sysdate, ‘YYYY’),-12)
to return 1st Jan last year
JoWilson (BOB member since 2006-12-06)
system
#3
[Moderator Note: Moved from WebIntelligence XI to Semantic Layer / Universe Designer]
And welcome to B:bob:B!
Marek Chladny (BOB member since 2003-11-27)
system
#4
Thank you. It works.
Coolwater (BOB member since 2011-03-30)
system
#5
This can help you in future:
Marek Chladny (BOB member since 2003-11-27)