Search Results ams_metric_formulas
Overview
The AMS_METRIC_FORMULAS table is a core data repository within the Oracle E-Business Suite (EBS) Marketing (AMS) module. It serves as the central definitional store for metric formulas, which are the computational rules used to derive key performance indicators (KPIs) and other measurable values in marketing campaigns, lead management, and performance analysis. In the context of EBS 12.1.1 and 12.2.2, this table enables the configuration and storage of complex business logic, allowing marketing managers to define how metrics are calculated from underlying transactional data. Its role is critical for the flexible and accurate measurement of marketing effectiveness, feeding into dashboards, reports, and analytical summaries.
Key Information Stored
The table's primary purpose is to define the relationship between a calculated metric and its source components. Based on the provided metadata, the key structural elements include:
- METRIC_FORMULA_ID: The unique primary key identifier (PK: AMS_METRIC_FORMULAS_PK) for each formula definition.
- METRIC_ID: A foreign key column linking to the AMS_METRICS_ALL_B table. This identifies the specific metric being calculated by the formula.
- SOURCE_ID: A foreign key column with dual references. It can link to either the AMS_CATEGORIES_B table or again to the AMS_METRICS_ALL_B table. This indicates that a formula's source component can be a predefined category (for dimensional breakdowns) or another base metric (for derived calculations), illustrating the potential for nested or composite metric formulas.
While specific formula expression columns are not detailed in the excerpt, the table logically contains attributes to store the actual formula logic (e.g., arithmetic operators, functions) and metadata such as active status and creation information.
Common Use Cases and Queries
This table is primarily accessed for system configuration and analytical reporting. A common administrative use case is querying all formulas associated with a specific high-level marketing metric to audit or modify calculation logic. For example:
SELECT mf.metric_formula_id, m.metric_name, mf.source_id
FROM ams_metric_formulas mf,
ams_metrics_all_b m
WHERE mf.metric_id = m.metric_id
AND m.metric_name = 'Campaign ROI';
For reporting and data validation, developers may write queries to join AMS_METRIC_FORMULAS with transactional tables (like AMS_ACTIVITIES or AMS_LEADS) to reconcile calculated metric values with their source data. Another critical use case is during the creation of custom marketing dashboards, where understanding the formula definition is necessary to correctly aggregate and present metric data.
Related Objects
The AMS_METRIC_FORMULAS table is integral to the metric definition framework within AMS. Its primary relationships, as documented, are:
- AMS_METRICS_ALL_B: This is the central metrics master table. AMS_METRIC_FORMULAS has a foreign key relationship to it via the METRIC_ID column (defining the target metric) and potentially via the SOURCE_ID column (if the source is another metric).
- AMS_CATEGORIES_B: The table for category definitions. The foreign key from SOURCE_ID allows metric formulas to incorporate categorical dimensions, enabling calculations segmented by regions, product lines, or other classified attributes.
This table is also foundational for various AMS module views and public APIs that expose metric calculations for integration and reporting purposes, ensuring that all downstream consumers utilize a consistent, centrally managed formula definition.
-
Table: AMS_METRIC_FORMULAS
12.1.1
owner:AMS, object_type:TABLE, fnd_design_data:AMS.AMS_METRIC_FORMULAS, object_name:AMS_METRIC_FORMULAS, status:VALID, product: AMS - Marketing , description: Metric Formula Definitions , implementation_dba_data: AMS.AMS_METRIC_FORMULAS ,
-
Table: AMS_METRIC_FORMULAS
12.2.2
owner:AMS, object_type:TABLE, fnd_design_data:AMS.AMS_METRIC_FORMULAS, object_name:AMS_METRIC_FORMULAS, status:VALID, product: AMS - Marketing , description: Metric Formula Definitions , implementation_dba_data: AMS.AMS_METRIC_FORMULAS ,
-
APPS.AMS_METRIC_FORMULAS_PKG dependencies on AMS_METRIC_FORMULAS
12.2.2
-
APPS.AMS_ACTMETRICS_ENGINE_PVT dependencies on AMS_METRIC_FORMULAS
12.1.1
-
APPS.AMS_METRIC_PVT dependencies on AMS_METRIC_FORMULAS
12.2.2
-
APPS.AMS_METRIC_FORMULAS_PKG dependencies on AMS_METRIC_FORMULAS
12.1.1
-
APPS.AMS_ACTMETRIC_PVT dependencies on AMS_METRIC_FORMULAS
12.1.1
-
APPS.AMS_ACTMETRICS_SEED_PVT dependencies on AMS_METRIC_FORMULAS
12.1.1
-
APPS.AMS_ACTMETRICS_SEED_PVT dependencies on AMS_METRIC_FORMULAS
12.2.2
-
APPS.AMS_ACTMETRICS_ENGINE_PVT dependencies on AMS_METRIC_FORMULAS
12.2.2
-
APPS.AMS_METRIC_PVT dependencies on AMS_METRIC_FORMULAS
12.1.1
-
APPS.AMS_METRIC_FORMULA_PVT dependencies on AMS_METRIC_FORMULAS
12.1.1
-
APPS.AMS_METRIC_FORMULA_PVT dependencies on AMS_METRIC_FORMULAS
12.2.2
-
APPS.AMS_ACTMETRIC_PVT dependencies on AMS_METRIC_FORMULAS
12.2.2
-
APPS.AMS_METRIC_FORMULAS_PKG dependencies on AMS_METRIC_FORMULAS_S
12.1.1
-
APPS.AMS_METRIC_FORMULAS_PKG dependencies on AMS_METRIC_FORMULAS_S
12.2.2
-
APPS.AMS_METRIC_FORMULAS_PKG SQL Statements
12.1.1
-
APPS.AMS_METRIC_FORMULAS_PKG SQL Statements
12.2.2
-
APPS.AMS_METRIC_FORMULA_PVT SQL Statements
12.2.2
-
VIEW: AMS.AMS_METRIC_FORMULAS#
12.2.2
owner:AMS, object_type:VIEW, object_name:AMS_METRIC_FORMULAS#, status:VALID,
-
APPS.AMS_METRIC_FORMULA_PVT SQL Statements
12.1.1
-
VIEW: AMS.AMS_METRIC_FORMULAS#
12.2.2
-
APPS.AMS_METRIC_FORMULA_PVT dependencies on AMS_LOOKUPS
12.1.1
-
APPS.AMS_METRIC_FORMULA_PVT dependencies on AMS_METRICS_VL
12.2.2
-
APPS.AMS_METRIC_FORMULA_PVT dependencies on AMS_LOOKUPS
12.2.2
-
TRIGGER: APPS.AMS_METRIC_FORMULAS+
12.2.2
owner:APPS, object_type:TRIGGER, object_name:AMS_METRIC_FORMULAS+, status:VALID,
-
APPS.AMS_METRIC_FORMULA_PVT dependencies on AMS_METRICS_VL
12.1.1
-
SYNONYM: APPS.AMS_METRIC_FORMULAS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AMS_METRIC_FORMULAS, status:VALID,
-
SYNONYM: APPS.AMS_METRIC_FORMULAS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AMS_METRIC_FORMULAS, status:VALID,
-
TABLE: AMS.AMS_METRIC_FORMULAS
12.2.2
owner:AMS, object_type:TABLE, fnd_design_data:AMS.AMS_METRIC_FORMULAS, object_name:AMS_METRIC_FORMULAS, status:VALID,
-
TRIGGER: APPS.AMS_METRIC_FORMULAS+
12.2.2
-
Table: AMS_METRICS_ALL_B
12.1.1
owner:AMS, object_type:TABLE, fnd_design_data:AMS.AMS_METRICS_ALL_B, object_name:AMS_METRICS_ALL_B, status:VALID, product: AMS - Marketing , description: This table stores all the flexible metric definitions. , implementation_dba_data: AMS.AMS_METRICS_ALL_B ,
-
Table: AMS_METRICS_ALL_B
12.2.2
owner:AMS, object_type:TABLE, fnd_design_data:AMS.AMS_METRICS_ALL_B, object_name:AMS_METRICS_ALL_B, status:VALID, product: AMS - Marketing , description: This table stores all the flexible metric definitions. , implementation_dba_data: AMS.AMS_METRICS_ALL_B ,
-
FUNCTION: APPS.AMS_METRIC_FORMULAS=
12.2.2
-
APPS.AMS_ACTMETRICS_ENGINE_PVT dependencies on AMS_METRICS_ALL_B
12.1.1
-
APPS.AMS_METRIC_FORMULA_PVT dependencies on DUAL
12.1.1
-
TABLE: AMS.AMS_METRIC_FORMULAS
12.1.1
owner:AMS, object_type:TABLE, fnd_design_data:AMS.AMS_METRIC_FORMULAS, object_name:AMS_METRIC_FORMULAS, status:VALID,
-
APPS.AMS_ACTMETRICS_ENGINE_PVT dependencies on AMS_METRICS_ALL_B
12.2.2
-
PACKAGE BODY: APPS.AMS_METRIC_FORMULAS_PKG
12.1.1
-
APPS.AMS_METRIC_FORMULA_PVT dependencies on DUAL
12.2.2
-
Table: AMS_CATEGORIES_B
12.1.1
owner:AMS, object_type:TABLE, fnd_design_data:AMS.AMS_CATEGORIES_B, object_name:AMS_CATEGORIES_B, status:VALID, product: AMS - Marketing , description: This table stores the definition for categories and is used by Events, Metrics and the Deliverables area. , implementation_dba_data: AMS.AMS_CATEGORIES_B ,
-
PACKAGE BODY: APPS.AMS_METRIC_FORMULAS_PKG
12.2.2
-
FUNCTION: APPS.AMS_METRIC_FORMULAS=
12.2.2
owner:APPS, object_type:FUNCTION, object_name:AMS_METRIC_FORMULAS=, status:VALID,
-
PACKAGE BODY: APPS.AMS_METRIC_FORMULAS_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AMS_METRIC_FORMULAS_PKG, status:VALID,
-
PACKAGE BODY: APPS.AMS_METRIC_FORMULAS_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AMS_METRIC_FORMULAS_PKG, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
PACKAGE BODY: APPS.AMS_METRIC_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AMS_METRIC_PVT, status:VALID,
-
Table: AMS_CATEGORIES_B
12.2.2
owner:AMS, object_type:TABLE, fnd_design_data:AMS.AMS_CATEGORIES_B, object_name:AMS_CATEGORIES_B, status:VALID, product: AMS - Marketing , description: This table stores the definition for categories and is used by Events, Metrics and the Deliverables area. , implementation_dba_data: AMS.AMS_CATEGORIES_B ,
-
PACKAGE BODY: APPS.AMS_ACTMETRICS_ENGINE_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AMS_ACTMETRICS_ENGINE_PVT, status:VALID,
-
PACKAGE BODY: APPS.AMS_ACTMETRIC_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AMS_ACTMETRIC_PVT, status:VALID,