AX2055
Axiom query settings
Axiom queries are defined on the Control Sheet of any Axiom file, on a per sheet basis. Settings must be entered in the column for the applicable target sheet.
Each sheet can have multiple Axiom queries. The default Control Sheet has settings available for one Axiom query. If you need more Axiom queries, you can add more using the Sheet Assistant.
Keep in mind that you can use multiple data ranges for the same Axiom query. If the Axiom query settings are the same but you simply need to group data into multiple sections, you can use data range filters instead of defining multiple Axiom queries. For more information, see Creating the insert control column or row for an Axiom query.
File-wide Axiom query settings
The following Axiom query option applies to all sheets in the file. This option is located in the Workbook Options section of the Control Sheet.
Field | Description |
---|---|
Process cross sheet AQ Batches | (missing or bad snippet) |
Sheet-wide Axiom query settings
The following options apply to all Axiom queries on a sheet, not individual Axiom queries. These options are located in the Data/Zero Options section of the Control Sheet.
Item | Description |
---|---|
Convert Axiom Query results to zero on save | (missing or bad snippet) |
Enable full AQ query validation mode |
(missing or bad snippet) |
Refresh Control Sheet between every AQ |
(missing or bad snippet) |
General Axiom query settings
Each Axiom query has the following general settings:
Item |
Description |
---|---|
Name |
The name of the Axiom query. This name is required for templates/plan files, and is optional for all other files. If a query has a name, the name is used whenever lists of Axiom queries are displayed. The name should be unique and descriptive. When processing plan files, you are prompted to choose which Axiom queries to update by name. |
Activate |
Determines whether the Axiom query is active.
|
Query details
The query details define the general parameters of the data query.
Item |
Description |
---|---|
Primary Table |
Specifies the primary table to query data from when refreshing the file. (missing or bad snippet)For more information, see: |
Sum data by these columns |
Defines the level at which to sum or group the data returned by the query. You can enter multiple column names, separated by a semi-colon. (missing or bad snippet)For more information, see Defining the sum level for an Axiom query. |
Sort by database columns |
Specifies the database columns to sort the data by, prior to inserting it into the target sheet. This setting does not apply when only updating data. You can enter multiple column names, separated by a semi-colon. You can specify ascending (asc) or descending (desc) after each field name. The default is ascending if nothing is specified. For example: (missing or bad snippet) If this setting is left blank, and no spreadsheet sort is specified, then the data is sorted by the columns specified in the Sum data by these columns setting, in ascending order. For more information, see Defining the sort for an Axiom query. |
Sort results by these columns |
Specifies the spreadsheet columns to sort the data by when the query is refreshed. (missing or bad snippet) |
Data Filter |
Defines a data filter to limit the data query. For example: For more information, see Defining a data filter for an Axiom query. |
Limit query data based on another table |
If desired, you can limit the data in this Axiom query based on the results of another query. For example, you may want to only include items in this query if those same items are also found in a different table. This is an advanced option. Special syntax is used to identify the parameters of this "pre-query". For more information, see Limit the data in an Axiom query based on another query. |
Post Query Filter |
If desired, you can define a filter to limit the data to be returned by the query. This filter is applied after the initial database query, but before data is returned to the client (so it is still a database-level query, unlike data range filters). This is an advanced option. The primary use of this feature is to enable filtering based on segment when segmenting your query data; however it can be used for other purposes. For more information, see Organizing Axiom query data into ranked segments. |
Post Query Sum By |
This is an advanced option that only applies when segmenting your query data. You can list the name of the segment column here, in order to group the query results by segments. For more information, see Organizing Axiom query data into ranked segments. |
Suppress records with zero values |
Specifies whether rows with all zero values are inserted into the sheet. (missing or bad snippet) |
Max row warning threshold |
Specifies the maximum number of records that can be returned by an Axiom query without triggering a warning. You can leave this blank to use the system configuration setting, or you can enter a number to set the threshold for this particular query. This setting is intended to prevent users from accidentally bringing in an extremely large number of records, potentially resulting in excessive processing times or system errors. If the number of records in the query exceeds this setting, the user is warned of this and asked if they want to continue. NOTES:
For more information on defining system configuration settings, see System configuration settings. |
Limit query to top "n" results |
If desired, you can limit the query results to the top N records for the query—such as top 5, top 10, or top 50. Enter the number of records that you want returned. When using this setting, the database sort order of the query is very important as that will determine which records are returned. For more information, see Return the top N records for an Axiom query. |
Process Definition ID |
Specifies the process definition ID to use when querying plan file process columns. You can use the GetProcessInfo function to return the ID for a process definition, or you can hover over the definition in Axiom Explorer or the Explorer task pane to read the ID on the tooltip. When the primary table of an Axiom query is the plan code table of a file group, you can optionally include process columns in the query to return process information for each plan code. |
Batch Number |
Assigns the query to a batch for parallel processing. If a batch number is specified, then all queries in the sheet with the same batch number will be processed in parallel instead of sequentially, before any non-batched queries are processed. For more information, see Batch processing for Axiom queries. If the batch number is blank, then the query does not belong to a batch and will be processed normally. For more information, see Processing order of Axiom queries. |
Display / user interaction options
The following options relate to how data is displayed for the query, and how users may interact with the data.
Item |
Description |
---|---|
Insertion Behavior |
Specifies the insertion behavior for the query, when records are inserted into the data ranges.
|
Apply grouping to data ranges |
Specifies whether spreadsheet grouping is applied to the Axiom query results. If Off, grouping is not applied and the results are presented as normal. If On, grouping is applied and the query results are grouped by data ranges. The row containing the [AQ#] tag is used as the "anchor" row for the grouping. All rows in the range, including the row with the [Stop] tag, are contained in the group. This option is most typically used in cases where you have multiple data ranges, or multiple nested Axiom queries, and you want to group sections in the results so that they can be expanded and collapsed. (missing or bad snippet)For more information, see Using spreadsheet grouping with an Axiom query. |
Change orientation to horizontal |
Specifies whether the query populates data vertically or horizontally. If Off (the default), the query is a standard vertical query. If On, the query becomes a horizontal query. Certain settings, such as control rows and columns, differ based on the orientation of the query. You will complete either the Vertical Configuration section or the Horizontal Configuration section, depending on the orientation of the query. All other settings apply to both query orientations, unless otherwise noted. For more information, see: |
Drillable |
Specifies whether the query is enabled for drill-down and drill-through drilling. By default, this is set to On, and the query rows can be drilled if the query is otherwise eligible for drilling. (missing or bad snippet) |
Vertical configuration
The following Control Sheet settings apply if the query is a standard vertical query. This section defines the location of various control rows and control columns on the sheet, and the calc method options.
NOTE: If you are using the Sheet Assistant to complete query settings, the Sheet Assistant adjusts to only show the relevant settings for the current orientation.
Control rows and columns
Each vertical Axiom query requires the following control rows and columns to be defined. You can use the default settings in the Control Sheet, or specify different rows and columns.
Item |
Description |
---|---|
Field Definition Row(s) |
Specifies the row or rows in the target sheet where database column names are placed. Data from the specified database column will be brought into the sheet column (within the Axiom query's data range) when the file is refreshed. To specify the row, you can enter a single row number (1), or you can enter the row or rows as a range (1:1 or 10:12). When entering a row range, make sure that Excel is evaluating the range as text. If the cell is not formatted as text, you can force a text entry by entering an apostrophe in front of the range ('10:12). For more information, see Creating the field definition for an Axiom query. |
Insert Control Column |
Specifies the column where data range tags are placed. These tags define the beginning and end of each data range. (missing or bad snippet) |
Internal Data Control Column |
Optional. Specifies a separate column to be used as the data control column. By default, the insert control column is automatically used as the data control column. The data control column holds the key codes for each row of data, to be used for subsequent data updates (if applicable). The primary purpose of this separate setting is for backward-compatibility when upgrading older Control Sheets—previous versions of Axiom Financial Institutions Suite required a separate column. For more information, see About data control codes for Axiom queries. |
Calculation methods
A vertical Axiom query can use either an in-sheet calc method row or a calc method library. If an in-sheet calc method row is specified on the Control Sheet, that row will be used when the Axiom query is processed, regardless of any calc method library settings. If you want to use the calc method library, make sure that the In-Sheet Calc Method Row(s) setting is blank. For more information, see Calc methods and Axiom queries.
Calculation methods only apply if the refresh behavior is rebuild or insert.
Item |
Description |
---|---|
In-Sheet Calc Method Row(s) |
Specifies the row or rows in the target sheet where formatting and calculations are defined. The formatting and formulas in this area are applied to data rows as they are inserted into the sheet. (missing or bad snippet) |
Item |
Description |
---|---|
Assign from data field |
Specifies the database table and column where calc method assignments have been defined. For example, Special syntax is available if you need two levels of lookup in order to assign calc methods (for example, if the calc method used for an account varies based on the department type). For more information, see: |
Assign from sheet |
Use this section if you want to read the calc method assignments from a sheet in the file, rather than pointing directly to a database column. Within the sheet, you can use any methodology to create the list of assignments, including using another Axiom query to build the list dynamically per plan code. Complete all four settings as follows:
For more information, see Reading calc method assignments from a sheet. |
Default Calc Method |
Specifies the default calc method to use if there is no assignment for a particular plan code. This setting only applies to templates/plan files. The default calc method is not applied if an assignment is invalid—instead, an error results. For more information, see Using calc method libraries with Axiom queries. |
Horizontal configuration
The following Control Sheet settings apply if the query is a horizontal query. This section defines the location of various control rows and control columns on the sheet, and the calc method options.
NOTES:
- By default, all queries are vertical queries. If you want to define a horizontal query, then you must change the setting Change orientation to horizontal to On.
- If you are using the Sheet Assistant to complete query settings, the Sheet Assistant adjusts to only show the relevant settings for the current orientation.
Control rows and columns
Each horizontal Axiom query requires the following control rows and columns to be defined. You can use the default settings in the Control Sheet, or specify different rows and columns.
Item |
Description |
---|---|
Field Definition Column(s) |
Specifies the column or columns in the target sheet where database column names are placed. Data from the specified database column is brought into the sheet row (within the Axiom query's data range) when the file is refreshed. To specify the column, you can enter a single column letter (D), or you can enter the column or columns as a range (D:D or D:F). When entering a column range, make sure that Excel is evaluating the range as text. If the cell is not formatted as text, you can force a text entry by entering an apostrophe in front of the range ('D:F). For more information, see Creating the field definition for an Axiom query. |
Insert Control Row |
Specifies the row where data range tags are placed. These tags define the beginning and end of each data range. (missing or bad snippet)For more information, see: |
Calculation methods
Calculation methods only apply if the refresh behavior is rebuild or insert. For more information, see Calc methods and Axiom queries.
Item |
Description |
---|---|
In-Sheet Calc Method Column(s) |
Specifies the column or columns in the target sheet where formatting and calculations are defined. The formatting and formulas in this area are applied to data records as they are inserted into the sheet. (missing or bad snippet) |
Refresh behavior
Refresh behavior determines how rows are updated when the file is refreshed. For more information, see Refresh and insertion behavior for Axiom queries.
Item |
Description |
---|---|
Refresh on manual refresh |
(missing or bad snippet) |
Refresh during document processing |
(missing or bad snippet) |
Refresh during template processing | (missing or bad snippet) |
Refresh on file open | (missing or bad snippet) |
Refresh once before multipass processing |
(missing or bad snippet) |
Refresh after save data |
(missing or bad snippet) |
DataLookups to run |
Specifies one or more data lookup queries to run after the Axiom query is refreshed, by listing the names of the DataLookup data sources. Separate multiple data source names with commas. Multiple data sources will be run in the order specified. The list of data source names can be qualified with sheet names (such as All unnamed DataLookup data sources will also be run when any Axiom query is refreshed. For more information, see Executing data lookups. |
Refresh only if primary table changed since last refresh |
If enabled, the Axiom query will only refresh if dependent tables have been modified since the query was last executed (also known as time-stamped refresh behavior). If none of the dependent tables have been modified, then the query will not be run and the data in the sheet will be left as is. This is a performance optimization feature that is intended for queries that meet specific criteria. For more information, see Refresh data only when dependent tables have been modified (time-stamped Axiom queries). The dependent tables for the query are the primary table and any additional tables listed in the Additional table dependencies field. The Last refresh time is used to determine when the query was last executed. |
Additional table dependencies |
Specifies one or more additional tables to consider if Refresh only if primary table changed since last refresh is enabled. Separate multiple table names with commas. If left blank, then the primary table is the only dependent table for the time-stamped refresh behavior. |
Last refresh time |
The date and time the query was last executed. This value is automatically written to this field when the query is run. Currently, this value is only used if Refresh only if primary table changed since last refresh is enabled. Otherwise, it is for information only. The last refresh time is shown in UTC (Universal Coordinated Time); it is not converted to the local time of the client where the refresh occurred. This field is system-controlled and should not be manually modified. The only exception is that occasionally you may need to clear this field in order to "reset" the last refresh time. NOTE: By default, this field is not populated when executing an Axiom query in a file group template file. This is so that when plan files are created from the template, the field starts out blank and can be populated for the plan file. However, if the Axiom query is refreshed by Scheduler using the Process Template List task, then the last refresh time is populated. |
Rebuild Data Ranges |
Determines whether Axiom queries are rebuilt on refresh. If On, all content in the data range is deleted when the file is refreshed, and the data ranges are rebuilt. In this case, the insert, update, and zero settings are ignored. If Off, the existing content in data ranges is retained, and data is updated according to the other refresh behavior settings. |
Zero data before update |
Determines whether data values previously inserted by the Axiom query are zeroed before subsequent updates. (missing or bad snippet) |
Update existing data |
Determines whether data values previously inserted by the Axiom query are updated on subsequent refresh. Formatting and formulas are not updated. (missing or bad snippet) |
Insert new rows |
Determines whether new lines are inserted on refresh. (missing or bad snippet) |
Data conversion
You can apply data conversion to an Axiom query, if the table being queried has been configured for data conversion. For example, you might use these settings to convert the data being queried from U.S. dollars into Canadian dollars. For more information, see Querying data using data conversions.
Item | Description |
---|---|
Conversion Target |
Specifies a conversion target so that the Axiom query returns converted data. This is the only required entry for data conversions. You can enter a fixed value that will apply to all records, or you can look up the value on a record by record basis from a grouping column in a lookup reference table. The fully qualified name must be used—for example, NOTE: If you use a grouping column, it is recommended to also include the grouping column in the field definition for the query, to identify the conversion that was applied for each individual record. In either case, the conversion target must be a value that is found in the "to" column for the associated conversion table. The conversion table is determined on a column by column basis (for each data column entry in the field definition), using the conversion configuration for the associated table. If a table in the Axiom query is not configured for data conversions, then the conversion settings are ignored and the "as is" data is returned for that table (unless all tables in the query are not configured for data conversions, in which case an error results). |
Conversion Scenario Override |
If desired, specify a conversion scenario to override the default scenario for the data conversion. The entry must be a value that is found in the "scenario" column for the conversion table. The conversion table is determined based on the primary table for the query. |
Conversion Type Override |
If desired, specify a conversion type to override the default type for the data conversion. The entry must be a value that is found in the "type" column for the conversion table. The conversion table is determined based on the primary table for the query. |
If any of these entries are invalid, the conversion results will be zero values. For example, if you specify EURO as the conversion target, but the actual code in the "to" column for the conversion is EUR, then all values subject to the data conversion will return zero. Data conversions will also return zero values if the conversion configuration for the table has invalid values, or if the conversion table itself has no valid rate entry for the relevant conversion and period (for example, blank entries in a rate column).