In 2015, the UN called for an end to open defecation by 2030 and some countries such as Vietnam have had considerable success eradicating it.
Others are still struggling, however, as the following map clearly illustrates:
You will find more statistics at Statista
According to the most recent World Bank data which is from 2015, 40 percent of people in India still defecate outdoors.
It is also common across Africa where the highest rates were recorded. Eritrea has the highest rate at 76 percent, followed by Niger (71 percent) and Chad (68 percent).