Welcome to Tableau Community. Tableau by default only allows 16 column's in a given Crosstab. You can get more than 16 column's by following the trick mentioned in the below link on Conditional Formatting by Jonathan D.
Hope this helps.
Welcome to the forum!
I hope Ankit's reply has provided you a suitable solution.
For your interest, there is a different solution/article regarding it here -