COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: cognos05 on 07 Apr 2021 09:05:56 AM

Title: Filter Question
Post by: cognos05 on 07 Apr 2021 09:05:56 AM
Hi Experts,

I need to have a query item in olap ,


Give me all the territories whose any o the children have a sale of greater than 5000
                     Sale
Terrritory1    10000
Account1        4000
Account2       6000

Territory2      6000
Account3     3000
Account4     3000

so this should return me only territory1



Filter( Territoy Level, how to check for each of its childen sale >5000 )

Filter(Territory Level, tuple(sales)>5000) will only heck for the territory ,but i need to check for childrens any one of sale greate than 5000 .

Thanks,
Title: Re: Filter Question
Post by: cognos05 on 08 Apr 2021 10:09:38 PM
FIlter (Level, Basedonitschidrensale)

SO on my filter condition , i can mostly use only tuple function which will allow only one member,so if i have to check the sale of each children of the level ,is there any other olap function that will allow iteration .

Thanks,
Title: Re: Filter Question
Post by: oscarca on 13 Apr 2021 01:48:41 AM
I would write something like this: filter(descendants([Territory],1),[Sale] > 5000)