Skip to main content
Edit a formula template
Updated over 3 months ago

Prerequisite : This feature is available for users with a functional administrator role.

Consider the following example :

Imagine we have an operation spread across 2 different regions, with 2 sites per region and 1 compressor per site.

Each compressor sends two different metrics: hydrogen flow rate and pressure. These two metrics are based on a metric model.

For each compressor, we want to know the volume of hydrogen compressed.

To do so, we need to create a formula where we multiply our two metrics:

Volume (calculated metric) = flow (metric 1) * pressure (metric 2) * compression coefficient.

To avoid creating a formula for each compressor, we created a formula template (link to the article) that will automatically generate a formula for each compressor.

Now, imagine we consider the compression coefficient negligible in the volume formula and want to remove it.

It is possible to edit the formula template and apply the changes to all formulas generated from the model. To do this, follow the procedure below:

To edit a formulas template, connect to Io-base, then go to the Functional Tree menu.

Then, select the desired tree structure.

Go to the Types tab, and select the type of element for which you want to create a generic formula.

In the "Associated Formulas" section, go to the Actions tab, then select "Edit Template" :

Make the desired modifications, then click on "Save Formula Template".

Your template has now been modified.

To apply these changes to previously generated formulas by the model, they need to be regenerated.

Go to the Actions menu, then click on "Generate formulas" :

The following window opens :

The boxed symbol above indicates that the generic formulas will be updated.

Click on "Generate Metrics".

The confirmation window opens. Enter "generate" and then click on "Generate items".

The formulas associated with the model have been updated.

Did this answer your question?