Cognos how to use the prompt dates in queries
Posted on 2008-06-16
I have a report that uses date prompts to select data from contracts. (cognos8)
Basically you enter a start date and an end date and I have created queries that select data between those dates.
What I need to do though is count the number of emplyees on a contract for each month between the dates entered. for example if I enter the start prompt as 01/12/07 and the end prompt as 31/12/08 I want the count of employees from 01/12/07 to 31/12/07 and then the 01/01/08 to the 31/01/08 and then the same for Feb, March, April etc all the way to Dec 08 (end prompt date) and then add them all together at the end! Any ideas welcome!!