COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Report Studio => Topic started by: gatorfe on 09 Oct 2007 02:45:18 PM

Title: Combining two extract formulas
Post by: gatorfe on 09 Oct 2007 02:45:18 PM
I have a report that has two extract formulas.  The first one is extract(MONTH,[Invoice Date]) and the second one is extract(YEAR,[Ship Date]).  They work great.  What I want to do now is combine them so I get the result of 10/2007.  Any suggestions on what the syntax should be to accomplish this?  Thanks in advance for any suggestions.
Title: Re: Combining two extract formulas
Post by: MFGF on 10 Oct 2007 02:52:23 AM
Hi,

If you just need this value displaying (rather than for filtering or use in further calculations etc), then you don't need to combine them.  Unlock your report structure and drag your month calculation, a text item containing '/' and your year calculation all into the same cell.

Regards,

MF.