To add a data field in a Datamart:
-
Click a Datamart's label to display its details.
-
On the details page, click the Add Field button to add a new data field.
You can also use the Add Fields option. For details see How to Upload CSV Data into Analytics. -
Select the Function of the field.
Not all fields must have a function, they can be left blank. The options are:-
Key – This field is the primary key (marks if the line is unique). The source must have at least one key field, though more can be selected. Any non-numeric field can be part of the (composite) key. This field is important for updates of the data lines.
Make sure you select here a field whose data do not contain leading spaces or national special characters (for details see Encoding). -
Alt-Key – This field is used when a source represents data that is to be optionally matched to Datamart rows using different fields.
Example: The source ‘Customer Discount’ specifies a % discount to be applied to an invoice amount, either for a given customer or a customer group. A customer discount row may have either a Customer ID or a Customer Group ID field value, but not both. If these fields are defined as alt-keys, Pricefx will attempt to match rows using the key with the lowest rank first. If unsuccessful, the second, third etc. key will be attempted. -
Level – This field is used when a source represents data on different, hierarchical levels.
Example: The source ‘Product Discount’ specifies a discount of the list price to be applied for a given product; or in absence of such detail, for all products in a given product family; or a product line, etc. On Datamart refresh, using Level key fields, the system will first find rows with all level fields populated (and matching Datamart rows). Then it will try all rows where the lowest level (the one with the highest rank) matches, and so on.
Since the release of Southside 15.0 we have deprecated the Alt-Key and Level type of Function fields. -
Pricing Date – Field which is used as a date. It must be a date field (data type).
-
Per Unit Basis – Field which is used to calculate the "per unit". It must be a quantity field (data type).
-
Percent Basis – Field which is used as a percentage basis. It must be a money field (data type). All other money fields are calculated as a percent of this field.
-
Time Dimension
-
Distribution Key – A single column that is used as a key for the Distributed Datamart or Distributed Data Source. When selecting the distribution column, it is important to consider certain limitations and desired characteristics to ensure optimal performance and efficiency.
-
Values in this column cannot be NULL.
-
A Primary Key on a distributed table requires the distribution column to be part of the unique constraint definition.
-
Distribution Key should have high cardinality and an even distribution of values.
-
Distribution Key is a column often used in joins and filter clauses. Usage of the Distribution Key improves query performance.
Example: Usually, either the product ID or the customer ID field will be selected as the distribution key.
-
-
-
Select the Data Type:
-
Number – Floating point number.
-
Quantity – Marks a field which contains the amount of products sold. The amount in this field will be taken into account for all fields marked "Per Unit" or "Extended". It makes sense to have just one Quantity field.
-
Text – String
-
Date – Data is formatted as a date.
-
Money – Data is formatted as money: contains a number which will be combined with the Currency field. Can be converted to a different currency.
-
Currency – Data is formatted as currency and are used for the conversion to other currencies. Only one Currency field is allowed. For details on currencies, see Set up Currency Conversion in Datamart.
-
UOM – Unit of measure: data is a unit. These can be converted into another unit.
-
LOB – Data is a long string of text (up to 4,000 characters). Data of this type cannot be used for grouping.
-
DateTime – Data is formatted as date and time. It is used in detailed time series.
-
Boolean – Data indicating false or true.
-
-
(Optional) Define the number format applied to the field (e.g., #,##0.00). Available only for numeric fields.
-
Set Label and Name. The label is the usual representation of a field in the user interface. Field names are used in calculated field expressions (in a Datamart definition) and formula logic, as well as any integration configuration (Data Loads, exports…). Generally, a label change is cosmetic while a name change would require corresponding modifications wherever the field is used. A name must not contain any spaces or special characters (only [a..z], [A..Z] and [0..9] are allowed).
Avoid having a field with the name id, Id or ID; otherwise the Datamart cannot be deployed. -
Select Measure indicating whether the data is a sum or a value per unit. This field is only necessary for data types Money and Number.
-
Per Unit – (Raw) data are available per unit. Such, the values are multiplied by the quantity to form a sum.
-
Extended – (Raw) data are the sum. Such, the values can be divided by the amount in order to calculate the value of each unit.
-
Fixed – Data and numbers are not multiplied by the quantity nor divided.
-
-
Define if the field can be used as a dimension in analytical charts and tables (only Text, Date, Currency, Integer, UOM and DateTime data types can be used as dimensions; for details on Integer click here).
-
(Optional) You can hide this field from the drop-down lists with variables (for axis, group-by, additional measure, generic and dimension filters) in charts and rollups (but not Dashboards). Remember that if you later change the field visibility, you must re-deploy the Datamart.
-
(Optional) Define the Meta Description field. For more information see Meta Description.
-
Click Add. Repeat the process until you have defined or changed all fields.
-
Click Deploy.
Meta Description
This field provides more relevant and accurate support for the Pricefx Copilot and for the Agents. The metadata in the Meta Description field are consumed by the Pricefx Copilot. The purpose of the Meta Description field is to bridge the gap between technical data names (such as CUST_ID_123) and their real-world business meaning. This enables the Pricefx Copilot to understand the intent behind a user's question and to deliver more intelligent assistance. The field is optional and limited to 1,000 characters.
For more information on how to complete the Meta Description field, see the Quick-Start Data Specification.