
Creator
2020-04-05
01:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
aggr function problem
Hi Experts,
I have below fields. could any one help?
employee, address, case no. distance. distance is the nearest distance by employee.
employee | address | case no. | distance |
1 | a1 | 566 | 0.4 |
1 | a2 | 454 | 3 |
i used aggr(distance, employee) and result is as below.
employee | address | case no. | distance |
1 | a2 | 454 | 0.4 |
my expected result as below in table chart.
employee | address | case no. | distance |
1 | a1 | 566 | 0.4 |
464 Views
2 Replies


Partner - Master III
2020-04-05
03:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi
this expression should work for you
if(distance=min(total<employee> distance),distance)
439 Views

Creator
2020-04-06
08:09 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks but i have one problem, i found No.2 employees distance is zero, then
how can i get the second nearest distance record when nearest distance is zero?
420 Views
