<?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: How to make my Table 2 Display RATIO = 0.354 , Now it display 1.297 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-make-my-Table-2-Display-RATIO-0-354-Now-it-display-1-297/m-p/986002#M643139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure how this will behave with change in selections, but with current selections, this expression seems to work for &lt;STRONG&gt;STK_AVG&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(sum(STK_CLOSE) &amp;gt; 0 and sum(STK_OPEN) &amp;gt; 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeAvg(Aggr(Sum({&amp;lt;month&amp;gt;}TOTAL &amp;lt;year&amp;gt; If([YearMonth] = YearStart([YearMonth]), STK_OPEN)), [YearMonth], year),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;month, YearMonth = {"$(=Dual(Date(Monthstart(Max({&amp;lt;STK_CLOSE = {'*?'}&amp;gt;}YearMonth)), 'YY MMM'), MonthStart(Max({&amp;lt;STK_CLOSE = {'*?'}&amp;gt;}YearMonth))))"}&amp;gt;}STK_CLOSE)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109964_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Dec 2015 14:49:33 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-12-25T14:49:33Z</dc:date>
    <item>
      <title>How to make my Table 2 Display RATIO = 0.354 , Now it display 1.297</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-my-Table-2-Display-RATIO-0-354-Now-it-display-1-297/m-p/986001#M643138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to transform Table 1 into Table 2 ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i need Table 2 Display RATIO = 0.354 , Now it display 1.297&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Dec 2015 13:54:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-my-Table-2-Display-RATIO-0-354-Now-it-display-1-297/m-p/986001#M643138</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2015-12-25T13:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to make my Table 2 Display RATIO = 0.354 , Now it display 1.297</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-my-Table-2-Display-RATIO-0-354-Now-it-display-1-297/m-p/986002#M643139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure how this will behave with change in selections, but with current selections, this expression seems to work for &lt;STRONG&gt;STK_AVG&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(sum(STK_CLOSE) &amp;gt; 0 and sum(STK_OPEN) &amp;gt; 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeAvg(Aggr(Sum({&amp;lt;month&amp;gt;}TOTAL &amp;lt;year&amp;gt; If([YearMonth] = YearStart([YearMonth]), STK_OPEN)), [YearMonth], year),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;month, YearMonth = {"$(=Dual(Date(Monthstart(Max({&amp;lt;STK_CLOSE = {'*?'}&amp;gt;}YearMonth)), 'YY MMM'), MonthStart(Max({&amp;lt;STK_CLOSE = {'*?'}&amp;gt;}YearMonth))))"}&amp;gt;}STK_CLOSE)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109964_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Dec 2015 14:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-my-Table-2-Display-RATIO-0-354-Now-it-display-1-297/m-p/986002#M643139</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-25T14:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to make my Table 2 Display RATIO = 0.354 , Now it display 1.297</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-my-Table-2-Display-RATIO-0-354-Now-it-display-1-297/m-p/986003#M643140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great it work again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need your help again to get the LY ratio :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/940535"&gt;How to make Table 2 Ratio LY display 0.235 when i select year = 2015 ?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Dec 2015 15:09:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-my-Table-2-Display-RATIO-0-354-Now-it-display-1-297/m-p/986003#M643140</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2015-12-25T15:09:22Z</dc:date>
    </item>
  </channel>
</rss>

