<?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 Set Analysis Expression Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/366174#M493142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I am setting my variables in Variable Overview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the above expression.&lt;/P&gt;&lt;P&gt;The result is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the issue here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2012 19:06:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-23T19:06:56Z</dc:date>
    <item>
      <title>Set Analysis Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/366172#M493140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Month_Year is in the format 'MMM-YYYY'&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;vYearStart = Date(YearStart(Today()),'MMM-YYYY') which results in Jan-2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vCurrMonth = =Date(QuarterEnd(Today()),'MMM-YYYY') which results in Jun-2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the right syntax to get sum of values between Jan and Jun 2012 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing the expression&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Month_Year={"&amp;gt;=(vYearStart)&amp;lt;=(vCurrMonth)"}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Please enlighten me if i am missing something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 18:44:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/366172#M493140</guid>
      <dc:creator />
      <dc:date>2012-05-23T18:44:10Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/366173#M493141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this syntax to start:&lt;BR /&gt;Sum({&amp;lt;Month_Year={"&amp;gt;=$(vYearStart)&amp;lt;=$(vCurrMonth)"}&amp;gt;} Value) &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am assuming you are setting the variables with the expression, and not a LET statement in the script. But either way, the above should work.&lt;BR /&gt;-Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 18:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/366173#M493141</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-23T18:52:51Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/366174#M493142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I am setting my variables in Variable Overview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the above expression.&lt;/P&gt;&lt;P&gt;The result is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the issue here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 19:06:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/366174#M493142</guid>
      <dc:creator />
      <dc:date>2012-05-23T19:06:56Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/366175#M493143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How have you created Month_Year? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the textual representation of dates or time periods like above often show issues, at least it seems to be not easy to always match the required format. Thus I would recommend using a date type field in your set expression and then use variables or dollar sign expansions that evaluate to numericals, trying to prevent textual date format issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 20:31:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/366175#M493143</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-05-23T20:31:54Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/366176#M493144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with the problems with the textual represention but I recommend you convert your fields and variables to an integer representation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, &lt;/P&gt;&lt;P&gt;Your Month_Year could be used to create another field: nMonthYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load... &lt;/P&gt;&lt;P&gt;num( Monht_Year) as nMonthYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables will become: &lt;/P&gt;&lt;P&gt;vYearStart = num(YearStart(Today()) ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vCurrMonth = num(QuarterEnd(Today()) )&lt;/P&gt;&lt;P&gt;Set analysis will be: Sum({&amp;lt;nMonthYear={"&amp;gt;=$(vYearStart)&amp;lt;=$(vCurrMonth)"}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 02:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/366176#M493144</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2012-05-24T02:04:42Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/366177#M493145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would try putting your search criteria in a text box to make sure it is evaluating correclty:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;"&amp;gt;=(vYearStart)&amp;lt;=(vCurrMonth)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;And as Phil Bishop stated, you need to add dollar signs ($) in front of your variable parenthesis (i.e. $(vYearStart), $(vCurrentMonth))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 21:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/366177#M493145</guid>
      <dc:creator />
      <dc:date>2012-05-25T21:03:15Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/366178#M493146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure both variables start with an '=' in the Variable Overview. Then Phil's expression should work. If it doesn't, try this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Month_Year={"&amp;gt;='$(vYearStart)'&amp;lt;='$(vCurrMonth)'"}&amp;gt;} Value) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(single quotes around the dollar-sign expansion sometimes helps)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 21:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Help/m-p/366178#M493146</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2012-05-25T21:25:07Z</dc:date>
    </item>
  </channel>
</rss>

