After lots of attempts, I've been unable to get a table exactly as the one below. I don't know if somebody could give me some advice. .
I took the code of another table and managed to get this:
\begin{longtable}[c]{|c|c|c|c|c|c|}
\cline{3-6}
\multicolumn{2}{c|}{}& \multicolumn{3}{c|}{X} \\
\cline{3-6}
\multicolumn{1}{c}{}& & 1& 2& 3\\
\hline \multirow{2}{*}{$Y$}
& 1& 0.23 & 1 & 232.23 \\
\cline{2-6}
& 2& 0 & -21 & 0\\
\cline{2-6}
\hline
\end{longtable}
\end{document}
But the result is far from what I want. Besides, when I try to compile the whole document, not just the table, I got some errors related to the longtable
package.
Many thanks! C.
;-)