1 / 15

OData Extensions for Data Aggregation

OData Extensions for Data Aggregation. Ralf Handl, SAP Siva Harinath , Microsoft Hubert Heijkers, IBM Gerald Krause, SAP Mike Pizzo , Microsoft July 26 th , 2012. Where do we want to go. GET ~/Sales. GET ~/Sales?$select=Product.

wood
Download Presentation

OData Extensions for Data Aggregation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. OData Extensions for Data Aggregation Ralf Handl, SAP Siva Harinath, Microsoft Hubert Heijkers, IBM Gerald Krause, SAP Mike Pizzo, Microsoft July 26th, 2012

  2. Where do we want to go

  3. GET ~/Sales

  4. GET ~/Sales?$select=Product

  5. GET ~/Sales?$select=Product &$aggregate

  6. GET ~/Sales?$select=Product,Amount &$aggregate=Amount

  7. GET ~/Sales?$select=Product,Amount &$aggregate=Amount&$orderby=Amount desc

  8. GET ~/Sales?$select=Product,Amount &$aggregate=Amount&$filter=Amount ge 8

  9. GET ~/Sales?$select=Product,Revenue &$aggregate=Amount as Revenue&$filter=Amount ge 8

  10. GET ~/Sales?$select=Product,Amount,MaxAmount &$aggregate=sum(Amount) ,max(Amount) as MaxAmount

  11. GET ~/Sales?$select=Product,Amount &$aggregate=Amount ,count() as SalesCount

  12. $rollup=(Country,Customer),(ProductGroup,Product)

  13. Measures <PropertyName="Amount"Type="Decimal"> <TypeAnnotationTerm="DataAggregation.DependentMeasure"> <PropertyValueProperty="DefaultAggregationFunction" String="sum"> <PropertyValueProperty="AcceptedAggregationFunctions"> <Collection> <String="sum"/> <String="max"/> </Collection> </PropertyValue> </TypeAnnotation> </Property>

  14. Hierarchies <PropertyName="ProductGroup"Type="String"Nullable="false" /> <PropertyName="Product" Type="String"Nullable="false" /> <TypeAnnotationTerm="DataAggregation.LeveledHierarchy"> <PropertyValueProperty="Name"String="ProductHierarchy"/> <PropertyValueProperty="Levels"> <Collection> <String="ProductGroup"/> <String="Product"/> </Collection> </PropertyValue> </TypeAnnotation>

  15. Open Topics • Links for „drillinginto“ aggregatedentities • More hierarchytypes: parent-child, ragged, … • Hierarchy-basedfunctions: descendants(), siblings() • Expressionsin $aggregate: sum(Revenue) - sum(Costs) asProfit • Split into $filter and $postfilter (WHERE/HAVING) • Merge$aggregateand $select, implicit $expand • Set functions for complex aggregations: ~/MySet/$Select(city,sales)/$Aggregate(sales)/$Select(sales)/$Aggregate() • References to annotations for units/currencies/texts

More Related