They will import those meat and diary products that won't be competitive enough anymore to be produced in Danmark. This kind of taxes work better if implemented uniformly in all the EU, but then they'll import from outside the EU. Ultimately it's a way to tell some industries to pack their things and go away.
If the reduction target is not met, it just means the tax is not high enough.