If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Report Studio - How to calculate [Year To Date Last Year]

Started by sanchoniathon, 15 Apr 2014 01:07:31 PM

Previous topic - Next topic

sanchoniathon


Hi,

I can't seem to find the correct way of calculating (YEAR TO DATE of last year).

Anyone can suggest something ?

Thanks !


cognostechie

Try this:

extract(year,[Database Layer].[Date_Dim].[Calendar_Date]    ) = extract(year, current_date) - 1 and
[Database Layer].[Date_Dim].[Calendar_Date]   <= _add_months (  current_date , -12)

sanchoniathon

Sorry for the delay but THANK you for your post.

:)