I thought I was able to do this in the past, but for the life of me, can't figure out what I did to make it work. I think it was a simple xml edit, but not sure what it was
So we have opportunities and each opportunity has a phase, but the previous guy created a text field for the phase and made it a text field. so now I have about 6 phases, that he fill in via code. I can query the field "new_phasesstatus" and I clearly see phase 1, phase 2, and so on.
here is my xml code

All I'm trying to do is display the count of opportunity by phase.
Final out come should be:
Phase 1 --------------20
Phase 2 -------------------------30
Phase 3 ------10
What I get is
phase 1 ---1
phase 1 ----1
phase 1 ----1
Until 20
phase 2 ----1
phase 2-----1
until 30
How do I combine these. I tried adding groupby, aggregate, count. nothing works.