Calculated Field Sets
Calculated Field Set (CFS) is a data enrichment/transformation/manipulation task, which is usually used during integration (after upload of data) to enrich/modify/transform/clean values of columns in data tables (e.g., Products, Customers, Extensions, Company Parameters, ...).
It processes the rows of the dataset and writes the results back to it.
CFS uses data processing logic (see Calculation Logic) to calculate new values of attributes (e.g., reference prices, values based on comparison and other product/customer parameters) based on other existing data.Â
The calculation mechanism used for these sets is the same as for the price calculation (see Calculation Logic). The new values are stored in the original source tables, ready to be used in price calculations (in Price Lists and Manual Price Lists).
Calculated Field Sets can be accessed from the Administration menu.
The following actions are available:Â
Add a new set.
Duplicate the selected set with all its settings.
Delete the selected set.
Calculate the selected set. The Status sequence is: Draft > Pending > Processing > Ready. Then the results can be seen in the according table (products, customers or company parameter). In the 'Pending' or 'Processing' states, processing can be aborted by clicking the Cancel Calculation button.
Configure the selected set.
When working the CFS table, you have all of the standard table options available. (Note that sorting made by the user in the configuration table and saved in the CFS configuration has priority over sorting saved in a view preference. Also, filters applied in configuration are not saved in view preferences.)
Calculated Field Sets operate on all records in the particular source or on a subset if you employ a simple filter on the grid.
Create and Configure a Calculated Field Set
Follow these steps:
Click the Add button and enter a Label and the Target Date or the Relative Target Date. The target date will be used in the calculation to select the correct input data, for example, Company Parameters. The relative target date is relative to the current date.
Select the new set in the CFS list and click the Configure button. A new dialog Calculation Setup will open.
In the first tab Source Selection, select the type of table to be used as a source. Possible Source Types are:
Product – The set will be based on products and the results written to the product master.
Customer – The set will be based on customers and the results written to the customer master.
Company Parameter – The set will be based on a parameter and the results written in the selected parameter. In this case, the parameter has to be selected.
Product Extensions
Customer Extensions
Price Records
Rebate Records
Manual Price Lists
Select a subset by setting a simple or advanced filter.
Optionally, set a Concurrency Key Suffix. Normally (if you leave the field empty), all CFSs for the same underlying object (e.g., product master) are executed in sequence, one at a time. If you want to run two or more CFSs in parallel for the same object, you need to specify a suffix. If you define, for example, two CFSs with suffix 1 and 2, both will run in parallel at the same time for the same underlying object.Â
 Executing two or more concurrent conflicting CFSs can make them to block each other. Therefore it is important to sequence those CFSs which could be in conflict.On the second tab Calculation Setup, select a Calculation Logic from the drop-down menu. (The calculation logic must already be created, have the 'Active' status and appropriate Display Mode.)
Optionally, set up other options:
Allow distributed calculation – Performs calculations simultaneously. This is useful for large tables as it increases the calculation performance but you cannot insert/update/delete rows. Detailed settings can be made in the pricefx-config.xml file.
 References and dependencies within a Price List need to be considered in the price logic.Preserve Last Update Value – If checked, the fields Last Update and Last Update By in the source (target table) are not updated by the Calculated Field Set.
 Last Update will only be updated if the update record differs from the record in the target object. If you push the same item to the database, the update is ignored and hence Last Update Date and Last Update By is not updated.On error: Clear field value – If checked, in case of an error the field in which the calculated value should be written is cleared. If not checked, the previous value will remain.
On the right side, you can map the results from the calculation to existing fields (columns) of the source.
 The data in these fields will be overwritten by the calculated data.In addition, the specific calculation logic may require entering values for some extra parameters.
Save the changes.
Found an issue in documentation? Write to us.
Â
Pricefx version 13.1