Hello
I have a situation using BEX query.
The case is as follows, I have several customers for different type of products.
Customer 1 | Customer 2 | Customer 3 | |
---|---|---|---|
PType1 | 10 | 15 | 20 |
PType2 | 15 | 1 | 11 |
PType3 | 3 | 3 | 10 |
Results | 18 | 19 | 41 |
I need the total of products (18, 19, 41) on a calculated key figure for each customer to be used in another formula.
It should look like this:
Customer1 | KFTotal | Customer2 | KFTotal | Customer3 | KFTotal | |
---|---|---|---|---|---|---|
PType1 | 10 | 18 | 15 | 19 | 20 | 41 |
PType2 | 15 | 18 | 1 | 19 | 11 | 41 |
PType3 | 3 | 18 | 3 | 19 | 10 | 41 |
Results | 18 | 19 | 41 |
The issue I am having is that I am unable to get the total in the KFTotal key figure for each individual customer.
Until now, I have tried:
- Use exception aggregate in a formula with option “Summation” in reference to customer.
The issue here is that the KFTotal Keyfigure displays the individual value for each Product type instead of the total.
- Use Data function SUMGT on the values for each customer. The issue here is that I am having the total for all customers instead of each individual customer. I.e, all KFTotal will display 78 (18+19+41). I cannot use exception aggregate while using SUMGT.
- Use Data function SUMRT on the values for each customer. Same issue as with SUMGT.
- Use Data function SUMCT on the values for each customer. Values for KFTotal = X. I cannot work with this.
Can anybody please help me . How can I calculate the individual totals? I basically need the same total calculated locally for display in a calculated key figure.
Thanks