<?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: How to create a condition using a variable? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-a-condition-using-a-variable/m-p/363664#M135269</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;Put the value 52 in variable ,let the name of variable be "vVal"&lt;/P&gt;&lt;P&gt;thn try the below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Week ={"&amp;gt;$(vPeriod) &amp;lt;=$(vVal)"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jun 2012 08:52:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-21T08:52:52Z</dc:date>
    <item>
      <title>How to create a condition using a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-condition-using-a-variable/m-p/363662#M135267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I have a field named week with 104 weeks.&lt;/DIV&gt;&lt;DIV&gt;I want to filter a sum for the weeks going between a variable named "vPeriod" and week 52. I have been trying things like the following unsuccessfully.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;DIV&gt;Sum ( { &amp;lt;Week = {"&amp;lt;=52"}, Week={"&amp;gt;$(vPeriod)"}&amp;gt;}&amp;nbsp; Sales)&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Any help?Thanks&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 14:23:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-condition-using-a-variable/m-p/363662#M135267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-22T14:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a condition using a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-condition-using-a-variable/m-p/363663#M135268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;You were close. Did a formula similar to this a week ago. It should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({ &amp;lt;Week = {'&amp;lt;=52&amp;gt;$(vPeriod)'}&amp;gt;}&amp;nbsp; Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regars&lt;/P&gt;&lt;P&gt;Johan Lindell&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 08:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-condition-using-a-variable/m-p/363663#M135268</guid>
      <dc:creator>johanlindell</dc:creator>
      <dc:date>2012-06-21T08:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a condition using a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-condition-using-a-variable/m-p/363664#M135269</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;Put the value 52 in variable ,let the name of variable be "vVal"&lt;/P&gt;&lt;P&gt;thn try the below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Week ={"&amp;gt;$(vPeriod) &amp;lt;=$(vVal)"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 08:52:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-condition-using-a-variable/m-p/363664#M135269</guid>
      <dc:creator />
      <dc:date>2012-06-21T08:52:52Z</dc:date>
    </item>
  </channel>
</rss>

