Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Date | id | sales |
14-08-2012 | a | 10 |
15-08-2012 | a | 11 |
16-08-2012 | a | 12 |
16-08-2012 | b | 13 |
17-08-2012 | b | 13 |
18-08-2012 | b | 14 |
19-08-2012 | b | 15 |
for the above data, i need to show the id and latest sales of the id , ie.i should get the below result
id | sales |
a | 12 |
b | 15 |
Could anyone help me ..
Thanks,
Sankar
In your table chart with dimension id, try using this expression
=FirstSortedValue( sales, -Date)
with sales and Date being your field names for above columns.
Hope this helps,
Stefan
In your table chart with dimension id, try using this expression
=FirstSortedValue( sales, -Date)
with sales and Date being your field names for above columns.
Hope this helps,
Stefan
Hi
Try like this
Firstsortedvalue(sales,-date,1)
Hope it hels
Hi sankar_thia,
If you are trying to do it in the script you can use max function and an inner join to get the latest sales.
See the attached file, hope it helps you.
Regards
i got the result using 'FirstSortedValue( sales, -Date)'.
thanks all for your help