# SmartVisuals Metric & Driver Tree for Power BI

> Power BI KPI tree of your measures linked by + − × ÷, with change vs last year and a formula check; driver attribution, sensitivity and goal seek in premium.

- Page: https://www.smartvisuals.io/visuals/metric-driver-tree
- Fields and settings: https://www.smartvisuals.io/visuals/metric-driver-tree/settings
- Microsoft Marketplace: https://marketplace.microsoft.com/en-us/product/smartvisuals.smartvisuals-metric-driver-tree?tab=overview
- Package: https://www.smartvisuals.io/downloads/smartvisuals-metric-driver-tree-1.0.1.0.pbiviz
- Price: Free tier for every viewer; premium $2.99 per user per month or $29 per user per year on Microsoft Marketplace, with a 30-day free trial. Premium works in edit mode without a licence; unlicensed viewers see the free tier, never a blocked visual.
- Certified by Microsoft: no
- Version: 1.0.1.0
- GUID (visualType and publicCustomVisuals): `smartvisualsMetricDriverTree74D37D1EC5D4113816DC33C2B2D97623`

## What is free

- **Measures linked by their formula**: Pick each measure's parent and operator (+, −, ×, ÷) in the format pane, no DAX; or a Node / Parent / Operator table and one SWITCH measure for big trees.
- **Up to seven measures**: A tree of up to seven measure nodes in full; further measures fold into a "+n drivers" chip with the same values for readers without a licence.
- **Change on every node**: Value, comparison, change and change %, against paired comparison measures or the previous period of a Period column.
- **Favourable direction from the formula**: A cost under profit is better when lower, set automatically through − and ÷ and overridable per measure; ▲ and ▼ next to every change.
- **Formula check**: A parent that differs from its formula gets an "off by" badge and an Unexplained node, so every total still adds up.
- **Shared drivers**: One measure can feed two parents, such as Units under Revenue and under COGS, drawn as a dashed second link.
- **Layout and cards**: Left to right or top down, curved, elbow or straight links with operator badges, card, outline or minimal styles, collapse and expand, pan and Ctrl + wheel zoom.
- **Power BI features**: Tooltips with the formula, cross-filter in tree-table mode, cross-highlight, context menu, bookmarks that keep what is collapsed, four themes, a size and colour for every text and 20 languages.

## What premium adds

- **Driver attribution**: How much of the top measure's change each driver explains, on every node and in an insights strip: Shapley, sequential, explicit interaction or Log (LMDI).
- **Waterfall drawer**: A bridge from the comparison to the top measure, one bar per driver, sorted by impact.
- **Sensitivity**: Elasticities, the value of a 1 % move on each driver and a tornado at the swing you choose.
- **What-if and goal seek**: Change any driver and the tree recomputes from the formula; solve one driver for a target of the top measure. Never saved, never in an export.
- **More than seven measures**: Up to 40 measures in the tree, with up to 12 drivers under one parent.
- **Second comparison, sparklines and table view**: Last year and plan on the same card, a sparkline per node over the Period column, and a table of the tree with CSV export.

## Fields

| Field | Internal name | Takes | Needed | What it is for |
| --- | --- | --- | --- | --- |
| Measures | `nodes` | Measure | Optional | Every measure is a node of the tree (Profit, Revenue, Cost, Volume, Price). Tree-table mode: the one value measure (a SWITCH over the node) |
| Comparison | `comparison` | Measure | Optional | Paired with Measures by position (Revenue PY next to Revenue): last year, budget or plan |
| Second comparison | `comparison2` | Measure | Optional | Paired by position, e.g. plan when Comparison is last year (premium) |
| Period | `period` | Column | Optional | Optional: the last period is now, the comparison is the previous one unless Comparison is bound; feeds the sparklines |
| Node | `nodeName` | Column | Optional | Tree-table mode: the node column of a Node / Parent / Operator table |
| Parent | `parentName` | Column | Optional | Tree-table mode: the parent node (blank for the top measure) |
| Operator | `operator` | Column | Optional | Tree-table mode: how the node enters its parent: + - * / (or add, subtract, multiply, divide) |

## Format pane

Each card is a key under `visual.objects` in a PBIR visual.json; each setting is a property of it. Toggles take `true`/`false`, choices and text a value in single quotes (`'auto'`), numbers a `D` suffix (`12D`).

### Layout (`layout`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Direction | `orientation` | `horizontal` (Left to right), `vertical` (Top down) |
| Space Between Levels | `levelGap` | Number |
| Space Between Nodes | `siblingGap` | Number |
| Link Style | `links` | `curve` (Curved), `elbow` (Elbow), `straight` (Straight) |
| Link Colour | `linkColor` | Colour |
| Link Width | `linkWidth` | Number |
| Show Second-Parent Links (Shared Drivers) | `showShared` | On / off |

### Node Cards (`nodes`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Card Style | `style` | `card` (Card), `outline` (Outline), `minimal` (Minimal) |
| Card Width (0 = Fit Text) | `width` | Number |
| Corner Radius | `radius` | Number |
| Card Colour | `fill` | Colour |
| Border Colour | `border` | Colour |
| Border Width | `borderWidth` | Number |
| Accent Stripe | `accent` | `direction` (Favourable / unfavourable change), `level` (Level colour), `none` (None) |

### Node Names (`nodeNames`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Font Size | `fontSize` | Number |
| Text Colour | `color` | Colour |
| Bold | `bold` | On / off |
| Wrap Long Names | `wrap` | On / off |

### Values (`values`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show | `show` | On / off |
| Font Size | `fontSize` | Number |
| Text Colour | `color` | Colour |
| Display Units | `units` | `auto` (Auto), `none` (None), `K` (Thousands), `M` (Millions), `B` (Billions) |
| Decimals (-1 = Auto) | `decimals` | Number |

### Comparison (`comparison`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show Comparison Line | `show` | On / off |
| Compare With (Period Column) | `compareWith` | `previous` (Previous period), `first` (First period), `back12` (12 periods back) |
| Comparison Name | `label` | Text |
| Show Comparison Value | `showValue` | On / off |
| Show Δ | `showDelta` | On / off |
| Show Δ % | `showPct` | On / off |
| Δ % Decimals | `pctDecimals` | Number |
| Font Size | `fontSize` | Number |
| Text Colour | `color` | Colour |
| Favourable Colour | `good` | Colour |
| Unfavourable Colour | `bad` | Colour |
| Show Second Comparison | `second` | On / off |
| Second Comparison Name | `label2` | Text |

### Operators (`operators`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show | `show` | On / off |
| Font Size | `fontSize` | Number |
| Text Colour | `color` | Colour |
| Badge Colour | `badge` | Colour |

### Formula Check (`check`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Tolerance (%) | `tolerance` | Number |
| Show "Off By" Badge | `showBadge` | On / off |
| Show Unexplained Nodes | `showUnexplained` | On / off |
| Font Size | `fontSize` | Number |
| Text Colour | `color` | Colour |

### Driver Attribution (`attribution`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show | `show` | On / off |
| Method | `method` | `shapley` (Shapley (order-free)), `sequential` (Sequential (in field order)), `interaction` (Explicit interaction), `lmdi` (Log (LMDI)) |
| Explain the Change vs | `basis` | `first` (Comparison), `second` (Second comparison) |
| Contribution on Nodes | `onNodes` | On / off |
| Insights Strip | `strip` | On / off |
| Contribution As | `unit` | `value` (Value), `pp` (Points of the top measure's %) |
| Bar Colour (Empty = Favourable / Unfavourable) | `barColor` | Colour |
| Font Size | `fontSize` | Number |
| Text Colour | `color` | Colour |
| Insights Font Size | `stripSize` | Number |

### Waterfall Drawer (`drawer`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show | `show` | On / off |
| Open When the Report Opens | `open` | On / off |
| Width (%) | `width` | Number |
| Sort Drivers | `sort` | `impact` (Largest impact first), `tree` (Tree order), `value` (Value, high to low) |
| Drivers Shown (Rest Grouped) | `topN` | Number |
| Start and End Bar Colour | `totalColor` | Colour |
| Font Size | `fontSize` | Number |
| Text Colour | `color` | Colour |

### Sensitivity (`sensitivity`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show | `show` | On / off |
| Tornado Swing (± %) | `swing` | Number |
| Drivers in the Tornado | `topN` | Number |
| Lower Driver Colour | `low` | Colour |
| Higher Driver Colour | `high` | Colour |

### What-If and Goal Seek (`whatIf`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show | `show` | On / off |
| Step (%) | `step` | Number |
| Goal Seek: Solve For | `solveFor` | Choice |
| Goal Seek: Target (Empty = Comparison) | `target` | Text |
| Simulated Marker Colour | `simColor` | Colour |

### Sparklines (`sparklines`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show | `show` | On / off |
| Line Colour | `color` | Colour |
| Height | `height` | Number |

### Table View (`table`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Table Button | `show` | On / off |
| Font Size | `fontSize` | Number |
| Text Colour | `color` | Colour |

### Footnote (`footnote`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show | `show` | On / off |
| Font Size | `fontSize` | Number |
| Text Colour | `color` | Colour |

### Buttons and Chips (`controls`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show Toolbar | `show` | On / off |
| Font Size | `fontSize` | Number |
| Text Colour | `color` | Colour |

### Accessibility (`accessibility`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Focus Outline Colour | `focusColor` | Colour |
| Focus Outline Width | `focusWidth` | Number |
| Minimum Text Size (0 = off) | `minFontSize` | Number |
| ▲▼ Symbols With Colour | `symbols` | On / off |

### Theme (`theme`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Theme | `selectedTheme` | `smartvisuals` (SmartVisuals), `dark` (Dark), `clean` (Clean (White)), `slate` (Slate) |
| Font | `font` | `inter` (Inter), `segoe` (Segoe UI), `arial` (Arial), `georgia` (Georgia) |
| Transparent Background | `transparentBg` | On / off |

### Formula (`formula`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Parent | `parent` | Choice |
| Operator | `op` | `+` (+ (add)), `-` (− (subtract)), `*` (× (multiply)), `/` (÷ (divide)) |
| Second Parent (Shared Driver) | `parent2` | Choice |
| Second Operator | `op2` | `+` (+ (add)), `-` (− (subtract)), `*` (× (multiply)), `/` (÷ (divide)) |
| Favourable When | `higher` | `auto` (Auto (from the formula)), `higher` (Higher is better), `lower` (Lower is better) |
