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: 
binujose1982
Contributor III
Contributor III

Qliksense Firstsorted value

Hi

Please help me with the first sorted value function?

Below is the input table and set analysis used in the dashboard.

CompanyGroupsAmount
ZABCIT0
DSCAccounting0
WATIT0
CIAccounting0
CCIT0
SESAccounting0
WSAccounting0
SWIT0
PATIT0

 

Expression : FirstSortedValue({<Company=>}Distinct Company,Aggr(Sum({<Company=,Groups=>}Amount)+Sum({1}0),Company))

Result: ZABC

Is there any way to get the result based on alphabetical order?  

I am expecting CC in the result.

 

Thank you,

Binu

1 Reply
AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hi,

If you want to sort alphabetically and take first value of Company then may be you can use Minstring().

 

Thanks,

Ashutosh