Don't worry its not a problem of $ being a special character (or at least I think). For some reason the $ that is supposed to show up next to the total on the last line does not. Removing either the \cellcolor commands or the @{} in the tubularx definition makes it show up. Why is this happening and how can I get my $ back?
\documentclass{article}
\usepackage[table]{xcolor}
\usepackage{tabularx}
\begin{document}
\begin{tabularx}{\linewidth}{Xc@{}r}
TEST && 1000 \\
ANOTHER TEST && 5000 \\
\multicolumn{1}{r}{TOTAL} & \cellcolor{blue!25!white} \textdollar & \cellcolor{blue!25!white} 6000\\
\end{tabularx}
\end{document}

colortblapply a padding notwithstanding a@{}specification. – egreg Jul 11 '16 at 21:06\cellcolor{blue!25!white}\textdollar 6000in the final column? – Mico Jul 11 '16 at 21:11\cellcolor{blue!25!white}\textdollar\hspace*{\fill} 6000should work, right? – Mico Jul 11 '16 at 21:141000000000to better demonstrate the issue. The$is placed too far right. The color seems to start in the correct place, but does not cover the entire cell (the last0in6000is not covered with color). – carloabelli Jul 11 '16 at 21:21