COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: safafin on 08 Nov 2016 08:21:07 AM

Title: How to make the first and last value into report studio
Post by: safafin on 08 Nov 2016 08:21:07 AM
Hi Guys,

My example data :





Product1Product2
ACOMM5000
BCOMM3500
CCOMM


I would like to make a OVER() with LAST_VALUE on Product1 whether the next value doesn't exist and FIRST_VALUE on Product2 whether the first element doesn't exist.
And that directly into Report Studio or Framework.

My would like data :





Product1Product2
ACOMM50003500
BCOMM50003500
CCOMM50003500

P.S : The void values don't exist into database.

Thanks for your help.