Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Community Poll: What sort of content would you like to see more of?
Get ready to take on exciting new challenges and become the next SuiteMaster of the Month!

SuiteQL odbc query summing consolidated amounts

I'm trying to sum amounts in two currencies.

This query works

SELECT -- 68,334

tr.ID AS ID,


TransactionAccountingLine.amount AS amount, -- for sum

BUILTIN.CURRENCY_CONVERT(transactionLine.foreignamount), -- for sum

TO_NUMBER(BUILTIN.CURRENCY_CONVERT(transactionLine.foreignamount)), -- for sum

--TO_BINARY_FLOAT(TO_NUMBER(CURRENCY_CONVERT(TransactionAccountingLine.amount))) as A_EUR, -- for sum

(TO_NUMBER(BUILTIN.CONSOLIDATE(TransactionAccountingLine.netamount, 'LEDGER', 'DEFAULT', 'DEFAULT', 1, 252, 'DEFAULT'))) as A_eur,

tr.trandisplayname AS trandisplayname,

tr.trandate AS trandate,



tr.TYPE AS transcation_type,

account.custrecord1400 as account_type_order,

account.accttype as account_type,


Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!


Community Whiz

Quarter 3 (Jul-Sep 2024)

This Week's Leaders

This Month's Leaders

All Time Leaders