All checks
DAXPerformanceLow

Rows counted with a filter inside an iterator

"Rows counted with a filter inside an iterator" is one of the performance checks Auditabi runs on a Power BI semantic model. n measure(s) count rows by iterating a table and testing a condition. It is a low-severity finding: hygiene and maintainability, worth fixing when you next touch the object. Use CALCULATE(COUNTROWS(Table), Table[Column] = value).

What is detected

n measure(s) count rows by iterating a table and testing a condition. CALCULATE with a filter argument expresses the same intent and is resolved by the storage engine.

Why it matters

Hygiene and maintainability. Fix when touching the object.

How to fix it

Use CALCULATE(COUNTROWS(Table), Table[Column] = value).

Does your model fail this check?

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

Audit a model

More DAX checks