<?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 with variables, calculated as an aggregate in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Correl-with-variables-calculated-as-an-aggregate/m-p/397368#M148013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to calculate the correlation coefficient of two variables when their value is calculated at an aggregated by "Gorup Name" .I have tried the following expression however I get all nul values. I have tried using the Group Name as a dimension too and also tried removing it. I know the variables themselves do work as I am plotting them on a scatter chart and I can see valid values. Ultimately, I want a single number to tell me what the correlation coefficient is for the two variables that can be seen in the scatter graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;correl &lt;SPAN style="font-size: 8pt;"&gt;(&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Group Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;vExpression_scatterX&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, vExpression_scatterY) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;correl&lt;SPAN style="font-size: 8pt;"&gt;(&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Group Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(vExpression_scatterX)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(vExpression_scatterY)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this is quite a simple one to fix... we shall see!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Isabel &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 May 2013 17:31:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-22T17:31:34Z</dc:date>
    <item>
      <title>Correl with variables, calculated as an aggregate</title>
      <link>https://community.qlik.com/t5/QlikView/Correl-with-variables-calculated-as-an-aggregate/m-p/397368#M148013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to calculate the correlation coefficient of two variables when their value is calculated at an aggregated by "Gorup Name" .I have tried the following expression however I get all nul values. I have tried using the Group Name as a dimension too and also tried removing it. I know the variables themselves do work as I am plotting them on a scatter chart and I can see valid values. Ultimately, I want a single number to tell me what the correlation coefficient is for the two variables that can be seen in the scatter graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;correl &lt;SPAN style="font-size: 8pt;"&gt;(&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Group Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;vExpression_scatterX&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, vExpression_scatterY) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;correl&lt;SPAN style="font-size: 8pt;"&gt;(&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Group Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(vExpression_scatterX)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(vExpression_scatterY)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this is quite a simple one to fix... we shall see!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Isabel &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 17:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Correl-with-variables-calculated-as-an-aggregate/m-p/397368#M148013</guid>
      <dc:creator />
      <dc:date>2013-05-22T17:31:34Z</dc:date>
    </item>
  </channel>
</rss>

