2012-07-09 3 views
2

기본 CRM 2011 Opportunities by Sales Stage 깔때기 차트를 사용하면 각 단계에 대한 데이터가 없더라도 범례의 모든 단계를 표시하려면 어떻게해야합니까? 이것은 단순한 문제처럼 보이지만 나는 혼란 스럽습니다.CRM 2011 차트 - 범례에 모든 값을 표시하는 방법?

차트에는 가져 오기 및 가져 오기로 검색 한 데이터 만 표시되며 각 스테이지에 대해 적어도 하나 이상의 레코드가있을 필요는 없습니다. 또한 깔때기 형 차트는 하나 이상의 시리즈를 가질 수 없습니다.

이것은 내가 생각해 봤지만 깔때기 형 차트로 작동하지 않습니다. 레이다 챠트로 스와핑을하면 레이아웃에 의한 무언가가이 유형의 데이터에는 쓸모가 없습니다.

<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> 

누구나 더 좋은 방법이 있습니까?

답변

0

불행하게도 여러 시리즈를 허용하지 않으므로 사용자의 접근 방식이 작동하지 않습니다. 그랬다면 필터가 작동 할 수 있도록 각 속성과 필터 주위에 태그를 추가해야합니다.

깔때기 형 차트에 각 스테이지의 합계가 표시되어 있으므로 각각에 대해 더미 레코드를 추가하여 해당 값이보기에 포함되어 있는지 확인할 수 있습니다. 더미 레코드에서 값은 0이므로 합계에 기여하지 않습니다. 당신은 단지 당신의 진보 된 Find가 약간의 창조적 일 필요가 있습니다. 그들.

당신이 위에서 언급 한 태그를 추가해야하지만 당신은 여기 http://crmchartguy.wordpress.com/2013/01/23/include-records-with-no-value-in-charts/

당신이 대신 누적 세로 막 대형 차트를 한 경우 일 것이다 당신의 XML을 복용 한 접근 방식을 더미 레코드를 추가로 더 진보 된 방법을 볼 수 있습니다

. 여기에 그 예가 나와 있습니다. http://crmchartguy.wordpress.com/2013/03/10/aggregate-total-on-top-of-stacked-column-charts-or-bar-charts-in-ms-crm-2011/