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

Count a data item occurence within a date range

Started by dwong11229, 28 Sep 2018 07:54:15 PM

Previous topic - Next topic

dwong11229

Hi

How to count data item within a date range

I have NameId data item and a Creation date data item

I want to count the number of NameID that is between 2018 and 2017

So lets say NameID appeared in date range between 2017 and 2018 have three NameID
The end result will be 3.


Thanks

Lynn

Quote from: dwong11229 on 28 Sep 2018 07:54:15 PM
Hi

How to count data item within a date range

I have NameId data item and a Creation date data item

I want to count the number of NameID that is between 2018 and 2017

So lets say NameID appeared in date range between 2017 and 2018 have three NameID
The end result will be 3.


Thanks

Assuming your package is relational, try something like this:


count ( case when [Creation date] between 2017-01-01 and 2018-12-31 then [NameID] else null )