Adding sparklines to New Card Visual

Published Categorized as How To's, Power BI 3 Comments on Adding sparklines to New Card Visual

The New Card Visual is out in preview for the June 2023 Power BI Desktop – and it’s absolutely fantastic.

With this first drop of the Card Visual we can see flexible formatting options such as accent bars, images, backgrounds, padding, spacing and alignment. For a more comprehensive look check out this post.

There are a lot more features on the roadmap which you can find by tuning in to Miguel Myers.

Whilst microcharts have been hinted at, we can start to build them out now using SVG measures.

To do so, we first need to create a SVG measure with a SVG sparkline template, following a similar process to this post.

In the formatting pane, under “Cards”>”Image”, we can select “Image URL” from the “Image type” drop-down.

The FX option will show beneath, from which we can select the associated SVG measure. If using multiple cards, ensure the settings are applied to the relevant card.

The preview is already so versatile in its formatting options, all kinds of styles can be created:

But perhaps one of the most important features about the New Card Visual, is that of performance. No longer shall we have slow report pages built of several layered KPI Visuals. Neither shall we resort to visual hacks to meet our needs, or custom visuals to meet very specific requirements.

The formatting options in this new core visual are flexible enough to build out multiple KPI Cards in a single visual…

… and produce a clear performance enhancement




  1. Kerry this is great stuff. Thank you for sharing. Do you have the PBIX files to share for the different style examples? I think that would be really helpful especially if something doesn’t work for someone to backwards engineer it. Cheers.

  2. Kerry this is such a great breakdown of this new card feature. Great alternatives of how to use it and formatting options. Thanks a mill and keep it up!

Leave a comment

Your email address will not be published. Required fields are marked *