<?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: Aggregation problem in graphical HANA calculation view in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/aggregation-problem-in-graphical-hana-calculation-view/qaa-p/12472894#M4672643</link>
    <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;try to  change the keep flag proprety to true on your field BILLDOC at the aggregration node.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jul 2022 11:30:31 GMT</pubDate>
    <dc:creator>philippe_dobrowlanski</dc:creator>
    <dc:date>2022-07-19T11:30:31Z</dc:date>
    <item>
      <title>Aggregation problem in graphical HANA calculation view</title>
      <link>https://community.sap.com/t5/technology-q-a/aggregation-problem-in-graphical-hana-calculation-view/qaq-p/12472893</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;I am puzzled by the aggregation behavior in in the Join node of my graphical calculation view. I hope someone can give me a hint on how to get the result I expect.&lt;/P&gt;
  &lt;P&gt;The scenario is the following:&lt;/P&gt;
  &lt;UL&gt; 
   &lt;LI&gt;There are two projections I need to join. I am using an Inner Join. &lt;BR /&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1964498-01-calc-view.png" /&gt;&lt;/P&gt;&lt;IMG alt="" style="background-color: initial; color: rgb(68, 68, 68); font-size: 15px;" /&gt;&lt;BR /&gt;&lt;BR /&gt;In the Join node there is one Calculated Column RECORD_COUNT set constantly to "1".&lt;BR /&gt;&lt;IMG alt="" /&gt;&lt;/LI&gt; 
   &lt;LI&gt;The projection on the left (Druckbeleg_Kopf) contains the following data:&lt;BR /&gt;There are three document numbers (OPBEL).&lt;BR /&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1964499-02-left-projection.png" /&gt;&lt;/P&gt;&lt;IMG alt="" /&gt;&lt;/LI&gt; 
   &lt;LI&gt;The projection on the right (Druckbeleg_Abrechnungsbelege) contains the following data:&lt;BR /&gt;Each of the three document numbers (OPBEL above, PRINTDOC in this projection) contains four records with different BILLDOC values.&lt;BR /&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1964500-03-right-projection.png" /&gt;&lt;/P&gt;&lt;IMG alt="" /&gt;&lt;/LI&gt; 
   &lt;LI&gt;The RAW DATA of the Join node looks as expected. There are 12 records with all available combinations of OPBEL/PRINTDOC and BILLDOC.&lt;BR /&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1964501-04-raw-data-join.png" /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG alt="" /&gt;&lt;/LI&gt; 
   &lt;LI&gt;So far so good.&lt;BR /&gt;In the Analysis tab, we can see the 12 records as well.&lt;BR /&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1964503-05-join-analysis-all.png" /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG alt="" /&gt;&lt;/LI&gt; 
   &lt;LI&gt;When removing field OPBEL, the aggregation of RECORD_COUNT looks as expected on field BILLDOC:&lt;BR /&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1964504-06-join-analysis-billdoc.png" /&gt;&lt;/P&gt;&lt;IMG alt="" /&gt;&lt;/LI&gt; 
   &lt;LI&gt;Now when removing field BILLDOC and dragging field OPBEL back into the labels axis, RECORD_COUNT is not aggregated as I expect.&lt;BR /&gt;I would expect the sum of RECORD_COUNT to be 4 for each entry in OPBEL. Because as we can see in the RAW DATA of the Join result, there are four records each.&lt;BR /&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1964505-07-join-analysis-opbel.png" /&gt;&lt;/P&gt;&lt;IMG alt="" /&gt;&lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;P&gt;Can someone explain why the aggregation behaves as it does?&lt;/P&gt;
  &lt;P&gt;And more important: Can anyone give me a hint to how I do get the result I expect? How do I get the aggregation of RECORD_COUNT based on the joined data set?&lt;/P&gt;
  &lt;P&gt;I appreciate any help.&lt;/P&gt;
  &lt;P&gt;Thanks a lot in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 10:07:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/aggregation-problem-in-graphical-hana-calculation-view/qaq-p/12472893</guid>
      <dc:creator>stefan_voltz1</dc:creator>
      <dc:date>2021-08-04T10:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation problem in graphical HANA calculation view</title>
      <link>https://community.sap.com/t5/technology-q-a/aggregation-problem-in-graphical-hana-calculation-view/qaa-p/12472894#M4672643</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;try to  change the keep flag proprety to true on your field BILLDOC at the aggregration node.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 11:30:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/aggregation-problem-in-graphical-hana-calculation-view/qaa-p/12472894#M4672643</guid>
      <dc:creator>philippe_dobrowlanski</dc:creator>
      <dc:date>2022-07-19T11:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation problem in graphical HANA calculation view</title>
      <link>https://community.sap.com/t5/technology-q-a/aggregation-problem-in-graphical-hana-calculation-view/qaa-p/12472895#M4672644</link>
      <description>&lt;P&gt;use keep flag property on BILLDOC&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 20:33:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/aggregation-problem-in-graphical-hana-calculation-view/qaa-p/12472895#M4672644</guid>
      <dc:creator>former_member719934</dc:creator>
      <dc:date>2022-10-11T20:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation problem in graphical HANA calculation view</title>
      <link>https://community.sap.com/t5/technology-q-a/aggregation-problem-in-graphical-hana-calculation-view/qaa-p/12472896#M4672645</link>
      <description>&lt;P&gt;Did you solve this issue? If yes, can you please share the solution? I am struggling with the same issue.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; @stefan_voltz&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 12:15:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/aggregation-problem-in-graphical-hana-calculation-view/qaa-p/12472896#M4672645</guid>
      <dc:creator>elitsy_01</dc:creator>
      <dc:date>2023-09-26T12:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation problem in graphical HANA calculation view</title>
      <link>https://community.sap.com/t5/technology-q-a/aggregation-problem-in-graphical-hana-calculation-view/qaa-p/12472897#M4672646</link>
      <description>&lt;P&gt;Hi Hani, yes I solved it using the keep flag. I hope this article helps you: &lt;A href="https://blogs.sap.com/2017/08/30/usage-of-keep-flag/" target="test_blank"&gt;https://blogs.sap.com/2017/08/30/usage-of-keep-flag/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 12:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/aggregation-problem-in-graphical-hana-calculation-view/qaa-p/12472897#M4672646</guid>
      <dc:creator>stefan_voltz1</dc:creator>
      <dc:date>2023-09-26T12:38:33Z</dc:date>
    </item>
  </channel>
</rss>

