<?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: Setting a listbox's value to a variable. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403556#M490938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field tags should be ok, even when not $date is included.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post the exact expression phrase your inputting in the list box search bar? And the exact name of your field? &lt;/P&gt;&lt;P&gt;Please note that QV is matching field names case sensitive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2012 11:59:02 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-10-11T11:59:02Z</dc:date>
    <item>
      <title>Setting a listbox's value to a variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403553#M490935</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;The question is probably a trivial one, I'm essentially looking for a good way to have a dynamic date as a bookmark. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on some reading I've done, I'm trying to set the value of the date to a variable that calculates the previous working day. However, I"m unsure of how to assign the value of the date list to the value of the variable itself. I'm hoping that it's possible for the user to click on the list annd press the '=' button and somehow access the variable. I've only started using the application this week so I'm still very ignorant when it comes to Qlikview in general.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd be grateful if someone could point me in the right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 08:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403553#M490935</guid>
      <dc:creator />
      <dc:date>2012-10-11T08:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a listbox's value to a variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403554#M490936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if I got your request correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are loading data with a Date field from a source, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First thing to assure is, that QV is interpreting this field correctly as containing date field values. Please check by opening the table viewer (CTRL-T) and hover over the field name with your mouse pointer. It should tell you some tag names, including $numeric and $date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, you should be able to find the previous working day by using&lt;EM&gt; LastWorkDate() f&lt;/EM&gt;unction in QV (please check the Help for the syntax, and note that you can pass a list of holidays, too). For example, enter in a text box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=LastWorkDate(today(),2)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should return you yesterday.&lt;/P&gt;&lt;P&gt;You can use this expression in a variable definition, so this variable will always return the previous working day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you create a listbox for field Date, and enter&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Date=LastWorkDate(today(),2)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into the search bar, it should select the prev. working date, too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you then create a bookmark, the bookmark will not store just the Date value, but the search expression for the field Date, so if you apply the bookmark in the future, the selected Date should still be correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 09:24:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403554#M490936</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-11T09:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a listbox's value to a variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403555#M490937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the swift and informative response. Your understanding of my problem is 100% correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I understand how to store the value in the variable and I'm at a point where I can verify the correctness of the value by referencing it an an empty text box as an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only difficulty I'm experiencing is using it in a listbox, nothing appears to be happening when I try using the expression in the search menu. I suspect it may have to do with the datatype itself as you mentioned in your first paragraph. When I check the tag for the day field which is the source for the listbox it only mentions $numeric and $integer which is probably the problem then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 11:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403555#M490937</guid>
      <dc:creator />
      <dc:date>2012-10-11T11:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a listbox's value to a variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403556#M490938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field tags should be ok, even when not $date is included.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post the exact expression phrase your inputting in the list box search bar? And the exact name of your field? &lt;/P&gt;&lt;P&gt;Please note that QV is matching field names case sensitive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 11:59:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403556#M490938</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-11T11:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a listbox's value to a variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403557#M490939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah okay, the name of the field is called Day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what I'm doing at the moment is clicking on the listbox(Day), opening the search bar and then typing the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Day=LastWorkDate(today(),2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 12:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403557#M490939</guid>
      <dc:creator />
      <dc:date>2012-10-11T12:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a listbox's value to a variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403558#M490940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And Day field contains date values? Or Day of the month values [1..31]? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you set an expression in your list box (Expressions tab),&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=num(Day)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what do you see for e.g. a Day in October 2012?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;If it is a date field, do you have values for all dates in the calendar? Or are some dates missing in your input data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 12:09:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403558#M490940</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-11T12:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a listbox's value to a variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403559#M490941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field looks like it contains Day of the month values. When setting the expression, I get back integer values (1-31).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've just checked the source of the data for the dates and it looks like they are missing data, that would probably explain why it wasn't working then? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for the assistance, you've really helped a great deal! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 12:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403559#M490941</guid>
      <dc:creator />
      <dc:date>2012-10-11T12:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a listbox's value to a variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403560#M490942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LastWorkDate(today(),2)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is returning a date value, which is an integer (the number of days since Dec 30,1899).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assumed you want to filter a date value in a list box, not a day of month values. These are two completely different concepts, i.e. the values are not compatible (edit: meaning, in a semantic way).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make the values compatible, you need to apply day() function to a date to return the day of month value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Day=day(LastWorkDate(today(),2))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Another edit:&lt;/P&gt;&lt;P&gt;If your source data is missing some data, e.g. the Day 10 (prev. working day), you won't be able to search and select this value, of course.&lt;/P&gt;&lt;P&gt;Consider using a so called master calendar, which contains all dates (and Days, Months, Years, etc.) in a given time range. Search the forum, there are plenty of posts and also some sample files available on how to create such a master calendar]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 12:43:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403560#M490942</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-11T12:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a listbox's value to a variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403561#M490943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan, what you've said makes perfect sense. I'm more than happy to mark it as the answer since I'm sure my original question's been answered by now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My listbox is still not finding the correct value though (even with a clean and full list of dates). I think the issue my issue may lie elsewhere however (for instance, when opening the list once I click on the enable expression checkbox and click OK, the next time I reopen it the checkbox is deselected). I suspect it may be that there's an issue with expressions being disabled for some reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 14:01:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403561#M490943</guid>
      <dc:creator />
      <dc:date>2012-10-11T14:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a listbox's value to a variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403562#M490945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want, you can post a small sample app here to the forum (you can attach files in advanced editor).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 14:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403562#M490945</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-11T14:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a listbox's value to a variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403563#M490947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan, here's a quick sample file containing a single list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you'd be able to take quick look and get the expression working in the list it'd be much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 14:11:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403563#M490947</guid>
      <dc:creator />
      <dc:date>2012-10-11T14:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a listbox's value to a variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403564#M490949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, I need to correct the above expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use &lt;EM&gt;FirstWorkDate() &lt;/EM&gt;function, &lt;SPAN style="text-decoration: underline;"&gt;not &lt;/SPAN&gt;&lt;EM&gt;LastWorkDate()&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I inputted LastWorkDate(today(),2) in a text box and got Oct-10 back, the correct result, and I haven't noticed that I am using a qvw I opened two days ago. today() will return the date when the qvw has been opened (check the different timer argument settings in the Help, if needed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, if you select values in a field, and then perform a search, I think it will search only in the selected, i.e. possible range of values by default. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I have opened your sample, I' ve seen that you selected 13 in Day field. So a simple search expression will not work, because it will only see one possible value. You'll need to clear the selection first or use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=only({1}Day)=day(FirstWorkDate(today(),2))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then 10 will show up when typing this expression and will be selected after submitting the search. The only({1} Day) will expand the search to all Day values, not only to the selected ones.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 15:45:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403564#M490949</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-11T15:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a listbox's value to a variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403565#M490950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan, that seemed to work perfectly. I had no idea that selecting a value initially would make a difference with the expression. The pointers and help were immensely beneficial &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 07:14:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403565#M490950</guid>
      <dc:creator />
      <dc:date>2012-10-12T07:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a listbox's value to a variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403566#M490952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately the search capabilities are one of the least documented areas in QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I said, that search will be limited to the current selection, I was talking about this search format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=FIELDNAME=SOMEEXPRESSION&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, is you select 13 and want to search 2, you need to write&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=only({1}Day)=2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for searching literals, it's easier to just put in 2 in the search box, and this method will find also the values that are not possible in your current selection. Kind of confusing sometimes...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 08:44:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403566#M490952</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-12T08:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a listbox's value to a variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403567#M490953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could use some help on this too! My company is addicted to using "Year-Week" (e.g. 2013-12, 2014-01) as a time period, even though it's text and is a pain to sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a numerical version using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(&lt;SPAN style="color: #004080;"&gt;Year&lt;/SPAN&gt;(&lt;SPAN style="color: #ff0080;"&gt;ActivityDate&lt;/SPAN&gt;)&amp;amp;&lt;SPAN style="color: #004080;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #004080;"&gt;Num&lt;/SPAN&gt;(&lt;SPAN style="color: #004080;"&gt;Week&lt;/SPAN&gt;(&lt;SPAN style="color: #ff0080;"&gt;ActivityDate&lt;/SPAN&gt;))&amp;lt;=9,'0'&amp;amp;&lt;SPAN style="color: #004080;"&gt;Num&lt;/SPAN&gt;(&lt;SPAN style="color: #004080;"&gt;Week&lt;/SPAN&gt;(&lt;SPAN style="color: #ff0080;"&gt;ActivityDate&lt;/SPAN&gt;)),&lt;SPAN style="color: #004080;"&gt;Num&lt;/SPAN&gt;(&lt;SPAN style="color: #004080;"&gt;Week&lt;/SPAN&gt;(&lt;SPAN style="color: #ff0080;"&gt;ActivityDate&lt;/SPAN&gt;)))) &lt;SPAN style="color: #ff8040;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0080;"&gt;KYW &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0080;"&gt;But, when I go to the listbox, and enter in the search box '=KYW=MAX(KYW)', it returns all weeks, not the last one. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0080;"&gt;Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 19:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-listbox-s-value-to-a-variable/m-p/403567#M490953</guid>
      <dc:creator />
      <dc:date>2014-01-22T19:41:50Z</dc:date>
    </item>
  </channel>
</rss>

