TCViz

Changelog

KPI Card Pro  ·  current version 2.5.0.0

2.5.0.0 Current 2026-11

Changed

Fixed

2.4.0.0 2026-11-05

Changed

  • The default look now follows the report's theme. A card with no style of its own takes its colours from the theme, as a native visual does. This also applies to reports already built: if yours relied on the old look, choose *Format → Style template → Classic*, which stays free.
  • A percentage now varies in points. A measure formatted as a percentage going from 25% to 27% shows ▲ 2.0 pp, not ▲ 8%. Reports already built will show the new figure. To go back, turn off *Variance → Percentage points for % measures*.
  • Latest point and Last N points now require Pro, as documented. They worked without a licence by mistake. A report without a licence that used them shows the total of the period in reading view. While you edit, they are drawn under the Pro preview watermark.
  • Without a licence, the Small Multiples preview shows the first five cards, in the columns of the grid, and the watermark says so. With a licence, up to fifty.
  • A style changes how the card looks, never what fits in it. The content sits in the same place with every style, framed or not, so changing style does not move a laid-out page. Clean, Bold and Minimal no longer set their own font size; a style sets colours, weight, the trend's line style and the serif of Ledger and Editorial, and a font you chose wins over that serif. A padding you chose under *Card* is kept. *Reports without a padding of their own use a tighter one: 8 px at the sides and 6 px above and below.*
  • No frame inside the frame. On *Report theme*, the card or grid draws no border, shadow or background of its own around it: the visual's container provides them, as with the native Card. Setting anything under *Card* brings the frame back. Each card in a grid keeps its own.
  • A more compact card. With no label, the image shares the row with the number. Without a trend, the content is centred vertically. The title is centred with the image and set slightly apart from the number.

Added

  • Six Pro styles: Boardroom, Ledger, Editorial, Signal, Aurora and Terrace. Choosing one without a licence draws it on your own data under the Pro preview watermark; reading view shows the free look.
  • Trend position (Pro): below the figures, to their right, or Auto, which goes to the right from 360 px of card width. Below 260 px the trend stays below whatever you choose. With the trend on the right, the Secondary KPIs go below.
  • Small Multiples title alignment (Pro): left or centre, with the same names for these settings as in the rest of the collection.

Fixed

  • Percentages and other non-additive measures were summed across the months when a Trend was bound. A gross margin could read 455.9%. The card, its Secondary KPIs and the cross-highlighted value now use the total Power BI calculates. If Power BI sends no total for a percentage, the card leaves the figure out instead of showing a sum. *Last N points* is a sum by definition, so a percentage keeps its total there. If Power BI sends no total for any other measure, the months are still added: an average or a distinct count needs that total.
  • Trend bars did not start at zero. They started at the lowest value of the series, so the lowest month had no bar and the differences looked larger than they were. Bars now start at zero, and negative values go below it. *Trends drawn as bars will look flatter after the update.* Line and area keep their scale.
  • Large grids could lose cards. The visual asked Power BI for 1,000 rows, so 50 cards with 24 months each could arrive incomplete: cards missing and the last one summing only the months it received. It now asks for 5,000.
  • Secondary KPIs could not be read on dark styles or dark themes: they kept their dark default colour. They now follow the value and label colours of the style, unless you chose your own. Separator lines and the scroll bar also adapt.
  • On a card short of height, the main number could be squeezed until it disappeared. It now never shrinks that way: the extras are withdrawn first, starting with the trend.
  • A Pro style chosen without a licence drew dark text on its dark background until the next refresh.
  • In high contrast the variance uses the theme's colour instead of fixed green, red and white, and the scroll bar follows the theme.
  • A format with a literal % (0.0"%") is no longer read as a percentage.
  • Screen readers hear the same variance the card shows, in points for a percentage.
  • The tooltips of the prior value and the variance, and the licence notice for the styles, follow the report's language.
2.3.0.0 2026-10-20

Added

  • Conditional formatting (fx) on the value colour and the card background (Pro). *Main value → Color* and *Card → Background color* now have Power BI's fx button: rules, gradient or field value, evaluated card by card in Small Multiples. On a single card Power BI does not pass the result of a rule to the visual, so there the colour comes from Color rules, which compare with the target, the prior period or the value itself. The 2.2 notes said the fx button was not available to visuals that read data as a matrix; that was wrong, and this version uses it.

Changed

  • A single card fills the visual. Until a font size is chosen, the main number grows with the visual — like the native Card — while the label, variance and prior line grow far less, and the card is centred vertically. With a trend line the number stops at 40% of the height so the line keeps its room. A size you set under *Main value → Font size* is kept exactly. *Reports that never set a font size will show a larger number after the update.*
  • Long card titles in a grid wrap onto two lines before ending in "…"; the full title is still in the tooltip.
  • New start screen, the same as the other TCViz visuals: what the card does, the three wells to fill (Value, Prior Period, Trend), links to the guide, the product page and the video — opened only when you click them — and what Pro adds, in three sizes.

Fixed

  • Turning interactions off for the visual now stops its clicks from filtering the page. The visual read the setting from where older versions of the Power BI API kept it; it now reads it from hostCapabilities.
2.2.0.0 2026-10-12

Added

  • Click a trend point to filter the report by that period. In small multiples the selection carries the card too: March of Spain, not March of everyone. Ctrl+click adds points, clicking empty space clears, and the selected points are marked with a ring. In bar trends the other bars dim.
  • Color rules (Pro) — the card's conditional formatting. *Compare value with* gains Value itself, with thresholds in the value's own units, and *Apply color to* gains Card background (a light tint) and Card border. Power BI's fx button is not available to visuals that read data as a matrix, which this one does to combine Small Multiples and Trend; Color rules is the answer to that, not a workaround. The card formerly called Status keeps every setting.
  • Style templates (free): Classic, Clean, Bold, Minimal, Soft and Midnight. A template only fills settings you have not changed yourself, and only touches colours, fonts and the size of the number — never the Pro card styling. On dark cards the variance colours lighten automatically.
  • Setup guide inside the visual (free). While you edit, a small panel lists the optional fields, ticks each as you add it, and offers the templates as one-click previews. ✕ or Finish closes it; *Format → Style template → Setup guide* brings it back. Never shown in reading view.
  • Format on the canvas. In format mode, click the number, the label, the variance, the trend line or the card to format it there, with shortcuts to the template, display units and chart type.
  • Twelve languages. English, Spanish, French, German, Italian, Portuguese (Brazil and Portugal), Dutch, Polish, Japanese, Simplified Chinese and Korean — the Format pane, the setup guide, the messages and the licence notice.

Changed

  • The layout adapts to the size of the visual. The main number shrinks to fit instead of being cut off with an ellipsis — measured exactly, since a number a fraction of a pixel too wide used to show "14…". In a grid every card takes the size of the one that needs it most. Small Multiples *Columns* becomes a maximum: below about 150 px per card fewer columns are used. A single card that is too short withdraws, in order, the trend, the prior/target line, the secondary KPIs, the status text, the variance and the label; the number always stays.
  • Accessibility. Screen readers hear the whole card — value, period, variance against the prior, target and status — instead of only its name. Arrow keys, Home and End move between cards. The trend line is a slider: arrow keys step through the points, each one announced, and Enter filters by it. The focus ring uses the TCViz blue, and yellow in high contrast.
  • A card is a button only when there is something to select; otherwise it is a group with its summary.
  • New Nord-style icon.

Fixed

  • Clicking a card filtered the report but nothing changed on the card (certification note 1180.2.2.3, *Filter out*). The selected card now stays sharp and the others dim to 30%, and the single card filters through its trend points.
  • The Format pane was always in English, even with the Spanish translation installed: the settings carried no translation keys. They are now applied from capabilities.json to cards, settings, descriptions and list options.
  • The status text was drawn in a serif font in some hosts; it now uses the label font.
  • Two cards of the Format pane had no translation keys (*Value & comparison* and *Secondary KPIs*).
2.1.0.0 2026-10-02

Added

  • Status (Pro). The value as a percentage of the target or of the prior period, against two thresholds, in three states: on track, warning and off track. *Lower is better* mirrors the logic for costs, defects or churn. The colour goes to the value, to an accent bar on the left of the card, or to both, and the state is also written under the value — "● On track · 103.1% of target" — so it never depends on colour alone. In high contrast only the words are shown. The tooltip carries it too.
  • Hover value on the trend line. A guide and a label with the period and its value, in the measure's own format.
  • Modern visual tooltips (supportEnhancedTooltips).
  • Dynamic format strings. The visual declares general.formatString, so when a measure's format is chosen by DAX row by row, Power BI can send it value by value and the card uses it; otherwise the measure's format applies.

Changed

  • Numbers keep the format of your model. Every figure — value, prior, target, variance, secondary KPIs, tooltip fields — uses its own measure's format string and the report's language through Power BI's valueFormatter: currency, percentage, thousands separators and decimal mark. Display Units still scale on top of it, Auto picks K, M or bn, and a percentage is never scaled.
  • Decimal Places applies only when you set it. Until now it forced one decimal on every card and overrode a 0.00% defined in the model. Reports that never touched it now show the decimals of the measure's format.
  • The variance percentage follows the report's language — 12,5% in Spanish, 12.5% in English.
  • Secondary KPIs place themselves. *Position* is Auto, Right or Bottom. On the right they form two aligned columns, numbers right-aligned and every pill at the same x. Below the value they go in a row when they fit and in a list when they do not — one line per KPI, or name above number and pill on very narrow cards — and every card in a grid uses the same layout. In Auto, narrow cards move them below instead of hiding them, also in small multiples; only *Right* withdraws them below *Min width beside value*.
  • The grid never scrolls sideways. Columns always fit the width; when the cards need more height, the grid scrolls vertically.

Fixed

  • A percentage measure was drawn as 0.3 instead of 30%, and the free-text suffix "%" produced 0.3% — a wrong number. The format now comes from the model.
  • Auto display units showed 114,635 as "0.11M". It now reads 114.64K.
  • Secondary KPIs disappeared below the value with seven-digit figures, because the number was squeezed to zero width beside its pill and the whole row was withdrawn. The row now turns into a list instead.
  • Secondary KPI pills zig-zagged, each placed right after a number of different width.
  • npm run eslint — the exact command certification runs — was missing, and the lint reported twelve errors in two Node build scripts. They are now excluded, as in the rest of TCViz's visuals.
2.0.0.0 2026-09-22

Added

  • Secondary KPIs. Up to three supporting measures, stacked to the right of the main value, each with its own variance. A Secondary KPIs prior well pairs the comparison values by position — the first prior with the first KPI — which is the only way to relate them without inventing a naming convention the user would have to guess. They carry no selection identity: they are context for the headline, not entities to filter by, and clicking one would have to answer what "filter by Margin" means, which is nothing. The whole column is dropped below a configurable card width instead of being squeezed: compressing the main value to fit context loses the one thing the card exists to say. It applies in small multiples too, measured against the width of each cell rather than of the visual, so it appears when it fits and withdraws when it does not.
  • Value & comparison: three modes for what the big number shows. *Total of the period* is unchanged and remains the default. *Latest point in Trend* takes the last point of the series and compares it with an earlier one. *Last N points* sums the last N and compares against the N before — on a monthly series, N = 12 is the rolling year against the previous one, while the sparkline keeps all its points. Both new modes remove the need for a date table and DATEADD measures: bind the date field and the visual reads the comparison off the series it already has.
  • Period label. Prints which point the value is and which one it is compared against — *Dec 2025 vs Nov 2025*. The visual has no notion of calendar: it steps back a position in the series, so a step of 12 is 12 months only if the series is regular. Printing it is what makes that verifiable instead of assumed, and it also catches the common mistake of binding the date hierarchy, where the series turns out to be years.
  • Pro preview. Without a licence, and in edit mode only, a Pro feature the user turns on is drawn *working* under a "Pro preview" watermark naming it, instead of being silently ignored. Reading view — and any environment where licences cannot be read — still draws the free result with no watermark, so a published report never uses an unpaid feature. Granted per feature, only for the one actually turned on.

Fixed

  • The Upgrade bar was being overwritten, so a user told to buy had nothing to click. Power BI shows one licence notification at a time and the last call replaces the previous one. notifyLicenseRequired() ran before notifyFeatureBlocked() in the same update(), so on the first attempt at a Pro feature the banner wiped out the Upgrade bar — the call that carries the purchase path. The sequence is now clearLicenseNotification() → the banner naming the feature → and, after ~10 s, the persistent Upgrade bar.
  • Variance colours and extra tooltip fields were gated but never announced. The render blocked them; nothing told the user why. Changing the positive variance colour did nothing, with no explanation. Both now raise the notice and the preview like every other Pro feature.
  • Small Multiples (Pro) lost its (Pro) in English. displayNameKey overrides displayName, and the en-US string dropped the suffix while es-ES kept it. Tooltips was missing it in both.
  • Returning from another report page dropped every Pro feature. Power BI recreates the visual on each page switch, so the first render runs before the licence resolves and the preview is off. The licence then resolved to Free and applyLicense() only notified, without repainting — correct before the preview existed, since nothing drawn depended on the licence for a free user. The card stayed on one tile, with no trend and no secondary KPIs, until the user touched a setting.

Changed

  • Secondary KPIs follow the same period as the main value. A card showing December at the top and twenty-four months down the side is not comparing anything; it is showing two different things side by side.
1.2.1.0 2026-09-14

Fixed

  • A paying customer could stay on Free. getAvailableServicePlans() returns each plan's spIdentifier as the full Partner Center Service ID (publisher.offer.plan), as the licensing API documentation states. The visual compared it with the bare plan ID kpi-card-pro-tcviz using ===, which never matches. It now accepts a Service ID ending in .kpi-card-pro-tcviz, and the bare plan ID as well.
  • A failed licence lookup could ask a paying customer to buy. When the call threw synchronously, the visual fell back to Free but still treated the licence information as available. It now shows no purchase prompt, as it already did when the promise rejected.
1.2.0.0 2026-09-09

Added

  • Trend line inside the card. A new Trend (Pro) field well takes a date or ordered period and draws the series inside each card: area, line or bars, with the target marked across it. With Small Multiples bound as well, every card carries its own line. The feature existed in 1.0.0 and was dropped a day later by the matrix rewrite, while the documentation went on describing it.
  • Power BI's own licensing notifications. Changing a (Pro) setting without a licence now raises the platform's "feature blocked" banner, which carries the purchase path, and a persistent licence icon while Pro settings are set without one. Both clear as soon as a licence resolves.
  • Total/SubTotal API. Power BI now computes the card's figure with the measure's real aggregation instead of the visual summing the periods itself. It matters as soon as Value is not additive: an average ticket or a margin percentage was showing the sum of the monthly figures, which is a number that means nothing. Subtotal nodes are filtered out of the hierarchy, so they never appear as an extra "Total" card or as a giant final bar in the trend line.
  • An image per category, top-right of each card. A new Image field well takes a column of Base64 data URIs; anything else — http, https, blob — is rejected without comment, which is what keeps the promise that the visual makes no network request. It is rendered through <img src>, never by building markup, because it is user data.
  • Settings that were missing entirely. Prior and Target had no options at all: their size and colour were hard-coded. The Small Multiples title could only change size and colour, not font or weight. The trend's target line had a fixed grey that vanished against a dark card background.
  • Bookmark support. registerOnSelectCallback repaints the cards when the selection changes from outside — applying a bookmark, or clearing filters elsewhere. Without it a bookmark left the previous dimming on screen, showing a selection that no longer existed.
  • build-test.js, with --free for the real free tier and --debug for a licence diagnostic overlay. Testing previously meant editing isPro by hand.

Changed

  • Every paid setting now says so. Border Width, Border Radius, Padding, Drop Shadow, Prefix, Suffix and the Small Multiples field well carry (Pro) in their name. They were silently ignored before: the user changed them, nothing happened, and nothing explained why — which reads as the visual being broken rather than as a paid feature.
  • A licence in the Warning state is honoured alongside Active. Warning is a payment grace period, so a paying customer no longer drops to the free tier while it is resolved.
  • isLicenseUnsupportedEnv and isLicenseInfoAvailable are respected. In Publish to Web, embedded, national clouds and PDF/PowerPoint export a Pro customer reads as free; there the card renders the free result without prompting anyone to buy what they own.

Removed

  • The "Free" badge drawn in the corner of the card. Microsoft's guidance is that a visual should not display its own licensing UI, and this one put its entire explanation in a title attribute on an element with pointer-events: none — so it could never be hovered and never appeared.

Fixed

  • "Show Target Line" drew nothing. With Trend bound, the card's Target is the total for the whole period while the points on the line are per period, so the horizontal line landed far above the maximum and outside the visible area. The target is now drawn period by period, on a scale that spans both series.
  • The tooltip always showed the first card's figures. Every cell was written with index 0, and the tooltip resolves its metric from the DOM. Click and keyboard were unaffected, which is why it went unnoticed.
  • Cross-highlighting never reached the cards. Clicking a treemap or a chart highlights rather than filters, and the highlight check only looked two levels deep — with Trend bound the highlights sit on the leaves. Slicers kept working because a slicer filters instead.
  • The card lost its value when Trend was bound. With a second row level the values move to the leaves and the card's own node carries none, so a dash was shown instead of the number.
  • The trend line always sloped downwards. A numeric period such as a month number was delivered sorted by the measure, so the line was the series ordered from high to low rather than a trend. The row reduction also asked for the *top* N by measure instead of the first N.
  • Public URLs. supportUrl pointed at the site home rather than a support page, and privacyTermsLink was missing entirely — its absence is grounds for rejection.
  • Legal pages claimed an effective date of 1 January 2025, fifteen months before the visual existed, and carried the wrong contact address.
  • A stray style/pbiviz.json carrying a different GUID from the real one.

Documentation

  • support.html described a sparkline type selector, a target line and tooltip drill-through, none of which existed, and a Category field well that does not exist either. Rewritten against the code. The README described a different product entirely.
  • Free and Pro were both wrong in every document: Drop Shadow was listed as free when its control is paid, and the variance colours were sold as paid when they have always been free.
1.1.0.0 2026-08-01

Added

  • Cross-highlighting from other visuals, with the cards outside the selection dimmed.
  • Keyboard navigation and a landing page when no data is bound.
  • Colour palette support, so the card follows the report theme.

Fixed

  • An invalid matrix mapping that stopped the data view from being generated.
  • The label on a single card.
1.0.0.1 2026-05-07

Changed

  • Formatting pane rebuilt on the current API, with the constructor pattern.

Added

  • Rendering events on every exit path of update().
1.0.0.0 2026-04-24

Added

  • Initial release: KPI card with prior-period variance and target.