En utilisant le diagramme en entonnoir des opportunités par étape de vente par défaut de CRM 2011, comment faire pour qu'il affiche toutes les étapes dans la légende même s'il n'y a pas de données pour chaque étape ? Ce problème semble simple, mais je ne comprends pas.
Le graphique ne présente que les données récupérées par le Fetch et le Fetch n'aura pas nécessairement au moins un enregistrement pour chaque étape. De plus, le graphique en entonnoir ne peut pas avoir plus d'une série.
Voici ce que j'ai trouvé, mais cela ne fonctionne pas comme un diagramme en entonnoir. Le passage à un graphique radar permet au moins de faire quelque chose, mais la mise en page est inutile pour ce type de données.
<visualization>
<visualizationid>{BA88CAC2-637F-E011-8E24-00155D840900}</visualizationid>
<name>Opportunities by Sales Stage</name>
<primaryentitytypecode>opportunity</primaryentitytypecode>
<datadescription>
<datadefinition>
<fetchcollection>
<fetch mapping="logical" aggregate="true">
<entity name="opportunity">
<attribute alias="aggregate_column_1" name="opportunityid" aggregate="count" />
<attribute groupby="true" alias="groupby_column" name="salesstagecode">
<filter type="or">
<condition attribute="salesstagecode" operator="eq" value="1" />
</filter>
</attribute>
<attribute alias="aggregate_column_2" name="opportunityid" aggregate="count">
<filter type="or">
<condition attribute="salesstagecode" operator="eq" value="200000" />
</filter>
</attribute>
<attribute alias="aggregate_column_3" name="opportunityid" aggregate="count">
<filter type="or">
<condition attribute="salesstagecode" operator="eq" value="200001" />
</filter>
</attribute>
<attribute alias="aggregate_column_4" name="opportunityid" aggregate="count" >
<filter type="or">
<condition attribute="salesstagecode" operator="eq" value="200002" />
</filter>
</attribute>
<attribute alias="aggregate_column_5" name="opportunityid" aggregate="count">
<filter type="or">
<condition attribute="salesstagecode" operator="eq" value="100000000" />
</filter>
</attribute>
<attribute alias="aggregate_column_6" name="opportunityid" aggregate="count">
<filter type="or">
<condition attribute="salesstagecode" operator="eq" value="100000001" />
</filter>
</attribute>
<attribute alias="aggregate_column_7" name="opportunityid" aggregate="count" >
<filter type="or">
<condition attribute="salesstagecode" operator="eq" value="100000002" />
</filter>
</attribute>
<attribute alias="aggregate_column_8" name="opportunityid" aggregate="count">
<filter type="or">
<condition attribute="salesstagecode" operator="eq" value="100000003" />
</filter>
</attribute>
</entity>
</fetch>
</fetchcollection>
<categorycollection>
<category>
<measurecollection>
<measure alias="aggregate_column_1" />
</measurecollection>
<measurecollection>
<measure alias="aggregate_column_2" />
</measurecollection>
<measurecollection>
<measure alias="aggregate_column_3" />
</measurecollection>
<measurecollection>
<measure alias="aggregate_column_4" />
</measurecollection>
<measurecollection>
<measure alias="aggregate_column_5" />
</measurecollection>
<measurecollection>
<measure alias="aggregate_column_6" />
</measurecollection>
<measurecollection>
<measure alias="aggregate_column_7" />
</measurecollection>
<measurecollection>
<measure alias="aggregate_column_8" />
</measurecollection>
</category>
</categorycollection>
</datadefinition>
</datadescription>
<presentationdescription>
<Chart Palette="None" PaletteCustomColors="55,118,193; 197,56,52; 149,189,66; 117,82,160; 49,171,204; 255,136,35; 97,142,206; 209,98,96; 168,203,104; 142,116,178; 93,186,215; 255,155,83">
<Series>
<Series ChartType="Funnel" Name="o:salesstagecode,1" Color="55,118,193" IsValueShownAsLabel="true" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="FunnelLabelStyle=Outside, FunnelNeckHeight=0, FunnelPointGap=1, FunnelNeckWidth=5 ">
<SmartLabelStyle Enabled="True" />
</Series>
<Series ChartType="Funnel" Name="o:salesstagecode,200000" Color="197,56,52" IsValueShownAsLabel="true" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="FunnelLabelStyle=Outside, FunnelNeckHeight=0, FunnelPointGap=1, FunnelNeckWidth=5 ">
<SmartLabelStyle Enabled="True" />
</Series>
<Series ChartType="Funnel" Name="o:salesstagecode,200001" Color="149,189,66" IsValueShownAsLabel="true" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="FunnelLabelStyle=Outside, FunnelNeckHeight=0, FunnelPointGap=1, FunnelNeckWidth=5 ">
<SmartLabelStyle Enabled="True" />
</Series>
<Series ChartType="Funnel" Name="o:salesstagecode,200002" Color="117,82,160" IsValueShownAsLabel="true" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="FunnelLabelStyle=Outside, FunnelNeckHeight=0, FunnelPointGap=1, FunnelNeckWidth=5 ">
<SmartLabelStyle Enabled="True" />
</Series>
<Series ChartType="Funnel" Name="o:salesstagecode,100000000" Color="49,171,204" IsValueShownAsLabel="true" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="FunnelLabelStyle=Outside, FunnelNeckHeight=0, FunnelPointGap=1, FunnelNeckWidth=5 ">
<SmartLabelStyle Enabled="True" />
</Series>
<Series ChartType="Funnel" Name="o:salesstagecode,100000001" Color="255,136,35" IsValueShownAsLabel="true" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="FunnelLabelStyle=Outside, FunnelNeckHeight=0, FunnelPointGap=1, FunnelNeckWidth=5 ">
<SmartLabelStyle Enabled="True" />
</Series>
<Series ChartType="Funnel" Name="o:salesstagecode,100000002" Color="97,142,206" IsValueShownAsLabel="true" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="FunnelLabelStyle=Outside, FunnelNeckHeight=0, FunnelPointGap=1, FunnelNeckWidth=5 ">
<SmartLabelStyle Enabled="True" />
</Series>
<Series ChartType="Funnel" Name="o:salesstagecode,100000003" Color="209,98,96" IsValueShownAsLabel="true" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="FunnelLabelStyle=Outside, FunnelNeckHeight=0, FunnelPointGap=1, FunnelNeckWidth=5 ">
<SmartLabelStyle Enabled="True" />
</Series>
</Series>
<ChartAreas>
<ChartArea>
<Area3DStyle Enable3D="True" />
</ChartArea>
</ChartAreas>
<Legends>
<Legend Alignment="Center" LegendStyle="Table" Docking="right" IsEquallySpacedItems="True" Font="{0}, 11px" ShadowColor="0, 0, 0, 0" ForeColor="59, 59, 59" />
</Legends>
<Titles>
<Title Alignment="TopLeft" DockingOffset="-3" Font="{0}, 13px" ForeColor="0, 0, 0"></Title>
</Titles>
</Chart>
</presentationdescription>
<isdefault>false</isdefault>
</visualization>
Quelqu'un a-t-il une meilleure façon de procéder ?