web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Aggregating text field in a chart

(0) ShareShare
ReportReport
Posted on by 116

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

pastedimage1603145517613v2.png

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.

I have the same question (0)
  • Verified answer
    LuHao Profile Picture
    40,892 on at

    Hi Bill,

    Only the value of the phase field is exactly the same to be aggregated together. So please check whether the 20 values of phase 1 are exactly the same.

    For example, there are two Opportunities that new_phasesstatus is Phase 1,  and three Opportunities that new_phasesstatus is Phase 2, and one Opportunities that new_phasesstatus is Phase 3.

    pastedimage1603160818077v1.png

    The chart is as follow.

    pastedimage1603160877376v2.png

    pastedimage1603161089405v4.png

    pastedimage1603160978893v3.png

    If I add a space in the one of the text "Phase 1" of new_phasesstatus.

    pastedimage1603161153644v5.png

    Then it s value is different from other Phase 1. The chart will show two Category.

    pastedimage1603161278585v6.png

    So for text fields, it is not recommended to aggregate on the chart. Because we can’t ensure that users enters the text in full compliance with the format. It is recommended to aggregate for the Option Set field.

  • Bill Hanna Profile Picture
    116 on at

    Thank you, it did have a space in some.  Once I fixed that it worked.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 70

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans