Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
sai_yashwan
Contributor
Contributor

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))

 

casekey statusdaternk
12312324complete09/12/20191
12312325complete09/13/20182
12312326complete09/14/20173
12612327complete09/15/20174
12612328complete09/16/20183
12612329complete09/17/20201
12912330complete09/18/20192
12912331complete09/19/20154
12912330complete09/20/20145
12912331complete09/21/20153
13112332complete09/22/20201
13212333complete09/23/20152

 

1 Reply
Brett_Bleess
Former Employee
Former Employee

See the following related post:

https://community.qlik.com/t5/QlikView-App-Development/count-of-MAX-record-for-dynamically-changing-...

Regards,
Brett

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.