Use this guide to add, order, clone and delete the branches on a Method's 2. Factor Assignment tab, write their conditions, and set what the Fallback branch does. The Admin and User roles can edit a Method. The Viewer role can open a Method but cannot save changes.
For what each branch action does, see Branch actions: Set Factor, Set Field Values and Map Factors with AI.
How does the Factor Assignment tab work?
A Method's 2. Factor Assignment tab holds its branches. Each branch has conditions and one action.
Branches run top to bottom, and the first branch whose conditions match a row wins. Later branches never see that row.
How do I add a branch?
Select Add Branch. The new branch appears at the bottom of the list, above the Fallback branch.
Select the edit icon on the branch and give it a Branch Name.
Add your conditions.
Select Done.
Select the branch card. In the right panel, under "Action for:", set the action.
Select Save.
Drag a branch card to move it. Avarni renumbers the branches when you drop it.
A new branch is named "New Branch". It starts with the condition Amount Equal 1000 and the action Map Factors with AI. Change the condition. If you do not, the branch catches only rows with an amount of exactly 1000.
How do I clone, rename or delete a branch?
Each branch card in a Method has three icons:
Edit branch opens the dialog for the name and the conditions.
Clone branch adds a copy, named "Copy of" and the branch name, directly below. The copy has the same conditions and action.
Delete branch removes the branch at once, with no confirmation. To get it back, leave the page without saving. This discards all unsaved changes.
Two branches can have the same name. Use different names so you can tell them apart.
You cannot turn a branch off. To stop a branch from catching rows, delete it or change its conditions.
How do branch conditions work?
Branch conditions sit in groups. Criteria inside a group join with AND. Groups join with OR. The branch runs if any group is satisfied.
Use Add Criteria to add a condition to a group, and Add Group to add an alternative set.
Use the Clone group icon to copy a group directly below it. Use Delete group or Delete criteria to remove one. Avarni hides Delete group when the branch has one group, and Delete criteria when the group has one criterion.
You can build conditions on Amount, Activity Class, Country, Date, Description, Location or Address, GHG Emission Category, Input Unit, Invoice Number, Utility Account Number, Utility Meter Number, Entity, Facility, Supplier Name and Scope.
Each active custom field in your organisation also appears in the Field list, above the built-in fields. Avarni treats custom fields as text. If you change the field, Avarni sets the operator back to Equal and clears the value.
Text conditions offer Equal, Not Equal, Contains, Not Contains, Contains Keyword, Not Contains Keyword, Contains Keywords, Not Contains Keywords, Is In, Is Not In, Is Empty, Is Not Empty, Starts With and Ends With. Number and date conditions offer Equal, Not Equal, Less Than, Less Than Or Equal, Greater Than and Greater Than Or Equal.
GHG Emission Category, Input Unit, Country, Entity, Facility and Scope conditions offer Equal, Not Equal, Is In, Is Not In, Is Empty and Is Not Empty.
Text conditions ignore upper and lower case. For what each operator matches, see Troubleshoot a Method.
What values can a branch condition hold?
Text: up to 200 characters for each value. For Is In, Is Not In, Contains Keywords and Not Contains Keywords, type each value and press Enter. Avarni removes spaces at the start and end of each value.
Amount: a number. You can use a minus sign and a decimal point.
Date: a date inside the Method's date range.
GHG Emission Category: only categories of the Method's scope.
Input Unit: with a Unit type set, only units of that type. With no Unit type, any unit.
Is Empty and Is Not Empty need no value.
What action can a branch take?
Each branch in a Method has one action. Two types are available:
Set Factor. You choose the factor and, if you want, set field values such as GHG category, entity, facility and custom fields. Leave a field empty and Avarni uses the value in your uploaded file.
Map Factors with AI. You choose a factor set and Avarni selects a factor per row.
You cannot type your own factor value into a Method. Add a custom factor first under Settings › Emission Factors, then select it on the branch.
To exclude the rows a branch catches, set the branch's status to Exclude. For which statuses each action allows, see Branch actions: Set Factor, Set Field Values and Map Factors with AI.
What does the Fallback branch do?
One Fallback branch sits at the bottom of a Method's branches, labelled "If none of the criteria are met, go here:". It catches every row no earlier branch matched.
You cannot delete, clone or move the Fallback branch, and you cannot add conditions to it. You can rename it with the edit icon. Set its action to whatever you want unmatched rows to receive.
