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

FirstSortedValue()

Good evening,

Seems like a simple request, but I can't get the syntax to work. I just want the most recent Value for MeasureType = 'Rate Hospital 9 or 10', but I get 0 or Nan errors using this...

=firstsortedvalue({<MeasureType = 'Rate Hospital 9 or 10'>}Value, MeasureDate)

In this example, I expect to return 84. What am I missing?

2019-05-06_20-48-34.jpg

Thanks in advance,

Chris

 

Labels (1)
1 Solution

Accepted Solutions
cfountain72
Creator II
Creator II
Author

My bad...it was the expression syntax, not the firstsortedvalue(), that gave me the problem. Should say =firstsortedvalue({<MeasureType = {'Rate Hospital 9 or 10'}>}Value, -MeasureDate)

View solution in original post

4 Replies
cfountain72
Creator II
Creator II
Author

My bad...it was the expression syntax, not the firstsortedvalue(), that gave me the problem. Should say =firstsortedvalue({<MeasureType = {'Rate Hospital 9 or 10'}>}Value, -MeasureDate)
sunny_talwar

Is this resolved now?

cfountain72
Creator II
Creator II
Author

Hi Sunny,
Yes, this has been resolved. Do you know if you can sort on multiple columns, and then get the first sorted value as well? (That was what I was initially trying to do, but had to alter the load script to get what I wanted.)
Thanks,
Chris
sunny_talwar

Sort of multiple columns? Can you elaborate on this with an example?