I need to get a count of closed stores where closed is defined as a store with less than $100 in sales for any given day. The tricky part is that certain stores always close on Sunday and these stores need to be excluded from the count, but only on Sundays. If they close on a Tuesday, they need to be included in the count.
Here's what I have so far. It seems to give me the correct counts by day, but the total is incorrect. Any help would be appreciated.