COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: dougp on 10 Jul 2024 04:59:13 PM

Title: lead and lag
Post by: dougp on 10 Jul 2024 04:59:13 PM
Cognos Analytics includes many windowing aggregation functions - minimum (MIN), maximum (MAX), total (SUM), etc.  Have Lead and Lag been included yet?  I'm using 11.2.4 and still not finding these.
Title: Re: lead and lag
Post by: cognostechie on 11 Jul 2024 12:26:55 AM
You can write your own SQL and use Lead ( <column name> ,1,0 ) over ( order by <column name> ) ;)
Title: Re: lead and lag
Post by: dougp on 12 Jul 2024 11:59:03 AM
I know.  But I was hoping to avoid custom, raw SQL.