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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Edit chart (XML) Group by / add category for 2 fields with 3 series?

(0) ShareShare
ReportReport
Posted on by 886

I have searched google to see if I could find anything on how to do this, but I wasn't lucky. So I hope someone here are able to help.

I want to create a chart with 2 categories and 3 series. Standard CRM I can only select 1 category if I select 3 series. So how can I add an additional category?

that is based on the field "d1_start"?

<visualization>
  <visualizationid>{6533169F-3AD0-E711-8131-005056B617B4}</visualizationid>
  <name>Resource earning by month</name>
  <primaryentitytypecode>d1_workorderresource</primaryentitytypecode>
  <datadescription>
    <datadefinition>
      <fetchcollection>
        <fetch mapping="logical" aggregate="true">
          <entity name="d1_workorderresource">
            <attribute alias="_CRMAutoGen_aggregate_column_Num_0" name="d1_totalbillabledurationhours" aggregate="sum" />
            <attribute alias="_CRMAutoGen_aggregate_column_Num_14" name="d1_totalbreakdurationhours" aggregate="sum" />
            <attribute alias="_CRMAutoGen_aggregate_column_Num_15" name="d1_totaldurationinprogress" aggregate="sum" />
   <attribute groupby="true" alias="_CRMAutoGen_groupby_column_Num_1" name="d1_resource" />

          </entity>
        </fetch>
      </fetchcollection>
   
      <categorycollection>
        <category alias="_CRMAutoGen_groupby_column_Num_1">
          <measurecollection>
            <measure alias="_CRMAutoGen_aggregate_column_Num_0" />
          </measurecollection>
          <measurecollection>
            <measure alias="_CRMAutoGen_aggregate_column_Num_14" />
          </measurecollection>
          <measurecollection>
            <measure alias="_CRMAutoGen_aggregate_column_Num_15" />
          </measurecollection>
        </category>
      </categorycollection>
   
   
    </datadefinition>
  </datadescription>
  <presentationdescription>
    <Chart Palette="None" PaletteCustomColors="91,151,213; 237,125,49; 160,116,166; 255,192,0; 68,114,196; 112,173,71; 37,94,145; 158,72,14; 117,55,125; 153,115,0; 38,68,120; 67,104,43; 124,175,221; 241,151,90; 186,144,192; 255,205,51; 105,142,208; 140,193,104; 50,125,194; 210,96,18; 150,83,159; 204,154,0; 51,90,161; 90,138,57;">
      <Series>
        <Series ChartType="Column" IsValueShownAsLabel="True" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40"></Series>
        <Series ChartType="Column" IsValueShownAsLabel="True" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40" YAxisType="Secondary"></Series>
        <Series ChartType="Column" IsValueShownAsLabel="True" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40"></Series>
      </Series>
      <ChartAreas>
        <ChartArea BorderColor="White" BorderDashStyle="Solid">
          <AxisY LabelAutoFitMinFontSize="8" TitleForeColor="59, 59, 59" TitleFont="{0}, 10.5px" LineColor="165, 172, 181" IntervalAutoMode="VariableCount">
            <MajorGrid LineColor="239, 242, 246" />
            <MajorTickMark LineColor="165, 172, 181" />
            <LabelStyle Font="{0}, 10.5px" ForeColor="59, 59, 59" />
          </AxisY>
          <AxisX LabelAutoFitMinFontSize="8" TitleForeColor="59, 59, 59" TitleFont="{0}, 10.5px" LineColor="165, 172, 181" IntervalAutoMode="VariableCount">
            <MajorTickMark LineColor="165, 172, 181" />
            <MajorGrid LineColor="Transparent" />
            <LabelStyle Font="{0}, 10.5px" ForeColor="59, 59, 59" />
          </AxisX>
          <AxisY2 LabelAutoFitMinFontSize="8" TitleForeColor="59, 59, 59" TitleFont="{0}, 10.5px" LineColor="165, 172, 181" IntervalAutoMode="VariableCount">
            <MajorGrid LineColor="239, 242, 246" />
            <MajorTickMark LineColor="165, 172, 181" />
            <LabelStyle Font="{0}, 10.5px" ForeColor="59, 59, 59" />
          </AxisY2>
        </ChartArea>
      </ChartAreas>
      <Titles>
        <Title Alignment="TopLeft" DockingOffset="-3" Font="{0}, 13px" ForeColor="59, 59, 59"></Title>
      </Titles>
      <Legends>
        <Legend Alignment="Center" LegendStyle="Table" Docking="right" IsEquallySpacedItems="True" Font="{0}, 11px" ShadowColor="0, 0, 0, 0" ForeColor="59, 59, 59" />
      </Legends>
    </Chart>
  </presentationdescription>
  <isdefault>false</isdefault>
</visualization>

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Syed Ibrahim Profile Picture
    6,257 on at

    try "Advance Chart Editor Tool" in XrmToolBox.

    4075.chart.PNG

    Hope this helps

  • rskadk1 Profile Picture
    886 on at

    I have already tried this.. But you can only edit colors etc. Defining what im asking (Adding categories, fields etc) for need to be done by code. So I need help with this part (Adding the correct line somewhere).

  • rskadk1 Profile Picture
    886 on at

    Nobody who have tried creating a similar solution?

  • halima Profile Picture
    25 on at

    Did you get any solution for this?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans