<?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 Loading Variable Values in List Box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-Variable-Values-in-List-Box/m-p/486621#M1146878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm definitely new to Qlikview, and I can't seem to wrap my head around this issue I have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a problem loading variable values in a list box so it is a selectable dimension.&lt;/P&gt;&lt;P&gt;Basically, I have two dates, and I needed a string value assigned to their difference as a list box value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the variable (vReorderStatus) is defined like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if (round(([PredictedReorderDate]),1,1)-(Date#(Today()))&amp;lt;=-1&lt;/P&gt;&lt;P&gt;and round(([PredictedReorderDate]),1,1)-(Date#(Today())) &amp;gt;=-15, '1-15 Days Late', &lt;/P&gt;&lt;P&gt;if (round(([PredictedReorderDate]),1,1)-(Date#(Today())) &amp;lt;=-16&lt;/P&gt;&lt;P&gt;and round(([PredictedReorderDate]),1,1)-(Date#(Today())) &amp;gt;=-30, '15-30 Days Late'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So then I create a listbox, and give the expression a value of =vReorderStatus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't get the full list of values, I only get one. When I select different accounts, it changes to their value, but it does not work as a filter for the overall data. &lt;/P&gt;&lt;P&gt;It's almost as if it's not working as a dimension. &lt;/P&gt;&lt;P&gt;What do I have to do to tie it to the entire matrix of information I'm viewing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I load it as an inline table in my script, and then do a match((vReorderStatus), '1-15 Days Late', '15-30 Days Late', (vReorderStatus))? i read this somewhere but I'm not sure exactly how to do it or if it is the best solution, or if ti will even fix my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Aug 2013 20:52:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-12T20:52:43Z</dc:date>
    <item>
      <title>Loading Variable Values in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Variable-Values-in-List-Box/m-p/486621#M1146878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm definitely new to Qlikview, and I can't seem to wrap my head around this issue I have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a problem loading variable values in a list box so it is a selectable dimension.&lt;/P&gt;&lt;P&gt;Basically, I have two dates, and I needed a string value assigned to their difference as a list box value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the variable (vReorderStatus) is defined like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if (round(([PredictedReorderDate]),1,1)-(Date#(Today()))&amp;lt;=-1&lt;/P&gt;&lt;P&gt;and round(([PredictedReorderDate]),1,1)-(Date#(Today())) &amp;gt;=-15, '1-15 Days Late', &lt;/P&gt;&lt;P&gt;if (round(([PredictedReorderDate]),1,1)-(Date#(Today())) &amp;lt;=-16&lt;/P&gt;&lt;P&gt;and round(([PredictedReorderDate]),1,1)-(Date#(Today())) &amp;gt;=-30, '15-30 Days Late'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So then I create a listbox, and give the expression a value of =vReorderStatus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't get the full list of values, I only get one. When I select different accounts, it changes to their value, but it does not work as a filter for the overall data. &lt;/P&gt;&lt;P&gt;It's almost as if it's not working as a dimension. &lt;/P&gt;&lt;P&gt;What do I have to do to tie it to the entire matrix of information I'm viewing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I load it as an inline table in my script, and then do a match((vReorderStatus), '1-15 Days Late', '15-30 Days Late', (vReorderStatus))? i read this somewhere but I'm not sure exactly how to do it or if it is the best solution, or if ti will even fix my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 20:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Variable-Values-in-List-Box/m-p/486621#M1146878</guid>
      <dc:creator />
      <dc:date>2013-08-12T20:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Variable Values in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Variable-Values-in-List-Box/m-p/486622#M1146879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A variable only has one value at a time, so if you put it in a list box it will only show its current value. You should make it in the script. Tell exactly what you want to achieve with that, maybe there´s a better solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 06:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Variable-Values-in-List-Box/m-p/486622#M1146879</guid>
      <dc:creator />
      <dc:date>2013-08-13T06:21:42Z</dc:date>
    </item>
  </channel>
</rss>

