You can use the LastChild function to return the last member for a supplied parent member.
The query below returns the last child for the member July 2003 in the Fiscal hierarchy in the Date dimension. SELECT {[Date].[Fiscal].[July 2003].LastChild} ON 0
FROM [Adventure Works]