You are on page 1of 10

Aggregate Awareness! What is that?

(Part 2 of 2)
Finally after three projects and three months later, we are back to finish up our Aggregate Awareness series. In part 1 of our blog, we discussed the definition of aggregates and how to create summary tables. Today we are going to finish the process by showing how to implement these items into a SAP BusinessObjects Universe. There are going to be three key steps that will need to be done to get Aggregate Awareness up and running in your universe. The first will be to add the summary tables and any objects that are not already in your universe. Normally with Aggregate tables, you will not be linking them in to any of your other tables in the universe. They will just be hanging out by themselves on an island. FYI, when you have tables like this, your integrity check will throw errors so dont get too frustrated, it is to be expected.

SAP BusinessObjects Universe

Aggregate Awareness Function


The second step is to set up the Aggregate Awareness function in your objects. Before we get into the syntax, here is a quick overview of how the function works. The AA function takes multiple fields from multiple tables that have been inserted into your universe and determines which one to use depending on objects selected for a query by the end user. Although it sounds confusing it is actually pretty easy to implement. The first thing is to determine which objects should get the AA function. The answer to this is that any object that is in both your summary tables and your fact tables. In my example, I will be adding AA to the following objects:

Company City State Sales Cost Margin Quantity Sold

For Company, City, State, Margin, I will be adding AA for two fields while for Sales Cost and Quantity Sold I will need to add AA for 3 fields. So to get started, the syntax is @aggregate_aware([Field1], [Field2], ) and as a tip, when you populate the fields you want to use, you need to put the smallest / quickest responding table to the left while the biggest / slowest responding table will go to the right. Here are two examples from my universe. Company @Aggregate_Aware(Company Summary.Company,Fact Table.Company) Sales Cost @Aggregate_Aware(sum(Company Summary.Sales Cost),sum(Date Summary.Sales Cost),sum(Fact Table.Sales Cost))

Aggregate Awareness Syntax

Incompatible Objects
After you set up the AA function, the next and final step is to set up your incompatible objects. An incompatible object is an object that will not work for a specific table. So really what you are doing is setting up objects that if selected will eliminate tables that you cannot use from your query. To access the incompatible objects, go to Tools > Aggregate Navigation.

Aggregate Navigation Once there you will need to set up incompatible objects ( and filters) for each table that you have in your universe. In my example, I have set up incompatible objects for Company Summary as Year, Quarter, Month, Date, Order Date, Order Number and Customer Name. For my Date Summary table, I set up Order Date, Order Number, Customer Name, Company, City, State, and Margin. Once this is set up you should be able to export your universe and check out how it works in WebI.

AA in Action!
Now all that is left is to create a query and watch AA do its magic. In the pictures below, I have created 3 queries and show the SQL with each one. As I stated above, Aggregate Awareness will automatically determine which tables to pull data from depending on the objects you select in your query. This approach is a quick and easy way to gain performance in your reporting as well implementing a feature that the end user will appreciate but not even know that it is there.

Fact Table Query

Company Summary Query

Date Summary Query

Related Posts:
1. Aggregate Awareness! What is that? (Part 1 of 2) 2. Top 5 Misconceptions About Business Objects Universes 3. Crystal Dashboard Design (Xcelsius 2008) Tips and Tricks ep2: Automatically Closing Your Calendar Control 4. Creating a Pass through Prompt in Designer (Top N, Industry Standards, etc.) 5. Crystal Dashboard Design (Xcelsius 2008) Tips and Tricks ep1: Adding a Select All to your Selector Features, Tips & Tricks, Universe

This post was written by:

Mike Allison - who has written 24 posts on the Altek Solutions Business Intelligence Blog.

Contact the author

7 Responses to Aggregate Awareness! What is that? (Part 2 of 2)


1. Jude Says: Monday, September 20, 2010 at 5:36 am hi Mike, The information posted here is very useful for a BO developper. More credit goes you for the way in which you have presented it.

2. Raghvendra Says: Tuesday, September 28, 2010 at 4:15 am Hi Mike, Thank you for posting such a useful information.

3. KK Says: Friday, November 19, 2010 at 9:14 am Very useful presentation. Any newbee can understand the concept of AA. Thanks Mike, keep up the good work

4. ED Says: Tuesday, February 1, 2011 at 12:03 am Nice work! Really helpful,thanks

5. gjoez Says: Tuesday, March 8, 2011 at 7:33 am Aaand someone finally nailed explaining the Aggregate awareness! Thank You!

6. gnk Says: Tuesday, April 26, 2011 at 9:35 pm Great post..I was so confused of this AA until I read your post. Now I understood this concept perfectly. Thanks for the your post.

Trackbacks/Pingbacks
1. Aggregate Awareness! What is that? (Part 1 of 2) | Altek Solutions Business Intelligence Blog - 05. Nov, 2010 [...] here to see the second part of our Aggregate Awareness series to see how to implement your new summary [...]

Leave a Reply
Name (required)

Mail (will not be published) (required)

Website

Previous Entries Next Entries


Popular Latest Comments Tags What is Query as a Web Service (QaaWS)? What is a Business Objects Universe? How to Implement the Xcelsius Publishing Plugin Five Reasons Why Ad Hoc Reporting Won't Work in Some Organizations Connecting BusinessObjects to SAP

Our Twitter Feed


Looking to further your career w/SAP BusinessObjects? We're looking for several, permanent consultants to join our team! http://ow.ly/42VCG 229 days ago We're looking for a few good SAP BusinessObjects Consultants in the Baltimore, MD area... http://ow.ly/42VCG #SAP #webintelligence 235 days ago Interested in bird migration patterns? Chk out our latest #xcelsius #dashboard for Hawk Mtn: http://altk.ws/fIi3CZ (reg req'd) #sap 297 days ago A Holiday message from Altek Solutions...with some exciting news for 2011! http://ow.ly/3tQWH #xcelsius #sap #businessobjects 298 days ago @aravindsr Thanks for the feedback...we like to think so. 353 days ago What makes a great SAP BusinessObjects consultant? http://ow.ly/31wlC #sap #businessobjects #xcelsius 353 days ago Top 5 Misconceptions About #SAP #BusinessObjects #Universes: http://ow.ly/2VIsc #xcelsius #qaaws 363 days ago We're looking for a few good SAP BusinessObjects consultants in the Baltimore, MD area. Interested? http://ow.ly/2V9Z3 #SAP... 364 days ago

Upcoming Events SAP BusinessObjects User Groups

Maryland Business Objects User Group Pennsylvania Business Objects User Group Philadelphia Business Objects User Group

Copyright 2010 Altek Solutions Inc. All rights reserved. Altek Solutions, Inc. | 297 Suedberg Road Suite 300 | Pine Grove, PA 17963 Visit our blog | Visit our Demo Portal | Visit our Midmarket Microsite | Subscribe to our Newsletter www.alteksolutions.com | info@alteksolutions.com Toll free: (877) 844-7476

Baltimore/Washington: (443) 283-8442

Philadelphia, PA: (267) 386-8240

Harrisburg, PA: (717) 370-6034

You might also like