Datamatrix visibility in Reporting module

Hello,

I've created a report in which some of the parameters are translated into datamatrix. The idea is that if these parameters are not filled, datamatrix won't show at all. When I look at the preview of this report, it works perfectly. But when I try to print this report, datamatrix is there even if the field with the parameter is empty. When scanned, this datamatrix reads the name of the parameter/datakey (e.g. ArtNr_1) without any real value.

I've tried some workarounds, e.g. covering the datamatrix with white rectangle and trying to set it's visibility with datakey, but it doesn't work.

Is there any way how to do it correctly?

Thank you in advance.
Matej

What have you tried for a keychain expression?