Long literal list in an IN predicate
"Long literal list in an IN predicate" is one of the maintainability checks Auditabi runs on a Power BI semantic model. n expression(s) test a column against a literal list of more than eight values. It is a low-severity finding: hygiene and maintainability, worth fixing when you next touch the object. Move the list into a table (a mapping or a flag column) joined to the model.
What is detected
n expression(s) test a column against a literal list of more than eight values. The list is business data living in code: it goes stale and nobody outside the team can audit it.
Why it matters
Hygiene and maintainability. Fix when touching the object.
How to fix it
Move the list into a table (a mapping or a flag column) joined to the model.
Does your model fail this check?
Free static audit with the exact objects, no account, nothing stored.
More DAX checks
- Arithmetic or comparison on a measure that returns text
- Measure returning text in one branch and a number in another
- Share denominator clears a fact-table column instead of the dimension
- "Previous period" window overlaps the current one
- Percentage label built without ×100
- Percentages and amounts summed together