The example needs more context in order to fully understand what the message is. I don't really understand the OP's sentence.
Inversion is used with negative adverbials and expressions in positive sentences. The position of subject and the auxiliary verb is inverted (switched=swapped). For example,
- Not only does she speak three languages fluently, (but) she writes childrenchildren's books tootoo.
- No sooner had she posted her question than someone jumped on her back.
- She posted her answer. Only then was she able to relax
- Never was so much owed by so many to so few (Winston Churchill)
- Hardly had I finished writing my answer when it got downvoted :)
Inversion is useful for adding emphasis, and in (very) formal writing.