The election occurs later (its based on how you prepare a tax return and treat the CGT issues) but should be contemplated at all times....
Unless a CGT gain is exempt then apportionment would be a requirement. No overlap of the exemption. And you cant generally value things and jump from one...