SSRS列分组最终总计 我已经应用了父行组 = fields!subquote_details_productid_parentproductid.value 和儿童行组 = fields!subquote_details_productid.value 我也应用了列父组 =字段!

问题描述 投票:0回答:0

我已经应用了父行组 Screenshot of Table = fields! 和儿童行组

= fields!subquote_details_productid.value

我还应用了列parentgroup

= fields!

和专栏儿童组

= fields!quoteopportunity_quoteid.value

现在参考我的图像并浏览数据集 我遇到的总价值是错误的 如果打印了一个延长的金额 - 那么总数将弄错 有什么办法可以获得“ - ”的否则,否则有任何其他方法可以获得ExtendedAmount的总和。

我到现在已经使用了这种表达 = sum(iif(iSnothing(fields!subquote_details_extdedendemount.value)或字段!

对于总计,我正在使用以下表达 = formatnumber(celing(cdec(sum(fields!subquote_details_extdedendedamountvalue.value)))),2)

这是我的数据集

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true" > <entity name="quote" enableprefiltering="1" > <attribute name="name" /> <attribute name="customerid" /> <attribute name="statecode" /> <attribute name="totalamount" /> <attribute name="quoteid" /> <attribute name="quotenumber" /> <attribute name="transactioncurrencyid" /> <attribute name="transactioncurrencyidname" /> <attribute name="customeridname" /> <attribute name="ispl_croprotocolno" /> <link-entity name="quotedetail" from="quoteid" to="quoteid" alias="MainQuote_details" link-type="outer" > <attribute name="quotedetailid" /> <attribute name="baseamount" /> <attribute name="productid" /> <attribute name="productdescription" /> <attribute name="productidname" /> <attribute name="extendedamount" /> <link-entity name="product" from="productid" to="productid" alias="MainQuote_details_productid" link-type="outer" > <attribute name="parentproductid" /> <attribute name="parentproductidname" /> </link-entity> </link-entity> <link-entity name="opportunity" from="opportunityid" to="opportunityid" link-type="inner" alias="Opportunity" > <attribute name="opportunityid" /> <link-entity name="quote" from="opportunityid" to="opportunityid" link-type="inner" alias="QuoteOpportunity" > <attribute name="revisionnumber" /> <attribute name="createdon" /> <attribute name="quoteid" /> <attribute name="ispl_reportlable" /> <filter type="and" > <condition attribute="statecode" operator="eq" value="1" /> </filter> <link-entity name="quotedetail" from="quoteid" to="quoteid" alias="SubQuote_details" link-type="inner" > <attribute name="quotedetailid" /> <attribute name="baseamount" /> <attribute name="productid" /> <attribute name="productidname" /> <attribute name="extendedamount" /> <attribute name="description" /> <attribute name="productdescription" /> <link-entity name="product" from="productid" to="productid" alias="SubQuote_details_productid" link-type="inner" > <attribute name="parentproductid" /> <attribute name="parentproductidname" /> </link-entity> </link-entity> </link-entity> </link-entity> </entity>

输出看起来像是这样的输出,即在2个引号中不存在系统重新分析产品,因此打印了“ - ”。

如果产品在所有3个引号中都存在,即使其值为0,总计计算将起作用,总计将成真


    

Error calculation看起来您的sum()函数正在拾取整个运行总和,而不是当前组的总和。 sum()函数具有一个附加的参数,该参数允许您按组总和,在您的情况下,哪个layer(父组或列父组)。 语法看起来像这样:

=SUM(IIF(IsNothing(Fields!SubQuote_details_extendedamount.Value) OR Fields!SubQuote_details_extendedamount.Value = "", 1, 0) ,"SubQuote_details_productid_parentproductid") Correct Calculations

reporting-services dynamics-crm crm dynamics-crm-365
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.