Hi All,
We are using IBM Cognos Analytics with Watson (11.2.0).
We have this date prompt which is used to filter the data. At the same time we have this requirement to get the date selected, minus 1 months from it and add some strings on the table header (basically get the months before the date selected and add strings in between). Can refer to attachment below for reference.
I know it's a bit long but here is how I do to get this value from the report expression:
'As at ' + date2string (timestamp2date(_add_months(date2timestamp(string2date(ParamValue('date_filter'))),-1))) + ' (Official)'
Instead of having the whole date, is there a way to get only Months and Year ( Mar 2023) ?
Your help is deeply appreciated.
Regards,
Aiman
------------------------------
Mohamad Aiman Arif Mohamat Saat
------------------------------