So I have the following table that I want to reference to.
\begin{table}
{\captionof{table}\\
\begin{center}\textbf{Calculation variables} \end{center}\\ \footnotesize{Each variable is calculated according to the proper equation. We tabulated the equations for each of the variables. In the first column we included all the categories in which all the variables fall in. For every variable we formulated an abbreviation, these are included in the second column of the table. The last column shows all the equations that were used to calculate the variables for each company.}}
\label{tab:datavariables}
\begin{tabular}{ccccccc}
\end{tabular}
When trying to reference to it in the text (with \ref{tab:datavariables}
) it just returns '??'. What should I do about this.