DistinctCountNew =
SUMX
(
VALUES
(
fact[date]
)
,
CALCULATE
(
DISTINCTCOUNT
(
[fact[NewInvoiceID]
)
)
)