We will analyse the same on completion of related tasks.

We will analyse the same after completing of related tasks.

My doubt is-
In sentence 1st completion is Noun and in 2nd sentence completing is gerund. I want to understand why completion is noun and completing is gerund i.e verb+ing.