Here is a solution, where I tried to make the structure really obvious.
Basically, your code is correct, there are just some dummy mistakes (i.e. creating a new line too "early", forgotting some \multicolumn{2}{|c|}{<content>}
)
\documentclass{scrartcl}
\usepackage{array}
\usepackage{multicol}
\usepackage{multirow}
\begin{document}
\centering
\begin{tabular}{|l|c|c|c|}
\hline
\multicolumn{2}{|c|}{x}
&
y
&
z
\\
\hline
\multirow{4}{*}{alpha}
&
T1
&
0.37\%
&
68
\\
\cline{2-4}
%note that there is an empty cell here
&
T2
&
0.87\%
&
45
\\
\cline{2-4}
%note that there is an empty cell here
&
T3
&
1.38\%
&
49
\\
\cline{2-4}
%note that there is an empty cell here
&
T4
&
1.38\%
&
49
\\
\hline
\multirow{4}{*} {BETA}
&
V1
&
0.5\%
&
58
\\
\cline{2-4}
%note that there is an empty cell here
&
T2
&
0.87\%
&
45
\\
\cline{2-4}
%note that there is an empty cell here
&
T3
&
1.38\%
&
49
\\
\cline{2-4}
%note that there is an empty cell here
&
T4
&
1.38\%
&
49
\\
\hline
\multicolumn{2}{|c|}{sigma}
&
30.12\%
&
2
\\
\hline
\multicolumn{2}{|c|}{eta}
&
10\%
&
6
\\
\hline
\multicolumn{2}{|c|}{pi}
&
9\%
&
8
\\
\hline
\end{tabular}
\end{document}

You can improve your table using the booktabs
package that defines following macros \toprule
, \midrule
, and \bottomrule
:
\documentclass{scrartcl}
\usepackage{array}
\usepackage{multicol}
\usepackage{multirow}
\usepackage{booktabs}
\begin{document}
\centering
\begin{tabular}{lccc}
\toprule
\multicolumn{2}{c}{\textbf{x}}
&
\textbf{y}
&
\textbf{z}
\\
\midrule
\multirow{4}{*}{$\alpha$}
&
T1
&
0.37\%
&
68
\\
%note that there is an empty cell here
&
T2
&
0.87\%
&
45
\\
%note that there is an empty cell here
&
T3
&
1.38\%
&
49
\\
%note that there is an empty cell here
&
T4
&
1.38\%
&
49
\\
\midrule
\multirow{4}{*} {$\beta$}
&
V1
&
0.5\%
&
58
\\
%note that there is an empty cell here
&
T2
&
0.87\%
&
45
\\
%note that there is an empty cell here
&
T3
&
1.38\%
&
49
\\
%note that there is an empty cell here
&
T4
&
1.38\%
&
49
\\
\midrule
\multicolumn{2}{l}{$\sigma$}
&
30.12\%
&
2
\\\midrule
\multicolumn{2}{l}{$\eta$}
&
10\%
&
6
\\\midrule
\multicolumn{2}{l}{$\pi$}
&
9\%
&
8
\\
\bottomrule
\end{tabular}
\end{document}

Then, you can still improve by aligning %
characters, etc. You should have a look on A short introdution to LaTeX for more details...
\documentclass{...}
, the required\usepackage
's,\begin{document}
, and\end{document}
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.