Is this post stroke? This is so hard but common. Up to 40 percent of those who have had a stroke have this issue. Things that can be done are pelvic floor exercises (physical therapists specially trained in this are VERY helpful), eating more fiber, and bowel retraining which is specialized for stroke patients. I'd talk to your doctor about this.