on 11-03-2015 7:11 PM
I converted a 3.1 Deski report to 4.1 Webi using the Report Conversion Tool. The primary calculation context is not working correctly in Webi and I can't seem to get it to work.
Deski formula: =Sum(<Net Total 2>ForEach <Line Item Number Char>)
Converted Webi formula: =Sum([Net Total 2] ForEach ([Line Item Number Char]))
[Net Total 2] is the last column on the right (Net Total). [Line Item Number Char] is the second column on left (L.I.). The way this works in Deski is that it sums each L.I. amount, while disregarding duplicate L.I. amounts. So in the example below, it sums 280+702+350+358.40 = 2750.80. Note: This is similar to the functionality in Crystal reports where you can use a Running Total or variables to evaluate only when the L.I. changes. In Webi, it sums all amounts (including duplicates) for a total of 3380.80. I'm not sure why it's doing this since the calculation context is the same in both tools. I can't seem to get any calculation context or formula to replicate this. Any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The variable is a number datatype. I did do a Sum at the end of the block and that works fine (=Sum(Max([Net Total 2]) ForEach([Line Item Number Char]))). But that only works within the block. I need to display this Summed amount in a separate cell outside of the report block. When I use this formula in an independent cell, I get the MULTIVALUE error.
The display of duplicates is what we want - it's just getting the summary amount displayed in an independent cell that's not working, but it works in Deski
Hi William,
To troubleshoot it further, can you do below:
1. Drag an empty vertical table in another tab of report. (It will come as empty vertical column).
2. Put the formula inside this column and check what values are getting displayed.
3. Check "Avoid duplicate row aggregation" option in case you get #MULTIVALUE. (This option will work in this case as we are putting the formula in table and not in a cell).
Share the results so that we can decide on how we can avoid #MULTIVALUE.
Regards,
Yuvraj
Hi,
Not sure I follow. The existing formula is: =Sum(Max([Net Total 2]) ForEach ([Line Item Number Char])). So are you saying to change this to =Max(Sum(Max([Net Total 2]) ForEach([Line Item Number Char]))). Also, are you saying to make this change on the original tab in the free standing cell?
Thank you for the help
Just try below formula:
=Sum([Net Total 2] in ([Line Item Number Char]))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.