That solution will work for you (I believe this is the post you are referring to). If each sample is assigned a unique value in that metadata column, it will relabel those sample IDs rather than actually grouping them — a neat trick and will solve your problem.
Good luck!