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 :
Microsoft Dynamics CRM (Archived)

Percentage calculation in crm 2011 charts

(0) ShareShare
ReportReport
Posted on by 550

 

Hi all,

 

I am trying to get percentage calculation in default CRM 2011 charts. CRM provides aggregates functions like count,sum,average,min,max methods. But it does not have Percentage calculation function.

Here is the fetch XML generated by CRM 2011 chart to get sum of revenue field of account

<fetchcollection>

        <fetch mapping="logical" aggregate="true">

          <entity name="account">

            <attribute groupby="true" alias="groupby_column" dategrouping="month" name="createdon" />

            <attribute alias="aggregate_column" name="revenue" aggregate="sum" />

          </entity>

        </fetch>

      </fetchcollection>

 

 

Is there any way to calculate percentage to display in charts of crm 2011 out of the box.

 

 

any help much appreciated..

*This post is locked for comments

I have the same question (0)
  • Adam Pasch Profile Picture
    270 on at

     

     

  • Suggested answer
    Adam Pasch Profile Picture
    270 on at

    The code below was used to display percentages on a pie chart, but it should work for any chart.  

    Modify the <Series> section (bold were the changes & additions):

    <Series>
            <Series ShadowOffset="0" IsValueShownAsLabel="FalseLabel="#PERCENT" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PieLabelStyle=Inside, PieDrawingStyle=Default" ChartType="pie" LabelFormat="#0.##%">
              <SmartLabelStyle Enabled="True" />
            </Series>

     

     

    Hope that helps.

    -Adam Pasch

  • Community Member Profile Picture
    on at

    Adam - thanks for the simple and easy to use XML.  

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans