<?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 with variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-with-variable/m-p/212312#M66325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your Help.&lt;/P&gt;&lt;P&gt;it doesen't work.&lt;/P&gt;&lt;P&gt;attached qvw&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Oct 2009 17:16:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-10-09T17:16:16Z</dc:date>
    <item>
      <title>set analysis with variable</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-variable/m-p/212310#M66323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Hi,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;The set analysis A is working correct.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;I would like the same formel with variable as B1&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;The set analysis B2 isn't working correct. It come the value 0.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Can anybody help me for set analysis B2, why is wrongs.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;A)Sum({$&amp;lt;[Calendar.Month]=, Calendar.Year=&amp;gt; * 1&amp;lt;[Calendar.MonthYear]=&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;{"$(='&amp;lt;='&amp;amp;Only(date(addmonths([Calendar.MonthYear],-1),'MMM-YYYY'))&amp;amp;'&amp;gt;'&amp;amp;Only(date(addmonths([Calendar.MonthYear],-13),'MMM-YYYY')))"} &amp;gt;}&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Sales)&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;B1)&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Varstartdate =(date(addmonths([Calendar.MonthYear],-1),'MMM-YYYY' ))&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;VarEnddate =(date(addmonths([Calendar.MonthYear],-13),'MMM-YYYY' ))&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Varstartdate and VarEnddate display correct date.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;B2)&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;sum({$&amp;lt;[Calendar.Month]=, Calendar.Year =&amp;gt; * 1&amp;lt;[Calendar.MonthYear]=&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;{'&amp;gt;=$Only(#Varstartdate) &amp;lt;= $Only(#VarEnddate)'} &amp;gt;} Sales)&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 16:19:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-variable/m-p/212310#M66323</guid>
      <dc:creator />
      <dc:date>2009-10-09T16:19:16Z</dc:date>
    </item>
    <item>
      <title>set analysis with variable</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-variable/m-p/212311#M66324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Without seeing the data it is hard to say..... try double quotes around your variables part, not single ones......&lt;/P&gt;&lt;P style="MARGIN:0cm 0cm 0pt;"&gt;sum({$&amp;lt;[Calendar.Month]=, Calendar.Year =&amp;gt; * 1&amp;lt;[Calendar.MonthYear]=&lt;/P&gt;&lt;P style="MARGIN:0cm 0cm 0pt;"&gt;{&lt;STRONG&gt;"&lt;/STRONG&gt;&amp;gt;=$Only(#Varstartdate) &amp;lt;= $Only(#VarEnddate)&lt;STRONG&gt;"&lt;/STRONG&gt;} &amp;gt;} Sales)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 16:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-variable/m-p/212311#M66324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-09T16:44:28Z</dc:date>
    </item>
    <item>
      <title>set analysis with variable</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-variable/m-p/212312#M66325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your Help.&lt;/P&gt;&lt;P&gt;it doesen't work.&lt;/P&gt;&lt;P&gt;attached qvw&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 17:16:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-variable/m-p/212312#M66325</guid>
      <dc:creator />
      <dc:date>2009-10-09T17:16:16Z</dc:date>
    </item>
  </channel>
</rss>

