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

MTD last year

Started by dollipi, 28 Apr 2017 07:02:06 AM

Previous topic - Next topic

dollipi

Hello,

Need MTD from last year.

Have this for MTD:

Data Item named [Invoice extract]:
extract(month;cast([XDATEX];date))

+ 2x promt:

1)

[Invoice extract] = (extract(month;current_date))

2)

[XDATEX] between 2017-01-01 and 2017-12-31


How I can get MTD for last year in one query?

Thanks,

dollipi

BigChris

[YourDateField] between _make_timestamp(year(current_date)-1,month(current_date),1) and _make_timestamp(year(current_date)-1, month(current_date),day(current_date)

...or something like that anyway  :D I haven't got cognos on this machine so I can't check for sure.

dollipi

#2
it doesn't work :(

BigChris


dollipi