<?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>topic HELP - Summarized table calculations based on 2 different groupings in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/HELP-Summarized-table-calculations-based-on-2-different/m-p/452736#M487573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I encountered a very complicated problem and I am stucked. The concept sounds simple but I don't know how to handle in Qlikview. &lt;/P&gt;&lt;P&gt;Hope experts here could help me to resolve this..&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try my best to describe the situation. I will break down the logic into steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the sample data set:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="31661" alt="Data.jpg" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/31661_Data.jpg" width="450" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, need to calculate the revenue group by ShipmentNumber and RevenueGroup and the result as below:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="31662" alt="Revenue.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/31662_Revenue.jpg" /&gt;&lt;/P&gt;&lt;P&gt;I have to show all the Costs that do not have revenue in the RevenueGroup and show the costs into columns called "Negative" and "Positive". Result as below:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="31663" alt="Grouping.jpg" class="jive-image-thumbnail jive-image" height="235" src="https://community.qlik.com/legacyfs/online/31663_Grouping.jpg" width="731" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the above, the final result has to show the costs group by CostGroup. Need to calculate the net numbers within the ShipmentNumber of the same CostGroup. Then add up all the deduced "Negative" or "Positive" number with all the ShipmentNumber. &lt;/P&gt;&lt;P&gt;The expected final result as below:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="31682" alt="Final.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/31682_Final.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;MANY MANY THANKS!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing need to mention. I &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;CANNOT PRE-CALCULATE&lt;/STRONG&gt;&lt;/SPAN&gt; the revenue in the scripts because each row in the data set is a transaction input by users in different transaction date. There are filters for users to select the transaction date periods. Thus, the calculation result will vary based on the selection and so, all the calculations have to be done on the fly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the data of the above in Excel file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jan 2013 10:02:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-24T10:02:59Z</dc:date>
    <item>
      <title>HELP - Summarized table calculations based on 2 different groupings</title>
      <link>https://community.qlik.com/t5/QlikView/HELP-Summarized-table-calculations-based-on-2-different/m-p/452736#M487573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I encountered a very complicated problem and I am stucked. The concept sounds simple but I don't know how to handle in Qlikview. &lt;/P&gt;&lt;P&gt;Hope experts here could help me to resolve this..&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try my best to describe the situation. I will break down the logic into steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the sample data set:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="31661" alt="Data.jpg" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/31661_Data.jpg" width="450" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, need to calculate the revenue group by ShipmentNumber and RevenueGroup and the result as below:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="31662" alt="Revenue.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/31662_Revenue.jpg" /&gt;&lt;/P&gt;&lt;P&gt;I have to show all the Costs that do not have revenue in the RevenueGroup and show the costs into columns called "Negative" and "Positive". Result as below:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="31663" alt="Grouping.jpg" class="jive-image-thumbnail jive-image" height="235" src="https://community.qlik.com/legacyfs/online/31663_Grouping.jpg" width="731" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the above, the final result has to show the costs group by CostGroup. Need to calculate the net numbers within the ShipmentNumber of the same CostGroup. Then add up all the deduced "Negative" or "Positive" number with all the ShipmentNumber. &lt;/P&gt;&lt;P&gt;The expected final result as below:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="31682" alt="Final.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/31682_Final.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;MANY MANY THANKS!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing need to mention. I &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;CANNOT PRE-CALCULATE&lt;/STRONG&gt;&lt;/SPAN&gt; the revenue in the scripts because each row in the data set is a transaction input by users in different transaction date. There are filters for users to select the transaction date periods. Thus, the calculation result will vary based on the selection and so, all the calculations have to be done on the fly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the data of the above in Excel file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 10:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HELP-Summarized-table-calculations-based-on-2-different/m-p/452736#M487573</guid>
      <dc:creator />
      <dc:date>2013-01-24T10:02:59Z</dc:date>
    </item>
  </channel>
</rss>

