<?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: Select in Field - Variable in search string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-in-Field-Variable-in-search-string/m-p/455043#M169753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you're using toggle select, and the field format is 'Jan 2013'&lt;/P&gt;&lt;P&gt;The only missing part is the () around your expression.&amp;nbsp; It would be:&lt;/P&gt;&lt;P&gt; ='&lt;STRONG&gt;(&lt;/STRONG&gt;Jan ' ... &lt;STRONG&gt;&amp;amp;')'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Apr 2013 15:37:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-04-15T15:37:03Z</dc:date>
    <item>
      <title>Select in Field - Variable in search string</title>
      <link>https://community.qlik.com/t5/QlikView/Select-in-Field-Variable-in-search-string/m-p/455042#M169752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;i have to select some values in a field while a variable changes its value, but the values that i have to select depend on the value of that variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, if the variable (year) takes a value i have to select in field (month_name) all the months of the selected year and the last 3 of the $(year)-1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried to set the search string like this : &lt;/P&gt;&lt;P&gt;='Jan '&amp;amp;$(year)&amp;amp;'|'&amp;amp;... ...&amp;amp;'Dec '&amp;amp;$(year) // all months of the selected year&lt;/P&gt;&lt;P&gt;&amp;amp;'| Oct '&amp;amp;($(year)-1)&amp;amp;'|Nov '&amp;amp;($(year)-1)&amp;amp;'|Dec '&amp;amp;($(year)-1) //last three months of the previous year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but does not work, nothing is selected... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;any ideas??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 14:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-in-Field-Variable-in-search-string/m-p/455042#M169752</guid>
      <dc:creator />
      <dc:date>2013-04-15T14:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Select in Field - Variable in search string</title>
      <link>https://community.qlik.com/t5/QlikView/Select-in-Field-Variable-in-search-string/m-p/455043#M169753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you're using toggle select, and the field format is 'Jan 2013'&lt;/P&gt;&lt;P&gt;The only missing part is the () around your expression.&amp;nbsp; It would be:&lt;/P&gt;&lt;P&gt; ='&lt;STRONG&gt;(&lt;/STRONG&gt;Jan ' ... &lt;STRONG&gt;&amp;amp;')'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 15:37:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-in-Field-Variable-in-search-string/m-p/455043#M169753</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-15T15:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Select in Field - Variable in search string</title>
      <link>https://community.qlik.com/t5/QlikView/Select-in-Field-Variable-in-search-string/m-p/455044#M169754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for the answers!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I solved the problem by setting the search string as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;='(Jan?'&amp;amp;$(V_year_selected)&amp;amp;'|' &amp;amp;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;'Feb?'&amp;amp;$(V_year_selected)&amp;amp;'|' &amp;amp;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;'Mar?'&amp;amp;$(V_year_selected)&amp;amp;'|' &amp;amp;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;'Apr?'&amp;amp;$(V_year_selected)&amp;amp;'|' &amp;amp;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;'May?'&amp;amp;$(V_year_selected)&amp;amp;'|' &amp;amp;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;'Jun?'&amp;amp;$(V_year_selected)&amp;amp;'|' &amp;amp;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;'Jul?'&amp;amp;$(V_year_selected)&amp;amp;'|' &amp;amp;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;'Aug?'&amp;amp;$(V_year_selected)&amp;amp;'|' &amp;amp;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;'Sep?'&amp;amp;$(V_year_selected)&amp;amp;'|' &amp;amp;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;'Oct?'&amp;amp;$(V_year_selected)&amp;amp;'|' &amp;amp;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;'Nov?'&amp;amp;$(V_year_selected)&amp;amp;'|' &amp;amp;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;'Dec?'&amp;amp;$(V_year_selected)&amp;amp;'|' &amp;amp;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;'Oct?'&amp;amp;($(V_year_selected)-1)&amp;amp;'|' &amp;amp;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;'Nov?'&amp;amp;($(V_year_selected)-1)&amp;amp;'|' &amp;amp;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;'Dec?'&amp;amp;($(V_year_selected)-1)&amp;amp;')' &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have used a toggle select on the month field &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 07:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-in-Field-Variable-in-search-string/m-p/455044#M169754</guid>
      <dc:creator />
      <dc:date>2013-04-16T07:35:18Z</dc:date>
    </item>
  </channel>
</rss>

