Please remove the dependency in the shadow calculation to the need for a non writable measure. It should work without and it adds the possible for triangle cell calculations.