<?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: calculate correlation using variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculate-correlation-using-variable/m-p/763041#M1033085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;For &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;$(=Overallquestion) I get a result. But when I enter Correl(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;$(=Overallquestion),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;$(=Overallquestion)) I don't get a result (only a '-'). Should be 1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f6f6f6; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f6f6f6; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f6f6f6; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Strange.. or am I missing something ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Feb 2015 16:54:08 GMT</pubDate>
    <dc:creator>curiousfellow</dc:creator>
    <dc:date>2015-02-07T16:54:08Z</dc:date>
    <item>
      <title>calculate correlation using variable</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-correlation-using-variable/m-p/763039#M1033083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to calculate the correlation between the answers of two questions.&lt;/P&gt;&lt;P&gt;So I made a variable to calculate the sum of one question. (OverallQuestion) :=Sum({1&amp;lt;question={'finalquestion'}&amp;gt;}answer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer to the questions is allways numeric (or null)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I make an expression like&amp;nbsp; =correl($(Overallquestio),Question) i don't get results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some questions were not answered, so there are null-values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to use variables in the function Correl ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2015 14:50:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-correlation-using-variable/m-p/763039#M1033083</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2015-02-07T14:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: calculate correlation using variable</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-correlation-using-variable/m-p/763040#M1033084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generally you could use variables for nearly each part from dimensions or expression - it's only a question from the syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you used the syntax "= AnyExpression" for a variable the variable will be global calculated without any relation to objects or dimensions. If you want use the variable as replace for a expression then without the equal-sign. Further the call from variables needed often a $-expansion like $(=variable), see also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3406"&gt;The Magic of Variables&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3444"&gt;The Magic of Dollar Expansions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable:&lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;question={'finalquestion'}&amp;gt;}answer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression:&lt;/P&gt;&lt;P&gt;correl($(=Overallquestion),Question)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And by problems with NULL could be a rangecorrel() helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2015 15:54:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-correlation-using-variable/m-p/763040#M1033084</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-02-07T15:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: calculate correlation using variable</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-correlation-using-variable/m-p/763041#M1033085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;For &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;$(=Overallquestion) I get a result. But when I enter Correl(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;$(=Overallquestion),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;$(=Overallquestion)) I don't get a result (only a '-'). Should be 1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f6f6f6; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f6f6f6; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f6f6f6; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Strange.. or am I missing something ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2015 16:54:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-correlation-using-variable/m-p/763041#M1033085</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2015-02-07T16:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: calculate correlation using variable</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-correlation-using-variable/m-p/763042#M1033086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe there are any invalid values or NULL on the level from the aggregation. Try to handle it with rangecorrel() or &lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f6f6f6; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(=alt(Overallquestion, DefaultValue)).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f6f6f6; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f6f6f6; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;- Marcus&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2015 18:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-correlation-using-variable/m-p/763042#M1033086</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-02-07T18:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: calculate correlation using variable</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-correlation-using-variable/m-p/763043#M1033087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your variable "OverallQuestion" contains a basic aggregation function.&amp;nbsp; You can't use this in Correl unless you use TOTAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See if this fixes your error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 May 2015 20:23:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-correlation-using-variable/m-p/763043#M1033087</guid>
      <dc:creator>gshockxcc</dc:creator>
      <dc:date>2015-05-30T20:23:29Z</dc:date>
    </item>
  </channel>
</rss>

