I have a DAX CALCULATE statement that works fine with a single date:
.Placements = CALCULATE
(
count(client[client_id]),
DATESBETWEEN(client[client_start],[FirstDayOfYear],[EndDate])
)
...but if I work in a second date, it fails:
.Placements = CALCULATE
(
count(client[client_id]),
or(DATESBETWEEN(client[client_start],[FirstDayOfYear],[EndDate]),
DATESBETWEEN(client[client_county_court2_start],[FirstDayOfYear],[EndDate]))
)
...and I get the message "A function 'DATESBETWEEN' has been used in a True/False expression that is used as a table filter expression. This is not allowed."
How come I can use one DATESBETWEEN but not two? What's the correct way to do this? Thanks in advance for any help!
Darwin