Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
kkkumar82
Specialist III
Specialist III

Firstsortedvalue issue

I want to know the Student who got the minimum mark.

I was able to get expression to get the minimum mark for each subject but I was trying to get expression who is the student who secured this but my firstsortedvalue expression is not returning this.

PFA a file where I am trying this.

1 Solution

Accepted Solutions
sunny_talwar

Try this

Firstsortedvalue(Total <Subject> Student, Aggr(Sum(Marks), Student, Subject))

View solution in original post

7 Replies
Or
MVP
MVP

Assuming you want to add this to the list of subjects:

FirstSortedValue(Student,Marks)

kkkumar82
Specialist III
Specialist III
Author

The way you gave is correct but I want it in the pivot table which I am trying

mikaelsc
Specialist
Specialist

FirstSortedValue(Student,aggr(-sum(Marks),Student,Subject))

arvind1494
Specialist
Specialist

FirstSortedValue(Student,-aggr(min(Marks),Student)

kkkumar82
Specialist III
Specialist III
Author

This is not working its returning only values for some of the rows

Min_Max.png

kkkumar82
Specialist III
Specialist III
Author

Hi Sunny,

Can you please look into this.

stalwar1

sunny_talwar

Try this

Firstsortedvalue(Total <Subject> Student, Aggr(Sum(Marks), Student, Subject))