Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member

This blog will clarify how to resolve the issue related to calculation of KPI for high level view and detailed view

where detailed view is based on drill down of 2 different Infoobjects and this combination is unique key  :-

For Example:

we have a division calculation for one KPI : (Unit charge/Consumption * 100 ).

High level view:

Account
  Determination ID
Unit charge
  Value
ConsumptionUnit charge/Consumption
Commercial
  Customers
275.91000001,872.30014.73642045

Detailed view :

If we drill down on Installation and date output is :

NOTE: Installations 6000359409 is repeated and date 03/31/2014 is also repeated corresponding to different Installation.

Account
  Determination ID
Installation
  Number
To DateUnit charge
  Value
ConsumptionUnit charge/Consumption
Commercial
  Customers
600035930003/31/2014194.690000001172.1000000016.61035748
Commercial
  Customers
600035935903/31/201451.60000000518.600000009.94986502
Commercial
  Customers
600035940902/28/201415.5900000095.5790000016.31111437
Commercial
  Customers
600035940903/31/201414.0300000086.0210000016.30997082

however if we see the sum of last column:

Unit charge/Consumption
16.61035748
9.94986502
16.31111437
16.30997082


Sum is =

59.18130769


If we use Exception aggregation alone , it won't work for example if we aggregate on Installation output will be like below :-

42.87079519
Account
  Determination ID
Installation
  Number
To DateUnit charge
  Value
ConsumptionUnit charge/Consumption
Commercial
  Customers
600035930003/31/2014194.690000001172.1000000016.61035748
Commercial
  Customers
600035935903/31/201451.60000000518.600000009.94986502
Commercial
  Customers
600035940902/28/201429.62000000181.6000000016.31057269
Sum =

How to achieve this in BW :-


1. Concatenation:

To achieve this we have to create a new Infoobject of length equal to sum of both these Infoobjects and get concatenated value into this new object :-


2. Exception agreegation

Now apply exception aggregation on

Unit charge/Consumption  calculation based on this new Infoobject

Output will be displayed like below :-

High level view:

Account
  Determination ID
Installation
  Number and Date
Unit charge
  Value
ConsumptionUnit chare/Consumption
Commercial
  Customers
600035930020140331194.690000001172.1000000016.61035748
Commercial
  Customers
60003593592014033151.60000000518.600000009.94986502
Commercial
  Customers
60003594092014022815.5900000095.5790000016.31111437
Commercial
  Customers
60003594092014033114.0300000086.0210000016.30997082

Detailed view :

Account
  Determination ID
Unit charge
  Value
ConsumptionUnit chare/Consumption
Commercial
  Customers
275.91000001,872.30059.18130769

Now sum is matching.

Labels in this area