distinct count when for max record between date range dynamically
I have a requirement to pull the max record(key) per case between the date ranges dynamically selected ..
below requirement pulls everything bys elected date range .. but my requirement is to select the recent record only when user run report per date range ..for ex - if user runs the report 09/14/2017 to 09/15/2018 i need recent record fro that time frame per case.. could you please help on this urget requirement?
=Count(distinct if( [Type ]='BV' and Status='Complete' and DateType ='CaseCreatedDate' and (Date>=DayName(vStDt) and Date<=DayName(vEdDt) ) , Key))
To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question. I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.