Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculating number records created in year to date by month 1

Status
Not open for further replies.

IanGurman

Technical User
Oct 8, 2009
2
GB
I am trying to create a filter that will return dates in any given year since the first of the year. I do not want to use a prompt as the report is to be scheduled. As the schedule needs to run next year as well as this I want the filter to work for the current year whatever the year. Can anyone help with a Cognos 8 function or syntax to acheive this
 
Code:
extract(year,[some_date]) = extract(year,current_date)

where some_date references the date you use from either dimension or fact.

Ties Blom

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top