COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Esperanza on 21 Mar 2013 10:34:44 AM

Title: Max date on dimentionnal data
Post by: Esperanza on 21 Mar 2013 10:34:44 AM
Hi cognos Experts!


I have a list of item, date and qty.
I would like a list of distinct item
and the max date corresponding to each item.
Easy to do on relational data with function 'maximum',
Not so on dimentionnal data.
Do you have an idea ?
thank you in advance.

here what i tried :

tail(item(

filter([Day],aggregate ([Purch - Qty Received] within set [Product Item]) is not null and aggregate ([Purch - Qty Received] within set [Branch (Product Item)]) <>0)

,0))
Title: Re: Max date on dimentionnal data
Post by: bi4u2 on 13 Mar 2014 11:54:47 AM
Did you try using 1 as your default index expression rather than 0?
Title: Re: Max date on dimentionnal data
Post by: Lynn on 13 Mar 2014 02:41:28 PM
What does your time hierarchy look like? The closingPeriod function might do what you need.