Forum Discussion
kincaids
9 years agoHelper II
Seemingly simple date issue...
My company rents band & orchestra instruments to school children. I have a handful of data query tables and I've created a calendar table. For this issue, I think all I need to focus on are thes...
d_gosbell
7 years agoSuper User
yep, just a missing comma after the ALL() function.
Current Rentals =
VAR _maxDate =
MAX ( 'Calendar'[Date] )
RETURN
CALCULATE (
COUNTROWS ( 'scrental' ),
FILTER (
ALL ( 'scrental'[Contract Date], 'scrental'[Return Date] ),
'scrental'[Contract Date] >= _maxDate
&& (
'scrental'[Return Date] = BLANK ()
|| 'scrental'[Return Date] <= _maxDate
)
),
'scrental'[Dunn] IN { "P", "N" }
)