<?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: Help needed with Correl Syntax/Set Analysis with Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-needed-with-Correl-Syntax-Set-Analysis-with-Variable/m-p/671372#M243898</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I figured this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Correl(Aggr(Sum({&amp;lt;Color = {"$(vColor2)"},[YFlag] = {1}&amp;gt;} Value),MeasureDate),Aggr(Sum({&amp;lt;Color = {"$(vColor1)"},[YFlag] = {1}&amp;gt;} Value),MeasureDate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really did try putting quotes in earlier, but they didn't work. I think I may have been putting them on the wrong side of the $.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Aug 2014 19:24:04 GMT</pubDate>
    <dc:creator>datagrrl</dc:creator>
    <dc:date>2014-08-28T19:24:04Z</dc:date>
    <item>
      <title>Help needed with Correl Syntax/Set Analysis with Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-Correl-Syntax-Set-Analysis-with-Variable/m-p/671371#M243897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="padding-left: 30px;"&gt;=Correl(Aggr(Sum({&amp;lt;Color = {'Orange'},[YFlag] = {1}&amp;gt;} Value),MeasureDate),Aggr(Sum({&amp;lt;Color = {'Blue'},[YFlag] = {1}&amp;gt;} Value),MeasureDate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the above expression works perfectly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now want to open it up for my users to pick "Colors" to compare&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the Variables are throwing the correct values, because every other object that depends on them is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression checker says syntax for the following is ok:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;=Correl(Aggr(Sum({&amp;lt;Color = {$(vColor2)},[YFlag] = {1}&amp;gt;} Value),MeasureDate),Aggr(Sum({&amp;lt;Color = {$(vColor1)},[YFlag] = {1}&amp;gt;} Value),MeasureDate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get a Null Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am thinking I might have to change this back to a Sum if, but having to include two dimensions it made more sense to use set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 15:49:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-Correl-Syntax-Set-Analysis-with-Variable/m-p/671371#M243897</guid>
      <dc:creator>datagrrl</dc:creator>
      <dc:date>2014-08-28T15:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with Correl Syntax/Set Analysis with Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-Correl-Syntax-Set-Analysis-with-Variable/m-p/671372#M243898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I figured this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Correl(Aggr(Sum({&amp;lt;Color = {"$(vColor2)"},[YFlag] = {1}&amp;gt;} Value),MeasureDate),Aggr(Sum({&amp;lt;Color = {"$(vColor1)"},[YFlag] = {1}&amp;gt;} Value),MeasureDate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really did try putting quotes in earlier, but they didn't work. I think I may have been putting them on the wrong side of the $.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 19:24:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-Correl-Syntax-Set-Analysis-with-Variable/m-p/671372#M243898</guid>
      <dc:creator>datagrrl</dc:creator>
      <dc:date>2014-08-28T19:24:04Z</dc:date>
    </item>
  </channel>
</rss>

