COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: avuong6 on 28 Sep 2015 01:22:02 PM

Title: tuple with parallelperiod
Post by: avuong6 on 28 Sep 2015 01:22:02 PM
Any idea on how to make this work?

tuple ( parallelPeriod ([Sales].[Sales Periods].[By Period].[Year],1,[P_Period3]),[ACTUAL],[Column1 Rate Type] )?

It does not like the parallelPeriod function in the tuple. no syntax error, but returns zero.

This is ok...
tuple ( [P_Period3],[ACTUAL],[Column1 Rate Type] )


Title: Re: tuple with parallelperiod
Post by: Francis aka khayman on 28 Sep 2015 10:36:14 PM
you'll need tell it firmly that even if we do not like something but if it is our job, it should do it. we are all professionals here ....  ;D just kidding!!!!

what is the value of P_Period3 that works? can you try other functions that is supposed to return the expected value like lag. use constant parameters if you have to just to see if it works.

example instead of:

parallelPeriod ([Year],1,[Jan 2015])
try
lag ([Jan 2015],12)