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