Problems with the abundance table by group

Remember put a reproducible example for better help all the community.

Im saw that you select only the Phylum column in both cases.