According to new Qatar Labour Law, You cant come through visit or work visa until finsihing of 2 years of ban. But previously you can come under visit visa and you can do the job. Now this rule has been taken.

If you get NOC with your previous employer in qatar & cancellation of Dubai visa, you can get work visa in qatar.

Hope I clear your doubt.