<?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: Set analysis using variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283750#M105472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Even the syntax is not followed in the if condition it works fine... But I am worried what could be the reasons for difference in the values when I use set analysis and IF condition..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Feb 2012 11:14:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-15T11:14:22Z</dc:date>
    <item>
      <title>Set analysis using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283741#M105463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have a very minor issue.. I below setanalysis expression is not working.. can some one let me know that the error is?&lt;/P&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;﻿=sum({&amp;lt; Year= { '$(vMaxyear')}&amp;gt;} Sales)&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMaxYear is the variable which has the value of Maximum year...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp; in advance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 10:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283741#M105463</guid>
      <dc:creator />
      <dc:date>2012-02-15T10:16:46Z</dc:date>
    </item>
    <item>
      <title>Set analysis using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283742#M105464</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hope this will be helpful for your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =sum({&amp;lt; Year= {$(vMaxyear)}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 10:19:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283742#M105464</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-15T10:19:51Z</dc:date>
    </item>
    <item>
      <title>Set analysis using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283743#M105465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Ashok,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sorry it is not working.The same condition is workinf fine if I use IF condition.. I think the way the value is pulled from the variable is not correct i suppose..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 10:27:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283743#M105465</guid>
      <dc:creator />
      <dc:date>2012-02-15T10:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283744#M105466</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; see the attached file &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 10:30:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283744#M105466</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-15T10:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283745#M105467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The set analysis is working fine but no sure why the values are different when i do the same thing with IF condition...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if(Year= vMaxYear,Sales))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({ $&amp;lt; Year = {$(vMaxYear)}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The results for both are appering different.. This is my problem currently&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 10:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283745#M105467</guid>
      <dc:creator />
      <dc:date>2012-02-15T10:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283746#M105468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Lavanya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The set analysis value will be the correct one. Takes the sum of set of all the sales for the variable in the year. The first one vMaxYear is not in the variable syntax i.e. $(vMaxYear)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Rajesh Vaswani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 10:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283746#M105468</guid>
      <dc:creator>rajeshvaswani77</dc:creator>
      <dc:date>2012-02-15T10:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283747#M105469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lavanya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set analysis value will be the correct one. Takes the sum of set of all the sales for the variable in the year. The first one vMaxYear is not in the variable syntax i.e. $(vMaxYear)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Rajesh Vaswani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 10:52:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283747#M105469</guid>
      <dc:creator>rajeshvaswani77</dc:creator>
      <dc:date>2012-02-15T10:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283748#M105470</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hope the following links will be useful for your doubt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/message/1987#1987"&gt;http://community.qlik.com/message/1987&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/message/172683#172683"&gt;http://community.qlik.com/message/172683&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 10:56:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283748#M105470</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-15T10:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283749#M105471</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This one to usefull for your doubt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/thread/38560"&gt;http://community.qlik.com/thread/38560&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 10:58:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283749#M105471</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-15T10:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283750#M105472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Even the syntax is not followed in the if condition it works fine... But I am worried what could be the reasons for difference in the values when I use set analysis and IF condition..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 11:14:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283750#M105472</guid>
      <dc:creator />
      <dc:date>2012-02-15T11:14:22Z</dc:date>
    </item>
    <item>
      <title>Set analysis using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283751#M105473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hai Lavanya,&lt;/P&gt;&lt;P&gt;I think there is a small error on the syntax. you have mentioned =sum({&amp;lt; Year= { '$(vMaxyear')}&amp;gt;} Sales) &lt;/P&gt;&lt;P&gt;instead you try =sum({&amp;lt; Year= { '$(vMaxyear)'}&amp;gt;} Sales). I was able to get results with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 09:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283751#M105473</guid>
      <dc:creator />
      <dc:date>2012-02-20T09:24:22Z</dc:date>
    </item>
    <item>
      <title>Set analysis using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283752#M105474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Lavanya, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; Year= { $(=vMaxyear)}&amp;gt;} Sales) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shyam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 11:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-variables/m-p/283752#M105474</guid>
      <dc:creator />
      <dc:date>2012-02-23T11:06:41Z</dc:date>
    </item>
  </channel>
</rss>

