Is there any way to have a location of a table dependent on the location of another table? For example, if the top table expands, the bottom table is pushed down the same height as the growth of the top table?
You can not change the position or size of any object with code / expression, but ... you can show and hide objects by expression. so in some cases its possible to "pretend" for the user that a object is moved, while in fact there are several objects that are just visual during certain circomstances.
however, "expanding" a pivot table does not cause any selections, hence not possible to show/hide objects from that even.