<?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 How to remove Totals and other unwanted rows using Script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-remove-Totals-and-other-unwanted-rows-using-Script/m-p/1412647#M810300</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/253813" target="_blank"&gt;pradosh_thakur&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/56619" target="_blank"&gt;its.anandrjs&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the attached file/table to load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have to calculate model wise &lt;STRONG&gt;Sum(Cost)/Sum(Qty) as Exp. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Also need to ensure that:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. The totals are removed (highlighted in Red &amp;amp; Blue)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. If a model is repeated, then the average of repeated rows has to be considered:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;e.g in case of &lt;SPAN style="font-size: 13.3333px;"&gt;FTP-005&amp;nbsp; the Exp. would be 18333.34 i.e (100000/15) + (60000/2)) / 2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;Looking forward to your help,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>nickjose7</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>How to remove Totals and other unwanted rows using Script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-Totals-and-other-unwanted-rows-using-Script/m-p/1412647#M810300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/253813" target="_blank"&gt;pradosh_thakur&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/56619" target="_blank"&gt;its.anandrjs&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the attached file/table to load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have to calculate model wise &lt;STRONG&gt;Sum(Cost)/Sum(Qty) as Exp. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Also need to ensure that:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. The totals are removed (highlighted in Red &amp;amp; Blue)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. If a model is repeated, then the average of repeated rows has to be considered:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;e.g in case of &lt;SPAN style="font-size: 13.3333px;"&gt;FTP-005&amp;nbsp; the Exp. would be 18333.34 i.e (100000/15) + (60000/2)) / 2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;Looking forward to your help,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-Totals-and-other-unwanted-rows-using-Script/m-p/1412647#M810300</guid>
      <dc:creator>nickjose7</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove Totals and other unwanted rows using Script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-Totals-and-other-unwanted-rows-using-Script/m-p/1412648#M810301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load your table this way to not consider the rows where you have Total on that row and make clean on the load script and then do calculation for Exp that you have and take to table itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Data:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD RowNo() as RowID,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldA, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Field Center],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quantity, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cost&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[Value by Sheet Aug17 - CSD.xlsx]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ooxml, embedded labels, table is Sheet1)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Where right([Field Center],5) &amp;lt;&amp;gt; 'Total' and Right(FieldA,5) &amp;lt;&amp;gt; 'Total';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Left Join&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Model,RowID,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum(Cost)/Sum(Quantity) as Exp&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Data Group By Model,RowID;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;IMG alt="OP03.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/178962_OP03.PNG" style="height: auto;" /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Oct 2017 10:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-Totals-and-other-unwanted-rows-using-Script/m-p/1412648#M810301</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-10-08T10:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove Totals and other unwanted rows using Script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-Totals-and-other-unwanted-rows-using-Script/m-p/1412649#M810302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;If a model is repeated, then the average of repeated rows has to be considered:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;e.g in case of &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;FTP-005&amp;nbsp; the Exp. would be 18333.34 i.e (100000/15) + (60000/2)) / 2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Oct 2017 12:17:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-Totals-and-other-unwanted-rows-using-Script/m-p/1412649#M810302</guid>
      <dc:creator>nickjose7</dc:creator>
      <dc:date>2017-10-08T12:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove Totals and other unwanted rows using Script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-Totals-and-other-unwanted-rows-using-Script/m-p/1412650#M810303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached. Named after you.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Pradosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:10:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-Totals-and-other-unwanted-rows-using-Script/m-p/1412650#M810303</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2017-10-10T13:10:28Z</dc:date>
    </item>
  </channel>
</rss>

