All checks
DAXMaintainabilityLow

Declared variable never used

"Declared variable never used" is one of the maintainability checks Auditabi runs on a Power BI semantic model. n expression(s) declare a VAR that is never referenced. It is a low-severity finding: hygiene and maintainability, worth fixing when you next touch the object. Remove the variable or use it.

What is detected

n expression(s) declare a VAR that is never referenced. Dead code that is still evaluated lazily is confusing, and often a leftover of a bug.

Why it matters

Hygiene and maintainability. Fix when touching the object.

How to fix it

Remove the variable or use it.

Does your model fail this check?

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

Audit a model

More DAX checks