Invoice Count would be your measure to get the value of invoices >5. Without a relation it will count all invoices over 5.
I assume you would have a relation to the invoices by customer number or something that would restrict the count to related invoices. Start with your customer list and add the invoice count to the table.