5 Jun 2026

Build Stunning KPI Cards in Power BI with HTML + DAX | Step by Step GUIDE

In this tutorial I'll show you how to design and build a fully custom Sales Performance KPI card in Power BI using the HTML Content visual + one DAX measure.

The HTML Content visual (certified by Microsoft, free on AppSource) is one of the most underrated tools in Power BI — install it once, and you can render any HTML you want inside it. That means one custom visual becomes infinite card designs, all driven by DAX.

The card we'll build includes: - Current Year sales as the hero number, colored green or red based on growth - A TY vs LY YoY % growth badge - An "overall achievement" bar with a 100% reference line - A by-category achievement bar chart — each bar green if it beat last year, red if it didn't

You'll learn the exact DAX pattern, the HTML structure, and the SVG wrapper trick that makes the whole card scale responsively when you resize it.