Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
alec1982
Specialist II
Specialist II

Multiply two fields

Hi,

i have a table that laoding from a resident table.

Residenttable:

ID,

Amount

Factor

From XML Path

CalculationTable:

ID,

Amount * Factor as AmountinUSD

Resident

Residenttable

Not sure why the calculation is not workingeven the Amount field and the factor fields exisit.

Thanks,

Alec,

1 Solution

Accepted Solutions
MayilVahanan

Hi

     Thanks cimbu for your tips..I thought its distinct ID..

     Sum(Amount) * Sum(Factor) as AmountinUsd..

     

or

     Amount * Factor

     If both are number format.. Suppose, Anyone contain non - numberic value means, it doesn't satisfy..Please mack sure the format..

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

7 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Have you got any error?

MayilVahanan

Hi

     Its work..Try like this,

     Load ID,

     Only(Amount) * Only(Factor) as AmountinUSD

     Resident ResidentTable

     Group by ID;

     Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
swuehl
MVP
MVP

Can both fields be interpreted as numbers?

What is the input format of your fields Amount and Factor?

What are your default formats for currency / numbers (decimal separator and thousand separator)?

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi Mayil,

It doesn't calculate(results null) if ID has duplicates.I mean if ID has multiple amounts and Factor

alec1982
Specialist II
Specialist II
Author

hi,

They are both Nrs.

Thanks,

MayilVahanan

Hi

     Thanks cimbu for your tips..I thought its distinct ID..

     Sum(Amount) * Sum(Factor) as AmountinUsd..

     

or

     Amount * Factor

     If both are number format.. Suppose, Anyone contain non - numberic value means, it doesn't satisfy..Please mack sure the format..

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
alec1982
Specialist II
Specialist II
Author

The way I had was working but the factor field has values of 1 in most cases.

Thanks for all your help.

Alec,