Skip to content

DAX flags ​

Two flags, both measuring the same thing: a formula complicated enough to be worth a second look.

FlagWhat it findsSeverity
Complex DAX measuresMeasures with a complicated formulawarning
Complex DAX columnsCalculated columns with a complicated formulawarning

Complex DAX columns ​

A calculated column is flagged here when its formula is complex. Every calculated column, complex or not, is also listed by its own Calculated column flag.

How complexity is measured ​

The analyzer scores each formula on nine signals. A signal that stays under its limit contributes nothing, so a formula that is merely long is never flagged on length alone.

SignalFlagged aboveWeight
Length in characters9001
Length in lines251
Nested brackets6 deep2
IF / SWITCH branches42
Nested control functions4 deep2
CALCULATE / CALCULATETABLE calls33
Row-by-row iterators — SUMX, AVERAGEX, RANKX and similar33
Virtual tables — SUMMARIZE, ADDCOLUMNS, UNION and similar23
The same heavy function repeated4 times2

The weights say what actually matters: length is the least interesting thing about a formula. Size carries weight 1, structure 2, and the operations that cost query time — context transitions, row-by-row iteration, building tables in memory — carry 3.

Total scoreResult
Below 6Not flagged
6 to 13.9Flagged, Medium complexity
14 and aboveFlagged, High complexity

Each finding comes with the signals that fired and concrete advice, for example "Deeply nested brackets (depth 9). Extract inner logic into VAR/RETURN blocks" or "Multiple virtual table constructions (5). These materialize at query time and hurt performance".

Soterre PBI Analyzer — part of Soterre Enterprise