Understanding FX Currency values in lists and reports
-
- UpdatedFeb 1, 2024
- 3 minutes to read
- Washington DC
- Currency fields
By default, the currency values that appear in the FX Currency fields in lists and reports are the values that you directly enter into the FX Currency fields. For reports, the aggregations of FX Currency fields are, by default, reference currency values.
FX Currency values in list views
- The settings in the Display Digits and Display Value Currency fields in determine how the currency values appear in lists.
- To learn more, see Identify the FX Currency field and its display parameters.
Filtering FX Currency values in lists
- For example, if you entered a currency value in Euros (EUR) and the reference currency is US Dollars (USD), the reference currency value may appear in an unfiltered list.
- However, if you filter the list, and select USD as the currency, the currency value, originally entered in Euros, doesn't appear. In this case, only currency values originally entered in USD would appear.
Dependent FX Currency fields
Use of FX Currency view or dependent fields enable you to use alternate display configurations defined in Configuring FX Currency field behavior.
for a particular FX Currency field. To learn more about FX Currency field configurations, seeWhen you create an FX Currency field, you can mark it as dependent on another FX Currency field. Marking an FX Currency field as dependent enables it to use the configuration settings for the original FX Currency field to display the amount values in different currency. Any changes that you make to the dependent field don't affect the original FX Currency field.
FX Currency reporting, aggregation, and group by
- FX Currency fields appear as a formatted currency string returned from getDisplayValue().
- If you set the Display Value Currency field in to Display in Session Currency, the session currency assigned to the user running the report appears.
You can aggregate like reference currency values within a Currency Instance record. The following is the aggregated FX Currency data format in the Now Platform®:
Type | Description |
---|---|
String | Value of the aggregation. If the values being aggregated are FX Currency
values, the returned value is in the format
currency_code:currency_value , such
as:
Otherwise, the returned value is
just the currency value, such as: 134.980000 .Note: If the field
contains FX Currency values of mixed currency types, the values cannot be
aggregated. The value is returned as a semicolon (;). |
- Aggregation operations, such as SUM, translate as
SUM(amount)
orSUM(reference_amount)
. The aggregation source determines the translation when the currency associated with the currency values in the grouping is the same.For example, the aggregate value returned by
GlideAggregate.getAggregate()
is a string of the format USD; 1234.56. The total currency value is expressed in the single reference currency that is associated with all currency values in the grouping. - If there are different currencies associated with currency values in the grouping, then the aggregate value is empty. For example, if some of the currency values are in US Dollars, some are in Euros, and others in Yen, the aggregate value would be empty.
- It is equivalent to grouping by currency and amount, or by reference_currency and reference_amount, as dictated by the aggregation source.
- The value of the grouping is available by dot-walking on the FX Currency field, or
using an API such as
getDisplayValue()
.
On this page
Related Content
- Configuring FX Currency global settings
Before setting up and using FX Currency, review the related system properties to confirm or modify its default behavior.
- Configuring FX Currency field behavior
After establishing global currency defaults, you can create custom FX Currency configurations for specific table fields. Identify the table fields that use FX Currency, and define how currency conversion calculations should be performed, displayed, filtered, and aggregated.