on 05-21-2007 2:24 PM
Hi Experts,
I got the structure like this.
Item (0 to unbounded)
amount (1 to 1).
I am getting more than one amounts, I need to add all the amounts and map it to target field "sum".
For this how can i do the mapping can anybody please help me.
Kind Regards,
Kumar
hi,
you can directly use the Sum function provided by the Graphical Mapping utility. Usually the SUM function works at context level. Set your context accordingly by looking in to the Q and finish it up.
VJ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
if u use string type for amount field change it to integer type ,also change string type to integer type for target field.....
if u give the input as 34.45,34.67,34.67
u ill be getting 103.7899 instead of 103.79..
in sum function ....last digit in decimal u wont be getting exact value instead u ill get in terms of .699 for .7
Message was edited by:
sasitharan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
what u see in the display queue for "sum" function...r u getting input values...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
for Amount field ---(set the context to message type node)
then Map directly amount field to sum (statistic functions)
then connect the sum function to target field....
hope this helpful....
Message was edited by:
sasitharan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen,
As just suggested above that you can go for SUM function and change the context to ITEM node .
If its not working then you can write an ADVANCE UDF where all the Amoutns will be coming as Input and then add and return the same
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 |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.