Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Alarkis
Contributor III
Contributor III

User with least time for transaction

Hello,

What to Display User with least time for transactions

avg({<Year={$(vMaxYear)},DateType={'RECEIVED_DATE'},WF_TASK_NAME_Time = {'ApprovalTask'},WORK_TIME-={'-1'}>}WORK_TIME)

How i can use Aggr() or Rank() to display only the name of user with least time taken for transaction on average

(Assuming user field is USER_ID)

Labels (3)
1 Reply
treysmithdev
Partner Ambassador
Partner Ambassador

Try this:

=Only({<USER_ID = {"=Rank(avg({<Year={$(vMaxYear)},DateType={'RECEIVED_DATE'},WF_TASK_NAME_Time = {'ApprovalTask'},WORK_TIME-={'-1'}>}WORK_TIME)) = 1"}>}USER_ID)
Blog: WhereClause   Twitter: @treysmithdev