<?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: Use a variable inside a list box expression ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-a-variable-inside-a-list-box-expression/m-p/1158808#M377771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! it worked perfect!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 May 2016 16:51:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-05-17T16:51:00Z</dc:date>
    <item>
      <title>Use a variable inside a list box expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-inside-a-list-box-expression/m-p/1158806#M377769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I cant find a solution for this, I have a week Selector with numeric values (201601,201602,etc) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to limit the weeks with a variable that&amp;nbsp; I have created: Max(Customer_week) that variable is working fine, cos I put it on a text field and it works perfectly and shows the correct value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in my week selector, instead of assign the week field, I put this expression: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(weekT&amp;lt;=&lt;SPAN style="font-size: 13.3333px;"&gt;Max(Customer_week)&lt;/SPAN&gt;,weekT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with that line, nothing happens and the selector is blank, If I just change for testing purpose the line to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=if(weekT&amp;lt;=201610&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,weekT) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;It works!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; I dont know where is my error &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I appreciate your help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;thanks in advance!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 10:01:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-inside-a-list-box-expression/m-p/1158806#M377769</guid>
      <dc:creator />
      <dc:date>2016-05-17T10:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable inside a list box expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-inside-a-list-box-expression/m-p/1158807#M377770</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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=If(weekT&amp;lt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Max(&lt;SPAN style="color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; Customer_week)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;, weekT)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 16:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-inside-a-list-box-expression/m-p/1158807#M377770</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-17T16:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable inside a list box expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-inside-a-list-box-expression/m-p/1158808#M377771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! it worked perfect!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 16:51:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-inside-a-list-box-expression/m-p/1158808#M377771</guid>
      <dc:creator />
      <dc:date>2016-05-17T16:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable inside a list box expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-inside-a-list-box-expression/m-p/1158809#M377772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please close the thread by marking the correct answer.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-14806"&gt;Qlik Community Tip: Marking Replies as Correct or Helpful&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 17:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-inside-a-list-box-expression/m-p/1158809#M377772</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-17T17:07:50Z</dc:date>
    </item>
  </channel>
</rss>

