<?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 Re: Nested Query in an Object ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-Query-in-an-Object/m-p/469508#M564982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/velocityherman" id="jive-7309312921022290924365" style="background-color: #ffffff; font-size: 12px; color: #007fc0; text-decoration: initial; font-weight: bold; font-family: Arial; text-align: center;"&gt;Herman QV&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am not very sure about the details of the calculations you want to have, but I think with the attached example you have some expressions like the ones you need, and you can easily customize to meet your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jan 2013 10:22:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-30T10:22:13Z</dc:date>
    <item>
      <title>Nested Query in an Object ?</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Query-in-an-Object/m-p/469507#M564981</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;I encountered a very complicated problem and I am stucked. The concept sounds simple and I know how to get this done by writing SQL but I don't know how to handle in Qlikview. &lt;/P&gt;&lt;P&gt;Hope QV 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="32811" __jive_id="31661" class="jive-image-thumbnail jive-image jiveImage" alt="Data.jpg" src="https://community.qlik.com/legacyfs/online/32811_Data.jpg" width="450" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, need to calculate the TOTAL REVENUE by ShipmentNumber and RevenueGroup and the result as below:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="32812" __jive_id="31662" class="jive-image jiveImage" alt="Revenue.jpg" src="https://community.qlik.com/legacyfs/online/32812_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="32813" __jive_id="31663" class="jive-image-thumbnail jive-image jiveImage" height="235" alt="Grouping.jpg" src="https://community.qlik.com/legacyfs/online/32813_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 TOTAL COSTS by CostGroup. Need to calculate the net numbers within a 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="32814" __jive_id="31682" class="jive-image jiveImage" alt="Final.jpg" src="https://community.qlik.com/legacyfs/online/32814_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 with different transaction date. There are filters for users to select the transaction date periods. Thus, the calculation on REVENUE 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>Wed, 30 Jan 2013 03:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Query-in-an-Object/m-p/469507#M564981</guid>
      <dc:creator />
      <dc:date>2013-01-30T03:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Query in an Object ?</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Query-in-an-Object/m-p/469508#M564982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/velocityherman" id="jive-7309312921022290924365" style="background-color: #ffffff; font-size: 12px; color: #007fc0; text-decoration: initial; font-weight: bold; font-family: Arial; text-align: center;"&gt;Herman QV&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am not very sure about the details of the calculations you want to have, but I think with the attached example you have some expressions like the ones you need, and you can easily customize to meet your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 10:22:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Query-in-an-Object/m-p/469508#M564982</guid>
      <dc:creator />
      <dc:date>2013-01-30T10:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Query in an Object ?</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Query-in-an-Object/m-p/469509#M564983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JG,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for your reply. &lt;/P&gt;&lt;P&gt;I had a look of your QVW and actually I had drafted what you have done before. But this is not what I want. The objective is to show the TOTAL COST by CostGroup if the corresponding Revenue is zero or missing, while Revenue is calculated by RevenueGroup. Since Revenue records do not come with a CostGroup value and thus, if I put CostGroup as the dimension, I don't know how to handle revenue records in this situation. I know that AGGR function could help but i tried many ways and just it doesn't work out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 02:07:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Query-in-an-Object/m-p/469509#M564983</guid>
      <dc:creator />
      <dc:date>2013-01-31T02:07:29Z</dc:date>
    </item>
  </channel>
</rss>

