Like-for-like PY store analysis: fixing the status mismatch
A store that closes for a refresh breaks like-for-like PY reporting: the current year says Comparable and the previous year does not. Here is the SQL cursor that builds a separate PY status key, and the DAX measure that reads it.