For my part , unless I'm wrong, the desired dimension will be a position constraint (dimension) in the assembly, and displaying the dimensions through the visibility control, and going through configurations directly in the display of the position dimension, that's all I see to troubleshoot.
The easiest way we found was to put a pilot sketch and plans in the assembly. The parts are fixed on this sketch and have "extrusion to" functions and a point or plane of the pilot sketch is selected.
The equations work well too (but there can be problems in case of copying / renaming assembly).
For simple equations, the method I propose works perfectly. For more complex equations, we also use the @froussel method with a skeleton sketch (in the assembly), and it is this sketch that drives the other parts.
For the equation problems in case of copying / renaming I find that the latest versions of sw have greatly improved these problems (sw2020)