How does repeating a unit impact my completion rate?

If you repeat a failed unit, each time you take the unit is counted as another attempt.