18 Jun 2026
Clickable KPI Cards in Power BI — No Custom Visual, Just SVG
One KPI card. Three measures. Click a button → the whole card switches. No custom visual, no third-party tool. Just a DAX measure that returns an SVG.
In this video I'll show you how to build a clickable KPI card in Power BI that displays TY vs LY, variance, and variance % and lets the user switch between Total Sales, Quantity Sold, and Unique Products with a single click on a button slicer.
🔗 Code & instructions (free): https://analyticalguy.tech/files?topic=powerbi
🛠️ What you'll learn • How to build base TY/LY measure pairs • How to set up a field parameter to control what's shown • How to wire a button slicer to that parameter • How to write an SVG measure that reads the parameter and renders the card • How to set the measure as an Image URL so Power BI renders the SVG