Automatic filter for current month and year in Cognos Report Studio ver 10 -


i have query item filters records date column in format 'yyyymm'. of have hard coded value [datecol] = '201406' in detail filters current month , year records. want dynamically have value change. next month should filter records '201407'. how achieve this? tried dragging [datecol] in detail filters:

[datecol] = extract(year, current_date) + extract(month, current_date) 

but returned error:

uda-sql-0460 operation "equal" invalid following combination of data types: character , integer 

please guide

another formula

[datecol] = cast(extract(year, current_date) * 100 + extract(month, current_date) varchar(6)) 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -