January 19, 2026
Fast Metrics with Tabular Editor Macros
I quite often work in Power BI with smaller semantic models used for quick ad-hoc reporting, PoCs, and similar scenarios. Across different data sources, I regularly need to create the same types of DAX measures over and over again. In my case, these are most often various sums, averages, and record counts. On top of that, I frequently need measures for tracking changes compared to previous periods (e.g. previous month, previous year), including both absolute and percentage changes. Sometimes I also add color-based measures for conditional formatting, and suddenly this turns into a fairly large amount of repetitive, boring code that has to be written manually.
That’s why I created a macro for Tabular Editor 3 that significantly speeds up this process. Here it is.