Please check my sample image file and qvw . For Job no (05-14100102447-1) totally i am getting 6 records , Out of 6 , i need to show max of storage days record and which ever is nearest to days field .
i,e ( storage days of 25 is near to days 115 ), For job no (05-14100103378-2) , max of storage days is 10 and its nearest value for days (13) .