In the Data enrichment chapter, we have several functions to manipulate the data that is coming into the system. The first Enrichment function that we go through is the View Function.

Key Capabilities of the View Function
The View Function in the Universal Model provides various capabilities essential for effective data management. Here’s a brief overview of what you can achieve with it:
- Projection and Aggregation
- Data Selection and Filtering
- Column and Data Pruning
- Data Mapping
Projection and Aggregation
One of the primary uses of the View Function is to project and aggregate data:
- Projection: Select and display only the relevant data fields you need for further processing.
- Aggregation: Perform summary operations such as summations, maximum, minimum, and average values across selected datasets.
- Practical Example: Suppose you must generate a summary report of sales data. You can use the View Function to project only the sales figures and customer regions. Then, aggregate the data to calculate total sales, average sales per region, and identify the maximum and minimum sales values.
Data Selection and Filtering
Another crucial capability is data selection and filtering:
- Record Reduction: Apply selections to filter and reduce the number of records for subsequent processing.
- Conditional Data Selection: Use specific criteria to include or exclude records based on your requirements.
Column and Data Pruning
Column and Data Pruning helps in managing the data fields that you work with:
- Exclude Unnecessary Columns: Explicitly include only the columns required for processing, in that simplifying data handling and increasing performance.
- Optimize Data Sets: By reducing the number of columns, you enhance data processing efficiency and clarity.
Aggregation and Projection

- Create the View Function in the "Manage Functions" tab of your environment.
- In the initial Configuration Screen, choose "Edit".
- Fill the "General Information" section such as
- Type: Projection or Aggregation
- Input: The function you'll be using for your input data
- In the "Fields" section, choose Create.
- A line will be added in the "Fields" section where you can choose the:
- Input Fields from your input function
- Aggregation or projection Option
- Choose "Save".
- Activate the function by activating the environment in "Manage Environments.
- Optional Steps after objects activation:
- Run the function via "Manage Functions" or "Manage Activities."
- To show data, see "Show Data."
View – Section ‘Fields’
Input Field coming from the input that can be processed further. It is not mandatory to add the field here, but adding a field means you can further perform aggregation, exclude it from the result, map it to another field or perform a value selection.
Select an aggregation option ("Average", "Count", "Group", "Maximum", "Minimum" or "Summation") from the dropdown list if you want to combine or group data records.
The system maps the field to an output field if you are using Aggregation options, such as "Minimum", "Maximum", "Summation", "Count", or "Average".
If you choose the Aggregation option "Group", mapping is possible even if no output field is selected.


