Professional Documents
Culture Documents
09BR UsingAggregates
09BR UsingAggregates
Using Aggregates
Sales (fact) aggregated to Sales Rep, Product Type, and Month levels
1. Import tables.
2. Create joins.
3. Create fact logical table source and mappings.
4. Specify fact aggregation content.
5. Specify content for the fact detail source.
6. Create dimension logical table source and mappings.
7. Specify dimension aggregation content.
8. Specify content for the dimension detail source.
9. Test results for levels stored in aggregates.
10. Test results for data above or below levels.
Aggregate Aggregate
fact table dimension tables
Set the levels of the fact detail source to the lowest in the
hierarchies.
Run queries and inspect the query log to ensure that the
aggregate tables are accessed as expected.
Aggregate
tables used for Detail tables used
requests at or for requests
above the level below the level
Fact
aggregate
Use wizard to
build script to
generate Script generates
aggregate tables. physical tables,
repository objects,
and mappings.
Dimension
aggregates
Select measures.
Confirmation of script
creation and location
Script
Navigate to the directory where the file was saved and verify
that the script was created as expected.
Create and run a batch file with the following format to drive the
aggregate creation process:
Fact aggregate
Dimension aggregates
Dimension aggregate
Fact aggregate
• Check the log and verify that the aggregate tables are
accessed as expected: