Model-driven setup
To use the Driver Tree in a model-driven app, add Ninth Forge Driver Tree as the component of a view (the whole table) or of a subgrid on a form (for example, the drivers of one plan), then map your columns. Saved scenarios go straight to Dataverse with each user’s own permissions.
What your table needs
One row per node. The row’s primary name column is the name on the card.
| Column | Type | Required |
|---|---|---|
| Parent | Lookup to the same table | Yes, for a tree. Rows with no parent are the top level of a tree; several make a forest with a picker. |
| Actual | Whole number, decimal or currency | For inputs (leaves). Calculated nodes can leave it empty, or hold a stored value to check against. |
| Target | Whole number, decimal or currency | No |
| Operator | Choice or text: Sum, Product, Difference, Ratio, Average, Weighted average, Formula, Input | No. Leaves default to Input, parents to Sum. Symbols (Σ × − ÷) work too. |
| Formula | Text, e.g. revenue - costs |
When the operator is Formula. Names are the children’s keys. |
| Key | Text | No. The name a parent’s formula uses for this node; default is the name in lower case with underscores (Gross profit → gross_profit). |
| Unit, Format | Text (or a choice for Format: Number, Currency, Percent, Compact) | No |
| Lower is better | Yes/No | No. For costs: below target shows as good. |
| Weight | Number | Only under a Weighted average parent. |
| Sort order, Owner | Number; owner, any lookup, or text | No |
| Scenario value | Decimal or currency | Only to save what-if scenarios. |
| Period | Date only | No. One row per node per month gives a period picker and sparklines. |
Use the “Date only” behaviour for the period column. Rows for calculated nodes can leave Period empty: they then apply to every month, so only inputs need a row per month.
Add it to a view
-
In Power Apps, open your solution, then your table, then Views. Open the view to show as a tree, for example “EBIT — by month”.
-
Make sure the view includes every column you’ll map, and that its filter returns the whole tree: the tree loads every page of the view. Sort it by Sort order if you have one.
-
Select Components, then + Add a component, then Ninth Forge Driver Tree. (In the classic view editor it’s Custom Controls, then Add Control.)
-
In Edit Ninth Forge Driver Tree, map the columns under Nodes and set the options (see below). Under Show component on, tick Web, and Mobile and Tablet if you like. Select Done, then Save.

-
Select Save and publish.
Open the app and pick the view: the rows show as a driver tree.

Add it to a form subgrid
Use this to show, for example, the drivers of the plan on screen: put the drivers in a table with a lookup to the plan, and a subgrid of that relationship on the plan’s form.
- Open the form in the form designer and select the subgrid (not its section). Its Table is your drivers table, through the relationship to this form’s table.
- At the bottom of its properties, open Components, select + Component, then Ninth Forge Driver Tree.
- Map the columns as for a view, then select Save and publish.
On a form, the tree is 640 px tall.
Map columns and settings
The view designer shows each setting by its full label, such as Parent (empty = top of a tree), and lists the choices by their value names, such as lr, as below.
| Setting | What it does |
|---|---|
| Parent, Operator, Formula, Key, Actual, Target, Weight, Unit, Format, Lower is better, Sort order, Owner, Scenario value, Period | The columns to read (and, for Scenario value, write). Only Parent is needed for a tree; inputs need Actual. |
| Title | The tree’s name in its toolbar. |
| Direction | lr (left to right) or td (top down). |
| Targets | stored (on each node), or calculated from the inputs’ targets, added up the same way as their actuals. |
| Levels open at first | Default 2: the top and two levels of drivers. |
| Open as | tree or table. |
| Allow what-if, Start in what-if | Offer what-if, and whether it’s on when the page opens. |
| Period to show, Periods in sparklines, Show sparklines | With a Period column: which month opens (YYYY-MM-DD, empty = the latest), how many months the sparklines cover (default 12), and whether to show them. |
| Currency, Number locale | An ISO code such as AUD, and a locale such as en-AU (empty = the user’s language). |
| Theme, Accent colour | light or dark; a hex colour such as #0F766E. Text on the accent stays readable whatever you pick. |
| Text size (%), Text sizes by role | Bigger or smaller text (default 100); cards grow to fit. The JSON form sets single roles. |
| Licence key | Your Ninth Forge Driver Tree key. Leave empty to use the Ninth Forge licence keys environment variable. |
| Save mode | Leave on auto. It saves directly in model-driven apps. |
Permissions
The tree uses the signed-in user’s Dataverse permissions. Anyone who can read the rows can explore what-if; Save scenario appears only for users who can write to the table, and only when a Scenario value column is mapped.
Last updated