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

Chart .XML not calculating anticipated result when summing Opportunity estimatedvalue (or Order totalamount)

$
0
0

Hey all,

I'm attempting to generate a report that will show the sum of revenue in different parts of the sales cycle. For testing purposes, I just want to grab one set of revenue from Opportunity and One from Order. I've discovered I can hit off both entities by creating the report based on the user. However, I'm finding that it is not returning the anticipated sum amount. When importing the below .xml, I get a total of $13,342,250.00 for low confidence opportunities. However, if I run an advanced find and look at my opportunities using the same exact filters, I see only $160,750.00. For reference, the total amount in the system for ALL opportunities in this test system is $720,428 in open, $42,260.73 lost, and $4,939,316.53 won for a total of $5,702,005.26. So the total that my column chart is displaying should not even be a possible outcome if the report works the way I thought it did. The same thing is occurring with the other part of the stacked bar that references Orders. Is there something wrong in the .xml that would modify the output?

Here is the result I'm seeing, I apologize for the hard to read formatting, I'm focused on getting my data correct now, I'll work on colors/readability when this works as expected. 

<visualization>
<visualizationid>{4953B551-A847-E711-80DA-005056A863AC}</visualizationid>
<name>Opp and Order Test</name>
<description>Testing to see if I can generate a report showing Opp and Order sums with filters</description>
<primaryentitytypecode>systemuser</primaryentitytypecode>
<datadescription>
<datadefinition>
<fetchcollection>
<fetch mapping="logical" aggregate="true">
<entity name="systemuser">
<attribute groupby="true" alias="UserName" name="systemuserid" />
<link-entity name="opportunity" from="owninguser" to="systemuserid" link-type="outer">
<link-entity name="opportunity" from="opportunityid" to="opportunityid" link-type="outer">
<attribute alias="LowConfidenceOpportunities" name="estimatedvalue" aggregate="sum" />
<filter type="and">
<condition attribute="statecode" operator="eq" value="0" />
<condition attribute="new_probability" operator="eq" value="279640000" />
<condition attribute="new_quoteexists" operator="ne" value="1" />
<filter type="or">
<condition attribute="estimatedclosedate" operator="this-fiscal-period" />
<condition attribute="purchasetimeframe" operator="eq" value="1" />
</filter>
</filter>
</link-entity>
</link-entity>
<link-entity name="salesorder" from="owninguser" to="systemuserid" link-type="outer">
<link-entity name="salesorder" from="ordernumber" to="ordernumber" link-type="outer">
<attribute alias="IncompleteOrders" name="totalamount" aggregate="sum" />
<filter type="and">
<condition attribute="statecode" operator="eq" value="0" />
<condition attribute="requestdeliveryby" operator="this-fiscal-period" />
</filter>
</link-entity>
</link-entity>
</entity>
</fetch>
</fetchcollection>
<categorycollection>
<category alias="UserName">
<measurecollection>
<measure alias="IncompleteOrders" />
</measurecollection>
<measurecollection>
<measure alias="LowConfidenceOpportunities" />
</measurecollection>
</category>
</categorycollection>
</datadefinition>
</datadescription>
<presentationdescription>
<Chart Palette="None" PaletteCustomColors="RoyalBlue; DarkMagenta; HotPink; LightSeaGreen; Green; Orange; Gold; 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="StackedColumn" IsValueShownAsLabel="True" LegendText="Unfulfilled Orders" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40"></Series>
<Series ChartType="StackedColumn" IsValueShownAsLabel="True" LegendText="Low Confidence Opp" 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>
</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>


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images