Vomiting when I having a poop

Sioned

When am having a poop but it only happens sometimes not all the time when it happens I feel unwell I feel sick until I vomit then I will feel better it has been going on for months and have no idea why I feel this isn't normal to vomit when pooping.