DistinctCountNew =
SUMX (
    VALUES ( fact[date] ),
    CALCULATE ( DISTINCTCOUNT ( [fact[NewInvoiceID] ) )
)
Code beautified with DAX Formatter by SQLBI