DistincCount =
DISTINCTCOUNT ( table[InvoiceID] )
Code beautified with DAX Formatter by SQLBI