COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: en1 on 06 Jul 2016 04:20:26 PM

Title: count distinct aggregation order
Post by: en1 on 06 Jul 2016 04:20:26 PM
Hi!
In framework i made fact as count(distinct ID)
in Report Studio i need count this with filter set days [2016-01-01] [2016-01-02] [2016-01-03]
cognos calculate sum of count distinct each day but i need apply this filter and after that calculate count distinct
what is wrong?


Title: Re: count distinct aggregation order
Post by: en1 on 06 Jul 2016 04:25:40 PM
it works OK if i use detail filer :(
Title: Re: count distinct aggregation order
Post by: bdbits on 07 Jul 2016 09:06:38 AM
Not a lot of information to go on here...
Is your FM model DMR?
Is the filter against a time dimension?
How did you create the non-detail filter in your report?
Title: Re: count distinct aggregation order
Post by: en1 on 07 Jul 2016 10:43:16 AM
DMR model, measure as count(distinct ID)
when i use slicer in RS with  set days [2016-01-01] [2016-01-02] [2016-01-03]
measure calculates as sum of count distinct for each day
Title: Re: count distinct aggregation order
Post by: en1 on 07 Jul 2016 11:36:13 AM
Thank you all for help!!
I solve this probem ;D
Title: Re: count distinct aggregation order
Post by: bdbits on 07 Jul 2016 01:57:54 PM
For the sake of those reading this in the future, it would be good form to provide details on your solution.
Title: Re: count distinct aggregation order
Post by: en1 on 08 Jul 2016 02:54:45 AM
the problem is that i use regular aggregation SUM and expression count(distinct id) in measure
instead i use ID in expression and regular aggregation count distinct and this works OK
Title: Re: count distinct aggregation order
Post by: en1 on 08 Jul 2016 03:00:46 AM
and in Report studio in expresion like Total([*count distinct measure*] within set) need use
Aggregate instead Total : Aggregate([*count distinct measure*] within set)