on 01-13-2015 4:31 PM
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:
The issue here is that the KFTotal Keyfigure displays the individual value for each Product type instead of the total.
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
Dear John,
Using formula variables it will be tricky.
I tried with SUMCT and it is working fine. Please see screenshots below.
1. Create Formula with data function SUMCT
2. Go to calculation tab of formula and hide "Calculate Results as"
3.For vendor make it Results row "Always Dsiplay"
4. See the below result
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, this solution should work but the issue the structure of my report. Maybe I did not describe it correctly. Sorry. The two key figures (sales and sum of sales) are broken by the customer. If I removed the customer, then the solution about would work.
The result should look like this :
Customer 1 | Customer 2 | Customer 3 | ||||
---|---|---|---|---|---|---|
Sales | Sum of Sales | Sales | Sum of Sales | Sales | Sum of Sales | |
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 |
Hi John,
How is the filter on type of products defined in your query scenario? Is it possible to also put the same restriction into Keyfigure Sum of Sales? I think this should work.
e.g.:
Keyfigure Sum of Sales = - Keyfigure Sales
- " type of products" (flag Constant Selection)
- PType1, PType2, PType3
BR Bernhard
Hi John,
I am a bit confused about your last answer.
Instead of using a calculated keyfigure for "Sum of Sales" I would suggest to try the following approach:
- For"Sum of Sales" create a keyfigure selection (or a restricted keyfigure) and:
- Enter "Sales" as keyfigure
- Add characteristic product type -> right click -> flag constant selection
- Add the same restriction on product type as defined globally (e.g. restrict on the same variable which appears on the selection screen).
Kind of:
More information related to the Constant Selection feature can be found on our WIKI page:
OT-OLAP-CS - SAP NetWeaver Business Warehouse - SCN Wiki
Hi John,
I am predicting that you have some cells for key figures as "*". may be thats why you are getting "X".
Try to remove those and you will get the correct result. Try with oss note 1013127 as well
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi John,
Have got the solution for your requirement,if yes then please share with us so that it may helpful us .
Thanks,
sunil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi John,
As kool Sudha explained, it should work.. as you said you are getting 'x'
Can you elaborate more so we can identify the gap(if possible with screen shots).
Regards,
Santu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi.
So I have implemented Sudha's solution.
2. Local calculations for that key figure:
3. Settings for Row (Product type).
The Result is as follows;
Customer1 | KFTotal | Customer2 | KFTotal | Customer3 | KFTotal | |
---|---|---|---|---|---|---|
PType1 | 10 | X | 15 | X | 20 | X |
PType2 | 15 | X | 1 | X | 11 | X |
PType3 | 3 | X | 3 | X | 10 | X |
Results | 18 | 19 | 41 |
Note that if I diplay results for the KFTotal key figure, the correct total is display. So the issue is with the individual values which I need for another calculation. I have tried to display with NoDim but the issue is the same.
Hi John,
Without Exception..Cant we use it this way,
CKF1= Customer 1 values as you have shown...
CKF2= SUMGT/SUMCT (CKF1)
rgds
SVU
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi John,
1 Create replacement path formula variable for customer 1 ,2 and 3 and keep all in COLUMNS
2 Place TYPE(PType1,2,3) characteristic in Rows and result always display
3 Create three formulas for customer 1 ,2 and 3 to display overall result like 18,19, 41 by using SUMGT function to display side of each customer
Regards,
Nanda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, thanks for your response.
I actually, the solution you are proposing requires that I know the number of customer. I did not mention that in the original post sorry, but the data used in the original post is an example. In practice, I will not know the number of customers, the solution should work for any number of customers.
did you try cells?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.