As per the documentation, the function lastperiods(x,[Axis.X]) should return the current node and the x - 1 previous nodes. However, it returns the current node and the x previous nodes.
----------------------------------------RESOLUTION----------------------------------------
This issue has been fixed in Patch A50142, available for download on TIBCO Spotfire Product Patches page at http://support.spotfire.com/patches.asp.