Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Sorting a chart x axis by option set value instead of label

(0) ShareShare
ReportReport
Posted on by

I have a chart where the x axis is an option set. It currently displays the values in alphabetical order based on the option set value labels. I would like for it sort based on their values instead. I have set them up so that their values are ordered low to high based on the order of a particular business process that we have. Having the chart show up in that order will be intuitive for the users. Showing them alphabetically will be confusing. How can I force the chart to show those values in the x axis based on the option set values? 

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Sorting a chart x axis by option set value instead of label

    That article seems to assume that your option set is there purely as a mechanism to force sort order.  In my case the option set is on the entity and storing the actual value. I stumbled on this article that did the trick...

    mahadeomatre.blogspot.com/.../ms-crm-chart-axis-labels-sorting-by.html

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Sorting a chart x axis by option set value instead of label

    You need to export the chart and amend the xml to get the sorting you want.

    Follow process like in

    crmchartguy.wordpress.com/.../order-charts

    Look for section - 

    Order data based on a linked entity

    and the rest of his blogs to show you what you need to amend.

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
dkrishna Profile Picture

dkrishna 6

Featured topics

Product updates

Dynamics 365 release plans