It's done in the Union Room. Meet another player there and the option to mix records appears, swapping your trainer data, Pokédex progress and a few other bits with theirs.