<?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 Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Variable/m-p/702313#M253417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;OrderWeek = {'$(=(vMaxWeek-1))'}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;MT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jul 2014 06:14:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-03T06:14:43Z</dc:date>
    <item>
      <title>Set Analysis using Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Variable/m-p/702310#M253414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have look at set analysis that i am using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;OrderWeek = {'$(vMaxWeek)-1'}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want currentweek - 1 amount, but it won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMaxWeek is variable as Max(OrderWeek)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Thanks and Regards,&lt;/P&gt;&lt;P&gt;Villyee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 06:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Variable/m-p/702310#M253414</guid>
      <dc:creator>vanderson009</dc:creator>
      <dc:date>2014-07-03T06:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Variable/m-p/702311#M253415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Sum({&amp;lt;OrderWeek={$(vMaxWeek)-1}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just remove the quotes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 06:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Variable/m-p/702311#M253415</guid>
      <dc:creator />
      <dc:date>2014-07-03T06:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Variable/m-p/702312#M253416</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;Assuming OrderWeek is a simple numerical field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Sum({&amp;lt;OrderWeek={$(=vMaxWeek-1)}&amp;gt;} Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Should do the trick, but try using the function directly like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Sum({&amp;lt;OrderWeek={$(=Max(OrderWeek)-1)}&amp;gt;} Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jonathan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 06:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Variable/m-p/702312#M253416</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-07-03T06:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Variable/m-p/702313#M253417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;OrderWeek = {'$(=(vMaxWeek-1))'}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;MT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 06:14:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Variable/m-p/702313#M253417</guid>
      <dc:creator />
      <dc:date>2014-07-03T06:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Variable/m-p/702314#M253418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Villyee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;OrderWeek = {'$(=(vMaxWeek-1))'}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Sum({&amp;lt;OrderWeek={$(=Max(OrderWeek)-1)}&amp;gt;} Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;-- Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Vishal&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 06:19:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Variable/m-p/702314#M253418</guid>
      <dc:creator>VishalWaghole</dc:creator>
      <dc:date>2014-07-03T06:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Variable/m-p/702315#M253419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI villye,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a variable of this &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(vMaxWeek)-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;like vPweek = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(vMaxWeek)-1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({&amp;lt;OrderWeek = {'$(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vPweek &lt;/SPAN&gt;)'}&amp;gt;}Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 06:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Variable/m-p/702315#M253419</guid>
      <dc:creator>vipin_mishra479</dc:creator>
      <dc:date>2014-07-03T06:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Variable/m-p/702316#M253420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks vishal, its working.............&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 07:08:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Variable/m-p/702316#M253420</guid>
      <dc:creator>vanderson009</dc:creator>
      <dc:date>2014-07-03T07:08:12Z</dc:date>
    </item>
  </channel>
</rss>

