As you can see in the image below, I am doing a correct call of the formula "Ungroup()". The error says: A column named "NroVale" already exists. It is worth mentioning that without the ungroup() sentence the code works correctly. 
Thank you for your help
1 Answer
Solved. The problem was that I was trying to merge two columns with identical column names. Once I changed that it worked.