ABC Classification

Dynamic ABC Classification

DAX

Featured Image

Overview

Features

Prompts

Troubleshooting

Key Features

ABC analysis is one of the most requested analytics patterns in Power BI — which products drive 70% of revenue? Which customers represent your A-class? The static calculated column approach is fast but ignores your slicers: apply a category filter and every product stays in the same class regardless of context. The SQLBI Dynamic Approach uses WINDOW functions for real-time reclassification — a product that is A-class globally may become B-class when filtered to a specific region or channel. But writing the WINDOW-based DAX correctly, creating the Configuration table, patching model.tmdl, and building the color-coded visuals takes hours. This skill builds everything end-to-end in one command.

How it works

Type /abc-classification, provide your dimension and measure, and the skill builds everything:

  1. Scans the model to validate the dimension table, column, and base measure

  2. Creates an ABC Configuration calculated table with A/B thresholds (default 70% / 90%, customizable)

  3. Generates 11 DAX measures — ABC Cumulated %, ABC Class, ABC Color, item counts per class, sales per class, and switch measures for the summary matrix

  4. Creates two visuals on the target page: a 3-row summary matrix (class / item count / sales) and a color-coded bar chart (bars sorted by measure, colored green=A, amber=B, red=C)

  5. Patches model.tmdl with the required ref table 'ABC Configuration' entry

What you get

  • ABC Configuration table — calculated table with A/B thresholds, editable post-deploy for threshold tuning

  • 11 DAX measures — cumulated %, class assignment, color, item counts per class, sales per class, and switch measures

  • Summary matrix — 3-row matrix showing class / item count / sales in the current filter context

  • Color-coded bar chart — dimension items sorted by measure descending, bars colored green/amber/red by class

Tool Information

Price

20 USD

Category

DAX

Version

Version 1.0.0.2.13