Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
sagarjagga
Creator
Creator

Problem in set analysis to find latest value

Hi All,

I need to show latest rating in selected date range for given users.Below is the sample data.

User NameRatingupdate date
A110/11/2018
b110/15/2018
c211/1/2018
d011/1/2018
A211/5/2018
c311/6/2018

 

I have field name date which contains all the dates in a calendar.

so if a select a date as 10/16/2018 , it should return me the latest rating of users. the result should be like

User NameRating
A1
b1

 

and if a select a date as 11/07/2018 . the table should return 

User NameRating
A2
b1
c3
d0

as for A and c the latest rating is 2 and 3 respectively.

 

Regards,

Sagar

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Perhaps like this: max({<[update date]= {"<=$(=max([update date]))"}>}Rating)

Or perhaps a better solution is FirstSortedValue({<[update date]= {"<=$(=max([update date]))"}>}Rating, -[update date])


talk is cheap, supply exceeds demand