<?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 Compare one column each cell value with next column accumulated values - coverage ratio in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-one-column-each-cell-value-with-next-column-accumulated/m-p/783240#M1029642</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am stuck with some requirement, the image below explains the concept, PFA are the qvw and excel file. I want to achieve the same thing into Qlikview table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="coverage ratio.png" class="image-1 jive-image" src="/legacyfs/online/77602_coverage ratio.png" style="height: 323px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Muhammad Raza&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Feb 2015 08:35:03 GMT</pubDate>
    <dc:creator>muhammadraza</dc:creator>
    <dc:date>2015-02-11T08:35:03Z</dc:date>
    <item>
      <title>Compare one column each cell value with next column accumulated values - coverage ratio</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-one-column-each-cell-value-with-next-column-accumulated/m-p/783240#M1029642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am stuck with some requirement, the image below explains the concept, PFA are the qvw and excel file. I want to achieve the same thing into Qlikview table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="coverage ratio.png" class="image-1 jive-image" src="/legacyfs/online/77602_coverage ratio.png" style="height: 323px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Muhammad Raza&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 08:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-one-column-each-cell-value-with-next-column-accumulated/m-p/783240#M1029642</guid>
      <dc:creator>muhammadraza</dc:creator>
      <dc:date>2015-02-11T08:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Compare one column each cell value with next column accumulated values - coverage ratio</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-one-column-each-cell-value-with-next-column-accumulated/m-p/783241#M1029643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw. Maybe that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 10:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-one-column-each-cell-value-with-next-column-accumulated/m-p/783241#M1029643</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-02-11T10:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Compare one column each cell value with next column accumulated values - coverage ratio</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-one-column-each-cell-value-with-next-column-accumulated/m-p/783242#M1029644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you share your Expression please?&lt;/P&gt;&lt;P&gt;I'm on PE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 10:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-one-column-each-cell-value-with-next-column-accumulated/m-p/783242#M1029644</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-02-11T10:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Compare one column each cell value with next column accumulated values - coverage ratio</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-one-column-each-cell-value-with-next-column-accumulated/m-p/783243#M1029645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's all done in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14236514455906183" jivemacro_uid="_14236514455906183"&gt;
&lt;P&gt;T1:&lt;/P&gt;
&lt;P&gt;LOAD Date(date) as date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [closing stock],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; forcast&lt;/P&gt;
&lt;P&gt;FROM [comm151561.xlsx] (ooxml, embedded labels, table is Sheet2);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;join&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD date as date_x, forcast as forcast_x&lt;/P&gt;
&lt;P&gt;Resident T1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;T2:&lt;/P&gt;
&lt;P&gt;LOAD *, if(stock_run &amp;gt;= 0,1, if(previous(stock_run) &amp;gt; 0, previous(stock_run)/forcast_x , 0)) as coverage;&lt;/P&gt;
&lt;P&gt;LOAD *, rangesum([closing stock],-forcast_run) as stock_run;&lt;/P&gt;
&lt;P&gt;LOAD *, if(date = peek(date), rangesum(forcast_x,peek(forcast_run)),forcast_x) as forcast_run&lt;/P&gt;
&lt;P&gt;Resident T1&lt;/P&gt;
&lt;P&gt;where date_x &amp;gt; date&lt;/P&gt;
&lt;P&gt;order by date, date_x;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;drop table T1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;T3:&lt;/P&gt;
&lt;P&gt;LOAD date, [closing stock], forcast, sum(coverage) as coverage_ratio&lt;/P&gt;
&lt;P&gt;Resident T2&lt;/P&gt;
&lt;P&gt;group by date,[closing stock], forcast;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;drop table T2;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 10:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-one-column-each-cell-value-with-next-column-accumulated/m-p/783243#M1029645</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-02-11T10:45:08Z</dc:date>
    </item>
  </channel>
</rss>

