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

help required in solving a query

Started by Desperado, 10 Apr 2006 05:20:04 AM

Previous topic - Next topic

Desperado

can anyone provide me with the query for last full month(ie, based on the current date .. last full month is 1-Mar-2006 to 31- Mar -2006) and year to date (1- Jan -2006 to current date) ???

Desperado

Ok Guys,
Got it done.. thanks for your patience  ;D

mrcool


Desperado

We have some javascript also included in the query. But i can give you the query implemented for LFM and YTD

LFM:
(?All Dates?='1' and (month([01803V01].[Terminations].[Exit Date])=month(_add_months(current_date,-1))) and
(year([01803V01].[Terminations].[Exit Date])= year(_add_months(current_date,-1))))
OR
YTD:
(?All Dates?='2' and (year([01803V01].[Terminations].[Exit Date])= year(current_date)) and ([01803V01].[Terminations].[Exit Date]<= current_date)  )
OR
OTHER:
(?All Dates?='0' and
([01803V01].[Terminations].[Exit Date] >= ?Par_Dte_FromDt? and [01803V01].[Terminations].[Exit Date] <= ?Par_Dte_ToDt?))

mrcool


bmccusker

I am interested in what query you used to get last month.


Thanks in advance