Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
tmumaw
Specialist II
Specialist II

FirstSortedValue Expression

Does anyone see anything wrong with this expression?

=FirstSortedValue(distinct(SF_Job, - Aggr(count(distinct(Requisition),SF_Job))

I'm trying to use it in a text box.

Thanks

Labels (1)
2 Solutions

Accepted Solutions
Anil_Babu_Samineni

May be wrongly placed the parenthesis. Perhaps this?

=FirstSortedValue(distinct SF_Job, -Aggr(count(distinct Requisition),SF_Job))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

sunny_talwar

Try this... again issues related to the placement of parenthesis

FirstSortedValue(DISTINCT SF_Job, -Aggr(Sum([Number of Openings]), SF_Job))
& ' - '&
Max(Aggr(Sum([Number of Openings]), [SF_Job]))

 

View solution in original post

5 Replies
Anil_Babu_Samineni

May be wrongly placed the parenthesis. Perhaps this?

=FirstSortedValue(distinct SF_Job, -Aggr(count(distinct Requisition),SF_Job))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
tmumaw
Specialist II
Specialist II
Author

I sent you a sample spreadsheet from another post.  You can ignore it. 

tmumaw
Specialist II
Specialist II
Author

How about this one?

FirstSortedValue(distinct SF_Job, -Aggr(sum([Number of Openings]),SF_Job & ' - '& Max(aggr(Sum([Number of Openings])),[SF_Job]))

Thanks

sunny_talwar

Try this... again issues related to the placement of parenthesis

FirstSortedValue(DISTINCT SF_Job, -Aggr(Sum([Number of Openings]), SF_Job))
& ' - '&
Max(Aggr(Sum([Number of Openings]), [SF_Job]))

 

tmumaw
Specialist II
Specialist II
Author

Yep.  Found it about 20 minutes ago and I haven't had a chance go get back here and post as solved.  Thanks.