In this article, you learn how to create templates and use them in your model.
A template is a predefined layout of rows that can be used to build models with repetitive structures. You create the template once based on your requirements and reuse it multiple times across the model.
For example, a template such as Net Profit can be created once and then applied across different product categories to maintain a consistent structure.


Gross Profit
Gross Revenue
Sales
Other Revenue
COGS
Cost of Sales
Support Costs
Rent
Other Costs

The template structure is created as shown:


Templates can be inserted into the model in two ways:


Insert the template at only specific levels in the model based on filter or set criteria. Assuming you have added two row dimensions, Company and Department, you can now set conditions based on them.
Simple: Choose the specific categories or levels to apply the template. Use Search to find any level. This is ideal for straightforward selection scenarios where no complex logic or grouping is required.

Advanced: Define complex rules for applying templates by combining multiple filters and groups.

In this mode, you can:
Each group can have its own AND/OR logic, allowing you to control how conditions are evaluated. For example:
If you choose Replace, the template is applied to the model as shown below. The template cannot be edited directly from the model; instead, edit the template to modify the row structure.

You can create multiple templates for a model and apply them wherever required.
Select Manage Template to edit, duplicate, or delete inserted templates.
Select the template that you want to modify from the list of available templates in the dropdown. Then choose the appropriate action icon to perform the required operation.
