Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculation Definiftion In Cognos Impromptu

Status
Not open for further replies.

AndrewKent

Programmer
Jul 25, 2007
9
GB
Hi there,

Can anyone tell me the syntax I need to use to achieve the following...

I wish to count all results in a data column that contain a certain text string (in my case it's the code "CTF" or "GLCP").

...can anyone help?

Andy
 
Andy
Use the TOTAL function (in Summaries) and associate it to the report.
Construct a data item like
Code:
total( if ( DATA_ITEM contains 'CTF' or DATA_ITEM contains 'GLCP' ) then ( 1 ) else ( 0 ) )
and make the association to the report (drop-down selection at the bottom of the 'Data Definition' window)

soi la, soi carré
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top