<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Sum at Group Level in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sum-at-group-level/qaa-p/12442364#M4659544</link>
    <description>&lt;P&gt;Yes.  Trying to sum for a grand total so I can use that sum amount to calculate and average days late for the group.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Apr 2021 20:22:28 GMT</pubDate>
    <dc:creator>mdgarner57</dc:creator>
    <dc:date>2021-04-19T20:22:28Z</dc:date>
    <item>
      <title>Sum at Group Level</title>
      <link>https://community.sap.com/t5/technology-q-a/sum-at-group-level/qaq-p/12442360</link>
      <description>&lt;P&gt;I am new to Crystal Reports so this might be a rookie question but I've developed a report that uses two tables - the first contains record header information and the second contains related line item information for the header records. My first Group is based on the header information and the details are the line item information. One of my formula fields is a simple calculation of # of days late (Desired Date - Actual Date) that is calculated at both the Group and Detail level. I am trying to sum the # of days late at the first Group Level rather than at the detail level. &lt;/P&gt;
  &lt;P&gt;Example: Group 1 Days Late = -1&lt;/P&gt;
  &lt;P&gt; Detail 1a = -1&lt;/P&gt;
  &lt;P&gt; Detail 1b = -1&lt;/P&gt;
  &lt;P&gt; Sum = -2. vs Desired Answer = -1&lt;/P&gt;
  &lt;P&gt;I've tried placing the Sum Function in the Group 1 Footer, but it still sums the detailed records. What am I missing?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 13:22:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sum-at-group-level/qaq-p/12442360</guid>
      <dc:creator>mdgarner57</dc:creator>
      <dc:date>2021-04-19T13:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sum at Group Level</title>
      <link>https://community.sap.com/t5/technology-q-a/sum-at-group-level/qaa-p/12442361#M4659541</link>
      <description>&lt;P&gt;Is the number of days late available at the group level, or do you need to calculate it for the group?  &lt;/P&gt;&lt;P&gt;If all of the details have the same number of days late within a given group, then just put the days late formula in the group footer.  If they don't have the same days late, then you might want to do a Maximum instead of a Sum.&lt;/P&gt;&lt;P&gt;-Dell&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 13:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sum-at-group-level/qaa-p/12442361#M4659541</guid>
      <dc:creator>DellSC</dc:creator>
      <dc:date>2021-04-19T13:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sum at Group Level</title>
      <link>https://community.sap.com/t5/technology-q-a/sum-at-group-level/qaa-p/12442362#M4659542</link>
      <description>&lt;P&gt;Number of days late is calculated at both the group and detail level.  I have tried to sum on the group formula but it gives me the sum of the detail.  Can not find a way to isolate the sum to the group level only.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 13:54:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sum-at-group-level/qaa-p/12442362#M4659542</guid>
      <dc:creator>mdgarner57</dc:creator>
      <dc:date>2021-04-19T13:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sum at Group Level</title>
      <link>https://community.sap.com/t5/technology-q-a/sum-at-group-level/qaa-p/12442363#M4659543</link>
      <description>&lt;P&gt;Are you trying to sum the groups to show a grand total?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 14:03:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sum-at-group-level/qaa-p/12442363#M4659543</guid>
      <dc:creator>DellSC</dc:creator>
      <dc:date>2021-04-19T14:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sum at Group Level</title>
      <link>https://community.sap.com/t5/technology-q-a/sum-at-group-level/qaa-p/12442364#M4659544</link>
      <description>&lt;P&gt;Yes.  Trying to sum for a grand total so I can use that sum amount to calculate and average days late for the group.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 20:22:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sum-at-group-level/qaa-p/12442364#M4659544</guid>
      <dc:creator>mdgarner57</dc:creator>
      <dc:date>2021-04-19T20:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sum at Group Level</title>
      <link>https://community.sap.com/t5/technology-q-a/sum-at-group-level/qaa-p/12442365#M4659545</link>
      <description>&lt;P&gt;You'll need to use a running total to get the grand total.  Create the running total like this:&lt;/P&gt;&lt;P&gt;Field to Summarize:  Select the formula you created&lt;BR /&gt;Type of Summary:  Sum&lt;BR /&gt;Evaluate:  On Change of Group&lt;BR /&gt;Reset: Never&lt;/P&gt;&lt;P&gt;Assuming that you want to average over the number of groups and that the running total is called {#DaysLate}, your average formula would be something like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If DistinctCount({field you've grouped on}) &amp;gt; 0 then
  {#DaysLate} / DistinctCount({field you've grouped on})
else
 0&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;-Dell&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 21:29:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sum-at-group-level/qaa-p/12442365#M4659545</guid>
      <dc:creator>DellSC</dc:creator>
      <dc:date>2021-04-19T21:29:40Z</dc:date>
    </item>
  </channel>
</rss>

