We can make potable water directly from wastewater, such as sewage. However, this takes many purification steps, so this is only done in places where is water scarce. Salt water needs to be desalinated to produce potable water. Desalination requires a lot of energy and it's expensive.