The medians have values ranging from 2 to 8, so exactly one of these values does not appear as the median of one of the 6 rows/columns.
Here are three templates that allow you to choose any missing median value.
For completeness, here are the solutions this produces: