<?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 Correl function with aggregation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Correl-function-with-aggregation/m-p/1070866#M465551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate the correlation between two dataset. How can I use a set analysis in the correl expression. This is what I tried, but that doesn't work: &lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0433ff;"&gt;Correl&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;({$&amp;lt; &lt;/SPAN&gt;Variable&lt;SPAN style="color: #000000;"&gt; = {&lt;/SPAN&gt;"P02.01"&lt;SPAN style="color: #000000;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;#score&lt;SPAN style="color: #000000;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;({$&amp;lt; &lt;/SPAN&gt;Variable&lt;SPAN style="color: #000000;"&gt; = {&lt;/SPAN&gt;"P03.01"&lt;SPAN style="color: #000000;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;#score&lt;SPAN style="color: #000000;"&gt;)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Who can help?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Mar 2016 22:09:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-03-14T22:09:33Z</dc:date>
    <item>
      <title>Correl function with aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Correl-function-with-aggregation/m-p/1070866#M465551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate the correlation between two dataset. How can I use a set analysis in the correl expression. This is what I tried, but that doesn't work: &lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0433ff;"&gt;Correl&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;({$&amp;lt; &lt;/SPAN&gt;Variable&lt;SPAN style="color: #000000;"&gt; = {&lt;/SPAN&gt;"P02.01"&lt;SPAN style="color: #000000;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;#score&lt;SPAN style="color: #000000;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;({$&amp;lt; &lt;/SPAN&gt;Variable&lt;SPAN style="color: #000000;"&gt; = {&lt;/SPAN&gt;"P03.01"&lt;SPAN style="color: #000000;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;#score&lt;SPAN style="color: #000000;"&gt;)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Who can help?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 22:09:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Correl-function-with-aggregation/m-p/1070866#M465551</guid>
      <dc:creator />
      <dc:date>2016-03-14T22:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Correl function with aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Correl-function-with-aggregation/m-p/1070867#M465552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Correl() function should operate on pairs of dimensional data values, not on a pair of scalar values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you would need to apply advanced aggregation, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0433ff;"&gt;Correl&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;( &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #000000;"&gt;Aggr( &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;({$&amp;lt; &lt;/SPAN&gt;Variable&lt;SPAN style="color: #000000;"&gt; = {&lt;/SPAN&gt;"P02.01"&lt;SPAN style="color: #000000;"&gt;}&amp;gt;}&lt;/SPAN&gt;#score&lt;SPAN style="color: #000000;"&gt;), Dimension) ,Aggr(&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;({$&amp;lt; &lt;/SPAN&gt;Variable&lt;SPAN style="color: #000000;"&gt; = {&lt;/SPAN&gt;"P03.01"&lt;SPAN style="color: #000000;"&gt;}&amp;gt;}&lt;/SPAN&gt;#score&lt;SPAN style="color: #000000;"&gt;), Dimension)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 22:30:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Correl-function-with-aggregation/m-p/1070867#M465552</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-14T22:30:05Z</dc:date>
    </item>
  </channel>
</rss>

