Understanding FX Currency values in lists and reports
Summarize
Summary of Understanding FX Currency values in lists and reports
This document explains how FX Currency values are managed in lists and reports within ServiceNow, focusing on their display, filtering, and reporting mechanisms. It is crucial for customers to understand these functionalities to effectively utilize FX Currency fields in their applications.
Show less
Key Features
- Currency Value Display: FX Currency values are shown as formatted currency strings based on configurations in System Localization > FX Currency Configuration. The display settings dictate how these values appear in lists and reports.
- Filtering Behavior: Filtering FX Currency fields is based on the currency type initially used. If a list is filtered, only records matching the specified currency will be displayed, disregarding any entries in other currencies.
- Dependent FX Currency Fields: FX Currency fields can be marked as dependent, allowing them to adopt display settings from another FX Currency field without affecting the original field.
- Reporting and Aggregation: FX Currency fields can be included in reports, where they are displayed similarly to list views. Aggregation of these fields is possible if they share the same reference currency.
Key Outcomes
Understanding these features allows ServiceNow customers to accurately display, filter, and report FX Currency values, ensuring that data is relevant and correctly formatted for analysis. Proper configuration can enhance reporting capabilities and streamline financial data management across multiple currencies.
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 for a particular FX Currency field. To learn more about FX Currency field configurations, see Configuring FX Currency field behavior.
When 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 ServiceNow AI 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().