By making tables I am using packages siunitx, nicematrix and makecell. These three packages applied simultaneously seems to be sufficient for solving my problems with tables - like this one. I am using siunitx package, not dcolumn package, because the last one gives not satisfying placement of numbers. I met the problem with placing the table note. The note mark has to be placed in the cell of the middle column. While I am using S-type column within NiceTabular environment I got the error:
! Extra }, or forgotten \endgroup. <template> ...z@ plus.5fill\relax \egroup \egroup \begingroup \CT@setup \CT@... l.23 ...tal & 160\tabularnote{My footnote text.} & 100,0\\ How to solve this problem? It resembles this one (in this topic probably one of @moewe's comments leads to the solution, nevertheless I can't cope with it). Code:
\documentclass[table]{standalone} \usepackage{siunitx} \usepackage{makecell} \usepackage{nicematrix} \usepackage{enumitem} \renewcommand{\theadfont}{\footnotesize\bfseries} \sisetup{output-decimal-marker={,}} \begin{document} {\footnotesize \begin{NiceTabular}[hvlines,code-before=\rowcolor{gray!50}{1-1}]{ l S[table-format=3,zero-decimal-to-integer,table-space-text-post=\textsuperscript{a}] S[table-format=3.1] } {\thead{Side-heading\\description}} & {\thead{First column\\with data\\description}} & {\thead{Second column\\with data\\description}}\\ Good & 120, & 41,5\\ Bad & 140, & 58,5\\ Total & 260,\tabularnote{My footnote text.} & 100,0\\ \end{NiceTabular} } \end{document} 
