on 2025 Mar 07 8:01 AM
Hello all,
Can anyone help me resolve the issue I'm facing? I need to calculate the value of Revenue NA [DRV0060] by multiplying the lookup price and units, but the resulting values are incorrect. I'm implementing this using scripting in a data action, and the values appearing are significantly lower than the expected ones, which are simply obtained by multiplying the two factors. I suspect the issue is due to improper aggregation at the hierarchical level.
Script I am using
DATA([d/ACCOUNT] = "DRV0060") =
RESULTLOOKUP([d/ACCOUNT] = "DRV0055") * RESULTLOOKUP([d/ACCOUNT] = "DRV0020")
below are the incorrect values
Request clarification before answering.
If both your accounts "DRV0055" and "DRV0020" are leaf member and not calculated account, I don't thinkt it's a problem of aggregation(of DA calculation). Calculation is done on the lowest combinations of all other dimensions with both accounts. I would suggest you to add all your dimensions into the table grid to understand the calculate result. I assume not all the bases of displayed(aggregated on non displayed dimensions) value accounts not having same combination.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can anyone assist me? I am unable to identify the root cause of this issue and am unsure what is going wrong. Below is the structure of my model for reference.
Additionally, for the Northeast region, an incorrect aggregation result is appearing at the parent hierarchy node. Moreover, currency conversion is being applied to the Units account dimension, even though it is disabled in the properties.
@N1kh1l please assist
added all leaf's that you have asked in table grid please suggest what would be the next step
William_Yu How can the values of the Unit account and Price account be the same, given that the price is calculated using the formula: DRV0055 Lookup Price (NA) = LOOKUP([DRV0050], [d/ENTITY] = "#") Since the Lookup Price for the United States is marked as unbooked data, I copied the value from Entity #, which is 2280, but when calculating manually (using excel sheet), the accumulated value against the dimension appears as 2215. This discrepancy seems to be due to footwear data not appearing for December 2019. However, when using a numeric point chart, the value is displayed accurately.. This discrepancy suggests that the lookup might not be retrieving values correctly across all dimensions, or some form of aggregation is affecting the final result. Could it be that certain records are missing or being aggregated differently? scripting: interms of scripting have used the following formula //DATA([d/ACCOUNT] = "DRV0055",[d/ENTITY] = "REG0001") = RESULTLOOKUP([d/ACCOUNT] = "DRV0050", [d/ENTITY] = "#")
Though I'm not sure why the multiply should be after aggregation, but if that's the logic, should try to use variable in advance formula to get the aggretated result first.
Hi,
RESULTLOOKUP()*RESULTLOOKUP() - it's multiplication of the same booked combinations from both accounts.
Add context (all dimensions) to both of your Accounts (DRV0055 and DRV0020). Only identical combinations from these accounts will be multiplied.
Multiplication is happening on the row level.
In your case, you could define your formula (multiplication) in Account dimension in Formula field. In this case in report - SAC aggregate all dimensions and after will apply multiplication.
More info you could find here https://help.sap.com/docs/SAP_ANALYTICS_CLOUD/00f68c2e08b941f081002fd3691d86a7/ce7b148eeac942f6ad1d0...
Also aggregated result could be achieved through calculated measure. The question what is the end goal. In these both options calculation will be on fly
Best regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.