Currency Conversion Using Custom Formula Fields

In the Dataset Builder, you can create custom formula fields with the context value #converted to change field values that are in different currencies.

For example, to show remaining balances on invoices no matter the original currency, you can create a custom formula field like this:

          TO_NUMBER({foreignamountpaid#converted}) - TO_NUMBER({foreignamountunpaid#converted}) 

        

The function TO_NUMBER is needed because the current Formula Builder doesn't support the CURRENCY output type, so TO_NUMBER converts these values to FLOAT. In single currency accounts, you could use this formula without the #converted context value:

          TO_NUMBER({foreignamountpaid}) - TO_NUMBER({foreignamountunpaid}) 

        

Depending on your formula, you can convert field values to your account's base currency or a specific currency you pick. You can also choose the exchange rate based on a date you enter in the formula.

Use these sample formulas to convert the values of the total amount (transaction currency) field. The output is FLOAT:

Note:

To convert values from other fields, replace foreigntotal with a different field ID.

          TO_NUMBER({foreigntotal#converted}) 

        
          TO_NUMBER({foreigntotal#converted[1]}) 

        
          TO_NUMBER({foreigntotal#converted[1;2017-01-30]}) 

        

Related Topics

General Notices