To change an existing Custom Measure's formula, right-click on it and navigate to Edit. Then, modify the formula and click ENTER to save the changes.
The Formula Editor
Formulas