Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Below is a sample of my source data-
Member Member
Name Level From To
------ -------- ---------- ----------
A Basic 01/01/2011 12/31/2011
A Enhanced 01/01/2012 09/30/2012
A Elite 10/01/2012 06/30/2013
B Enhanced 01/01/2011 06/30/2012
B Basic 07/01/2012 12/31/2013
C Elite 01/01/2012 12/31/2013
I would like to display the above data in a table with 2 additional columns showing the previous and next Member Level as follows-
Member Member Previous Next
Name Level From To Level Level
------ -------- ---------- ---------- -------- --------
A Basic 01/01/2011 12/31/2011 Enhanced
A Enhanced 01/01/2012 09/30/2012 Basic Elite
A Elite 10/01/2012 06/30/2013 Enhanced
B Enhanced 01/01/2011 06/30/2012 Basic
B Basic 07/01/2012 12/31/2013 Enhanced
C Elite 01/01/2012 12/31/2013
Based on selections not all the records may be displayed. However the values for Next and Previous are based on the entire data set and
are independent of the selections.
Can someone tell me the best way to derive the 2 additional columns.
Thanks
In the script with the previous() function. See attached example
In the script with the previous() function. See attached example