Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Aggregating total amount of Accounts by CustomerTypeCode on top of Stacked Column

$
0
0

Hey,

It is my very first post here so hello!

Just got on to creating a bit more complex charts on Dynamics CRM yesterday, and I have been having some headache with this example.

So I am trying to get the total amount of accounts created monthly sorted with CustomerType code using a stacked column.

Here where I am currently at (Sorry the Months are in Finnish). The problem I am having is that I cannot filter the different Relationship types on different measurements. Condition attributes are set correctly, but they are not applying. If I add the condition attribute for the whole data fetch, it will apply.

Blue = Lead(9), Yellow= Prospect(8), Red=Customer(3) (These are the CustomerTypeCode's we are using at the moment)

Heres my Data Description set and Presentation Description set:

<datadefinition><fetchcollection><fetch mapping="logical" aggregate="true"><entity name="account"><attribute groupby="true" alias="new_customers" dategrouping="month" name="createdon" /><link-entity name="account" from="accountid" to="accountid" link-type="outer"><filter><condition attribute="customertypecode" operator="eq" value="9" /></filter><attribute name="accountid" alias="lead" aggregate="count" /></link-entity><link-entity name="account" from="accountid" to="accountid" link-type="outer"><filter type="and"><condition attribute="customertypecode" operator="eq" value="8" /></filter><attribute alias="prospect" name="accountid" aggregate="count" /></link-entity><link-entity name="account" from="accountid" to="accountid" link-type="outer"><filter type="and"><condition attribute="customertypecode" operator="eq" value="3" /></filter><attribute alias="customer" name="accountid" aggregate="count" /></link-entity><attribute alias="aggregated_total" name="accountid" aggregate="count" /></entity></fetch></fetchcollection><categorycollection><category alias="new_customers"><measurecollection><measure alias="lead" /></measurecollection><measurecollection><measure alias="prospect" /></measurecollection><measurecollection><measure alias="customer" /></measurecollection><measurecollection><measure alias="aggregated_total" /></measurecollection></category></categorycollection></datadefinition>


<Chart Palette="None" PaletteCustomColors="91, 151, 213; 237,125,49; 1,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; #000000;"><Series><Series ChartType="Stackedcolumn" LegendText="Lead" Color="#FF3200" IsValueShownAsLabel="False" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40"></Series><Series ChartType="Stackedcolumn" LegendText="Prospect" Color="#FFb400" IsValueShownAsLabel="False" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40"></Series><Series ChartType="Stackedcolumn" LegendText="Customer" Color="#00a4ff" IsValueShownAsLabel="False" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40"></Series><Series ChartType="Point" IsVisibleInLegend="False" IsValueShownAsLabel="True" MarkerBorderColor="Transparent" MarkerColor="Transparent" Font="{0}, 14px" LabelForeColor="59, 59, 59"></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></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" LegendItemOrder="ReversedSeriesOrder" Font="{0}, 11px" ShadowColor="0, 0, 0, 0" ForeColor="59, 59, 59" /></Legends></Chart>



Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>