Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have the following problem where I am not able to get the values for a minimum date value field for each customer.
I have a table as follows:
Customer | First Service Date | Next Service Date |
---|---|---|
1 | 09/01/2014 | 09/02/2014 |
1 | 09/02/2014 | 09/10/2014 |
1 | 09/10/2014 | - |
2 | 09/02/2014 | 09/14/2014 |
2 | 09/14/2014 | - |
3 | 09/10/2014 | 09/17/2014 |
3 | 09/17/2014 | - |
I have derived the minimum of 'First Service Date' for each customer using the expression:
=Date(Min([First Service Date], [Customer]), 'MM/DD/YYYY') but not able to get the corresponding 'Next Service Date' value.
Now I want to find the minimum of 'First Service Date' for each customer and then its corresponding 'Next Service Date'. I want the output as follows:
Customer | First Service Date | Next Service Date |
---|---|---|
1 | 09/01/2014 | 09/02/2014 |
2 | 09/02/2014 | 09/14/2014 |
3 | 09/10/2014 | 09/17/2014 |
Your inputs are appreciated.
Thanks!!!!!!
Try firstsortedvalue([Next Service Date],[First Service Date])
Try firstsortedvalue([Next Service Date],[First Service Date])
FirstSortedValue([Next Service Date],Aggr(MIN([First Service Date]),Customer))
Thank you!!!!