If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

what is the main diffrence between aggregation and rollup aggregation?

Started by bvk.cognoise, 25 May 2011 06:59:20 AM

Previous topic - Next topic

bvk.cognoise

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
Regards
BVK

technomorph

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



blom0344

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..

ricky_ru