<?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: Correlation coefficient with a unique input table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Correlation-coefficient-with-a-unique-input-table/m-p/1030520#M924032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, but I guess there is a better key to use, maybe a date field or something like this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2016 11:29:47 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-04-14T11:29:47Z</dc:date>
    <item>
      <title>Correlation coefficient with a unique input table</title>
      <link>https://community.qlik.com/t5/QlikView/Correlation-coefficient-with-a-unique-input-table/m-p/1030517#M924029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am in trouble to calculate correlation coefficient among two variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is easy if we have these datas:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="126" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#3D3D3D&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; width: 266px; height: 107px;" width="266"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;AAPL&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;IBM&lt;/TH&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-align: left; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);" width="64"&gt;104.78&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-align: left; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);" width="64"&gt;134.57&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-align: left; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);" width="64"&gt;102.15&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-align: left; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);" width="64"&gt;134.47&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-align: left; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);" width="64"&gt;100.15&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-align: left; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);" width="64"&gt;133.80&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-align: left; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);" width="64"&gt;95.92&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-align: left; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);" width="64"&gt;131.51&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&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;Correl(AAPL,IBM) = 0.94433&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But mine are organized in a different way. &lt;/P&gt;&lt;P&gt;I have to calculate the correlation coefficient of Adj Close price between two equities:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="224" style="border: 1px solid #000000; width: 266px; height: 221px;" width="264"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Equity&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Adj Close&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;AAPL&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;104.78&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;AAPL&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;102.15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;AAPL&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100.15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;AAPL&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;95.92&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;IBM&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;134.57&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;IBM&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;134.47&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;IBM&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;133.80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;IBM&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;131.51&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I calculate Correl with my datas?&lt;/P&gt;&lt;P&gt;I have tried for two days, without results.&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I am using a Personal edition so I'm not able to open other user&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;'s qlikview file. &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Thank you. &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/Correlation-coefficient-with-a-unique-input-table/m-p/1030517#M924029</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation coefficient with a unique input table</title>
      <link>https://community.qlik.com/t5/QlikView/Correlation-coefficient-with-a-unique-input-table/m-p/1030518#M924030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe create a field that can be used to link the two lines of each Equity that build an x/y pair:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD If(Equity &amp;lt;&amp;gt; previous(Equity),1,Rangesum(1,Peek(RowNo))) as RowNo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Equity, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Adj Close]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="213200" data-objecttype="1" href="https://community.qlik.com/thread/213200"&gt;https://community.qlik.com/thread/213200&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(html, codepage is 1252, embedded labels, table is @2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Correl( aggr(Only({&amp;lt;Equity = {AAPL}&amp;gt;}[Adj Close]), RowNo ),aggr(Only({&amp;lt;Equity = {IBM}&amp;gt;}[Adj Close]), RowNo) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;returns: 0.94432602&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 11:18:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Correlation-coefficient-with-a-unique-input-table/m-p/1030518#M924030</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-14T11:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation coefficient with a unique input table</title>
      <link>https://community.qlik.com/t5/QlikView/Correlation-coefficient-with-a-unique-input-table/m-p/1030519#M924031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or you can use your own approach to creating row now:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD AutoNumber(RowNo(), Equity) as RowNo,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Equity, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Adj Close]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="213200" data-objecttype="1" href="https://community.qlik.com/thread/213200"&gt;https://community.qlik.com/thread/213200&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, codepage is 1252, embedded labels, table is @2);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 11:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Correlation-coefficient-with-a-unique-input-table/m-p/1030519#M924031</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-14T11:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation coefficient with a unique input table</title>
      <link>https://community.qlik.com/t5/QlikView/Correlation-coefficient-with-a-unique-input-table/m-p/1030520#M924032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, but I guess there is a better key to use, maybe a date field or something like this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 11:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Correlation-coefficient-with-a-unique-input-table/m-p/1030520#M924032</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-14T11:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation coefficient with a unique input table</title>
      <link>https://community.qlik.com/t5/QlikView/Correlation-coefficient-with-a-unique-input-table/m-p/1030521#M924033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 11:30:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Correlation-coefficient-with-a-unique-input-table/m-p/1030521#M924033</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-14T11:30:57Z</dc:date>
    </item>
  </channel>
</rss>

