COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: bvk.cognoise on 25 May 2011 06:59:20 AM

Title: what is the main diffrence between aggregation and rollup aggregation?
Post by: bvk.cognoise on 25 May 2011 06:59:20 AM
Hi,

can you please give me the main difference between aggregation and rollup aggregation?please dont give definition.can you please explain it with best example clearly?


thanks
bvk
Title: Re: what is the main diffrence between aggregation and rollup aggregation?
Post by: technomorph on 27 May 2011 05:33:04 AM
Detail Rows - without auto group and summarised applied:


MonthProductValue
1A100
1A100
1B50
2C200
3B50
3B50
4D75

Detail Rows  - with auto group and summarised applied plus the Total  Aggregate function applied to the Value column:


MonthProductValue
1A200
1B50
2C200
3B100
4D75

Detail Rows  - with auto group and summarised applied plus the Maximum Aggregate function applied to the Value column:


MonthProductValue
1A200
1B200
2C200
3B200
4D200

Detail Rows  - with auto group and summarised applied, plus the Total Aggregate function applied to the Value column, plus the Total Rollup Aggregate function applied to the Value column (assuming you have added an overall footer row):


MonthProductValue
1A200
1B50
2C200
3B100
4D75
Total625


Title: Re: what is the main diffrence between aggregation and rollup aggregation?
Post by: blom0344 on 30 May 2011 03:23:45 AM
Quote from: bvk.cognoise on 25 May 2011 06:59:20 AM
Hi,

can you please give me the main difference between aggregation and rollup aggregation?please dont give definition.can you please explain it with best example clearly?


thanks
bvk

aggregation is explicit; it leads to aggr. functions within the SQL generated. Rollup is implicit; the cognos server perform a totalization to the next highest level or a single value for the report / grouped value / section. The result of rollup's cannot be traced directly to the execution on the database, but is the result of a server action. Same goes for 'running' values.
SQL can only generate such values through complex nested non-equi joins. You will find them there , it is the Cognos server that produces them..
Title: Re: what is the main diffrence between aggregation and rollup aggregation?
Post by: ricky_ru on 26 May 2016 08:58:26 PM
Glad to know it. Thanks you guys.