All checks
DAXMaintainabilityLow

SWITCH(TRUE()) with many branches

"SWITCH(TRUE()) with many branches" is one of the maintainability checks Auditabi runs on a Power BI semantic model. n expression(s) use SWITCH(TRUE()) with more than six conditions. It is a low-severity finding: hygiene and maintainability, worth fixing when you next touch the object. Move the mapping into a table joined to the model, or split the logic into measures with explicit names.

What is detected

n expression(s) use SWITCH(TRUE()) with more than six conditions. The branches are evaluated in order and overlapping conditions silently mask each other.

Why it matters

Hygiene and maintainability. Fix when touching the object.

How to fix it

Move the mapping into a table joined to the model, or split the logic into measures with explicit names.

Does your model fail this check?

Free static audit with the exact objects, no account, nothing stored.

Audit a model

More DAX checks