# SmartVisuals Survey Tracker for Power BI

> Brand tracker, NPS and pulse survey trends in Power BI with the margin of error of every wave and the base row. Premium: tested changes, weights, smoothing.

- Page: https://www.smartvisuals.io/visuals/survey-tracker
- Fields and settings: https://www.smartvisuals.io/visuals/survey-tracker/settings
- Microsoft Marketplace: https://marketplace.microsoft.com/en-us/product/smartvisuals.smartvisuals-survey-tracker?tab=overview
- Package: https://www.smartvisuals.io/downloads/smartvisuals-survey-tracker-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): `surveyTracker8E5F1F0ED55F4D0791BB0BCA09A5AAB4`

## What is free

- **The margin-of-error band**: Up to four series over any number of waves, each wave with its band at 90, 95 or 99 %: Wilson or Wald for shares, t for means, the NPS variance for net scores, or the Lower and Upper Bound your agency supplied. Band or error bars.
- **Bases you can see**: A base row (n=) under the axis; waves under your Minimum Base get a hollow marker, an asterisk and a hatched bar, or are hidden, and are never tested. An Effective Base you supply is used as given.
- **Shares, means and net scores**: Shares from a count and a base or from an estimate written as 0.42 or 42, means with their standard deviation, NPS and other net scores from positive and negative counts. A date axis spaces uneven waves in real time.
- **Every reading as a dot**: A Source field draws each agency's or pollster's reading as a dot; several readings in one wave are pooled from their counts.
- **The estimates view**: One dot and interval per series in the latest wave, or a wave you name, with its base.
- **Caption, footnote and lines**: A caption that says when the last move is inside the margin of error, a footnote with base and source from your own template, event and reference lines, end labels pushed apart, data labels and a highlighted series.
- **Templates, themes and Power BI features**: Five style templates with export and import as text, four themes, four fonts, series colours with fx, on-object formatting, tooltips and report page tooltips, cross-filtering, keyboard navigation, high contrast and 20 languages.

## What premium adds

- **Tested change**: Significant changes marked ▲ or ▼ on the line, each wave against the previous wave, a baseline wave or the same wave a year ago, with Holm, Bonferroni or false discovery rate correction; p-values in the tooltip.
- **Before / after an event**: The waves before a campaign or a reorganisation pooled and tested against the waves after, with the difference on the event line for a single or highlighted series and in the findings.
- **Letters between series**: Which series is significantly higher than which in the latest wave, as letters on the end labels and in the estimates view (each series' own letter in the legend), for series that are separate samples.
- **Weighted effective bases**: Map Sum of Weight² and switch on Use Effective Bases: the band, every test and the low-base rule use the Kish effective base. Weighted shares themselves need no licence.
- **Smoothing with its own band**: A rolling window pooled from the counts or a LOESS trend weighted by the bases, each with its own band; overlapping windows are never tested against each other.
- **Trend test**: Trend or wobble over the last k waves: Cochran-Armitage for shares, Mann-Kendall for any metric, with Sen's slope per wave.
- **Source effects**: Each pollster's or agency's lean estimated and taken out, with the adjusted trend drawn beside the raw readings.
- **What your bases can detect**: The smallest change the current bases can tell from noise, as a bracket at the last wave; with Findings, that change in points and the n per wave for a target margin of error.
- **More series and one panel per series**: A fifth series and more, and small multiples with one panel per series on a shared axis.
- **Findings under the caption**: Up to six extra lines with the trend test, the event test, source effects, the detectable change, the n needed and the letters, each with how it was calculated.

## Fields

| Field | Internal name | Takes | Needed | What it is for |
| --- | --- | --- | --- | --- |
| Wave / Date | `wave` | Column | Optional, up to 2 | When each reading was taken: a date (spaced in real time) or a wave name in model sort order |
| Series | `series` | Column | Optional | Optional: brands, segments or regions, one line each |
| Source | `source` | Column | Optional | Optional: the agency, panel or pollster behind each reading (dots, pooling, source effects) |
| Estimate | `estimate` | Measure | Optional | The result per wave: a share (0.42 or 42 %), a mean or a net score. Not needed when Count is bound |
| Count | `hits` | Measure | Optional | Optional: respondents who gave the answer (top box, aware, promoters); with Base n it makes the share |
| Negative Count | `negatives` | Measure | Optional | Optional: the negative side of a net score (detractors); with Count and Base n it makes the net |
| Base n | `base` | Measure | Optional | Respondents behind each estimate (or Sum of Weight): turns on the margin of error and the tests |
| Standard Deviation | `sd` | Measure | Optional | Optional: for a mean, its standard deviation per wave |
| Lower Bound | `lower` | Measure | Optional | Optional: a lower bound computed elsewhere, drawn as given |
| Upper Bound | `upper` | Measure | Optional | Optional: an upper bound computed elsewhere, drawn as given |
| Sum of Weight² | `weightsq` | Measure | Optional | Optional: SUM(weight²) gives the effective base and design effect (Premium) |
| Effective Base | `effbase` | Measure | Optional | Optional: an effective base computed elsewhere, used as given |
| Tooltips | `tooltips` | Measure | Optional, up to 5 | Optional: more measures to show in the tooltip |

## 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`).

### Style Template (`templates`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Template | `preset` | `none` (Default), `agency` (Agency report), `executive` (Executive), `presentation` (Presentation), `print` (Print), `minimal` (Minimal), `custom` (Custom) |
| Applied template | `applied` | Text |
| Export (copy this text) | `exportJson` | Text |
| Import (paste a template) | `importJson` | Text |

### View (`view`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| View | `kind` | `trend` (Trend over waves), `estimates` (Estimates in one wave) |
| Wave to compare (empty = latest) | `wave` | Text |
| One Panel per Series | `smallMultiples` | On / off |
| Panels per Row (0 = auto) | `columns` | Number |

### Metric (`metric`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Metric | `kind` | `auto` (Automatic), `share` (Share (%)), `mean` (Mean), `net` (Net score / NPS) |
| Estimate Is Written As | `scale` | `auto` (Automatic), `fraction` (0.42), `percent` (42) |
| Decimal Places | `decimals` | Number |
| Wave Axis | `axisType` | `auto` (Automatic), `time` (Time (spaced by date)), `categorical` (Evenly spaced) |

### Margin of Error (`band`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show Band | `show` | On / off |
| Confidence Level | `confidence` | `90` (90 %), `95` (95 %), `99` (99 %) |
| Interval for Shares | `method` | `wilson` (Wilson), `wald` (Wald (normal)) |
| Band Opacity (%) | `opacity` | Number |
| Style | `style` | `band` (Band), `bars` (Error bars) |

### Bases (`bases`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Base Row (n=) | `showRow` | On / off |
| Minimum Base | `minBase` | Number |
| Below the Minimum | `lowBase` | `flag` (Hatch and flag), `hide` (Hide the estimate) |
| Font Size | `fontSize` | Number |
| Font Color | `fontColor` | Colour |

### Weights (Premium) (`weights`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Use Effective Bases (Σw²) | `use` | On / off |

### Tested Change (Premium) (`significance`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Mark Significant Changes | `enabled` | On / off |
| Compare With | `reference` | `previous` (Previous wave), `baseline` (Baseline wave), `yearAgo` (Same wave a year ago) |
| Baseline Wave (empty = first) | `baseline` | Text |
| Waves per Year (0 = from dates) | `wavesPerYear` | Number |
| Multiple-Comparison Correction | `correction` | `none` (None), `holm` (Holm), `bonferroni` (Bonferroni), `fdr` (False discovery rate) |
| Test for Shares | `shareTest` | `pooled` (Pooled z), `unpooled` (Unpooled z) |
| Letters Between Series | `letters` | On / off |
| Rise Color | `upColor` | Colour |
| Fall Color | `downColor` | Colour |

### Smoothing (Premium) (`smoothing`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Smoothing | `method` | `none` (None), `rolling` (Rolling window), `loess` (LOESS trend) |
| Waves in the Window | `window` | Number |
| LOESS Span (%) | `span` | Number |
| Keep the Wave Estimates | `showRaw` | On / off |
| Band of the Smoothed Line | `showBand` | On / off |

### Trend Test (Premium) (`trend`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Test the Trend | `show` | On / off |
| Last Waves (0 = all) | `waves` | Number |

### Event Line (`event`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show Event | `show` | On / off |
| Event At (wave or yyyy-mm-dd) | `at` | Text |
| Label | `label` | Text |
| Test Before / After (Premium) | `test` | On / off |
| Waves on Each Side | `window` | Number |
| Color | `color` | Colour |
| Font Size | `fontSize` | Number |

### Reference Line (`referenceLine`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show Reference Line | `show` | On / off |
| Value | `value` | Number |
| Label | `label` | Text |
| Color | `color` | Colour |
| Font Size | `fontSize` | Number |

### Sources (`sources`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show Each Reading | `showDots` | On / off |
| Dot Size | `dotSize` | Number |
| Adjust for Source Effects (Premium) | `adjust` | On / off |
| Trend Span (%) | `span` | Number |
| Readings for an Effect | `minReadings` | Number |

### Sample Size (Premium) (`planner`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show What the Base Can Detect | `show` | On / off |
| Target Margin (points, 0 = off) | `margin` | Number |

### Lines and Markers (`lines`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Line Width | `width` | Number |
| Markers | `markers` | `none` (None), `last` (Last wave), `all` (Every wave) |
| Marker Size | `markerSize` | Number |
| Highlight Series (name) | `highlight` | Text |

### End Labels (`endLabels`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show End Labels | `show` | On / off |
| Content | `content` | `name` (Name), `value` (Value), `both` (Name and value) |
| Font Size | `fontSize` | Number |
| Font Color (empty = series) | `fontColor` | Colour |

### Data Labels (`labels`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show | `mode` | `none` (None), `last` (Last wave), `all` (Every wave) |
| Font Size | `fontSize` | Number |
| Font Color | `fontColor` | Colour |

### X-Axis (`xAxis`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show Axis | `show` | On / off |
| Font Size | `fontSize` | Number |
| Font Color | `fontColor` | Colour |
| Title | `showTitle` | On / off |
| Title Text (empty = field name) | `title` | Text |

### Y-Axis (`yAxis`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show Axis | `show` | On / off |
| Font Size | `fontSize` | Number |
| Font Color | `fontColor` | Colour |
| Gridlines | `gridlines` | On / off |
| Minimum (empty = auto) | `min` | Text |
| Maximum (empty = auto) | `max` | Text |
| Title | `showTitle` | On / off |
| Title Text (empty = measure name) | `title` | Text |

### Legend (`legend`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show Legend | `show` | On / off |
| Position | `position` | `top` (Top), `bottom` (Bottom), `right` (Right) |
| Font Size | `fontSize` | Number |
| Font Color | `fontColor` | Colour |
| Title | `title` | Text |

### Smart Caption (`insights`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show Caption | `show` | On / off |
| Position | `position` | `top` (Top), `bottom` (Bottom) |
| Font Size | `fontSize` | Number |
| Font Color | `fontColor` | Colour |
| Findings (Premium) | `findings` | On / off |

### Footnote (`footnote`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show Footnote | `show` | On / off |
| Template ({base} {n} {neff} {wave} {source}) | `template` | Text |
| Source | `source` | Text |
| Font Size | `fontSize` | Number |
| Font Color | `fontColor` | Colour |
| Explain Marks | `explain` | 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 |

### Animation (`animation`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Draw Lines In | `show` | On / off |
| Duration (ms) | `duration` | Number |

### Accessibility (`accessibility`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Minimum Text Size | `minTextSize` | Number |
| Marker Shapes per Series | `shapes` | On / off |
| Reduce Motion | `reduceMotion` | On / off |
| Focus Outline Color | `focusColor` | Colour |
| Focus Outline Width | `focusWidth` | Number |

### Series Colors (`dataPoint`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Color | `fill` | Colour |
