Hi Jim,
The functions and documentation are integrated with the expression editor in the various tools (Reporting, Webbased Modeling and Framework Manager).
In report Studio you can tap on the functions tap and see all supported functions, with help and examples. (see attached screen shot).
If you'd like to do a webex, you can send me a message at henk.cazemier@ca.ibm.com
For your case you may want to do xdate between _first_of_month( bdate) and _last_of_month (bdate)
//Henk
------------------------------
HENK CAZEMIER
------------------------------
Original Message:
Sent: Fri April 09, 2021 05:02 PM
From: Jim Denton
Subject: Need help with writing a data item expression - hopefully can do a query
Something like that. Where can I find documentation on Cognos data item expressions? I need to find out for example if there is a Month function, to get the month of a date, and IN funcition, to get at the date check Visit_Date IN Month(Date).
------------------------------
Jim Denton
Original Message:
Sent: Fri April 09, 2021 03:56 PM
From: HENK CAZEMIER
Subject: Need help with writing a data item expression - hopefully can do a query
Hi Jim,
How about something like:
total ( case when Assesment = 'x' and ( adate between start_date and end_date or adate in (2021-04-08, 2021-04-07) )
then 1 end )
// Henk
------------------------------
HENK CAZEMIER
Original Message:
Sent: Fri April 09, 2021 03:45 PM
From: Jim Denton
Subject: Need help with writing a data item expression - hopefully can do a query
Hi all,
Need help with writing a data item expression - hopefully can write a query:
Count the number of Visit dates in Month where the Assessment is value X. Currently I have a counting function to get X based on the user entering a start and end date range for Visit, but now I need it to be based on a different Month in each row, so need something like
Total(Visit Dates with Assessment X) WHERE Visit_Date IN Month(Date_Column)
Jim
------------------------------
Jim Denton
------------------------------
#CognosAnalyticswithWatson