<?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 Show listbox fields based on expression in Textbox action issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-listbox-fields-based-on-expression-in-Textbox-action-issue/m-p/970789#M332373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, im trying to create a button where all the fields for a specific expression will show on the listbox when i click a textbox with a action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; So one of the expressions i used in the textbox action with Toggle Select:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LanID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Search String:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ='= count(DISTINCT {&amp;lt;Year={"$(vMaxYear)"},date={"&amp;lt;=$(vMaxDate)"},Month=,Day=,YearMonth= &amp;gt;}&amp;nbsp; LanID)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; and this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the expression that doesnt work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='= sum(&amp;nbsp; {&amp;lt;Year={"$(vMaxYear)"},date={"&amp;lt;=$(vMaxDate)"} ,Month=,Day=,YearMonth= &amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; aggr(count(DISTINCT {&amp;lt;Year={"$(vMaxYear)"},date={"&amp;lt;=$(vMaxDate)"} ,Month=,Day=,YearMonth= &amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&amp;lt;LanID = {"=count(distinct&amp;nbsp; {&amp;lt;Year={"$(vMaxYear)"},date={"&amp;lt;=$(vMaxDate)"} ,Month=,Day=,YearMonth= &amp;gt;}&amp;nbsp; DocName)&amp;lt;=2"}&amp;gt;}LanID),LanID))'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i solve this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Oct 2015 10:28:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-27T10:28:11Z</dc:date>
    <item>
      <title>Show listbox fields based on expression in Textbox action issue</title>
      <link>https://community.qlik.com/t5/QlikView/Show-listbox-fields-based-on-expression-in-Textbox-action-issue/m-p/970789#M332373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, im trying to create a button where all the fields for a specific expression will show on the listbox when i click a textbox with a action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; So one of the expressions i used in the textbox action with Toggle Select:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LanID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Search String:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ='= count(DISTINCT {&amp;lt;Year={"$(vMaxYear)"},date={"&amp;lt;=$(vMaxDate)"},Month=,Day=,YearMonth= &amp;gt;}&amp;nbsp; LanID)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; and this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the expression that doesnt work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='= sum(&amp;nbsp; {&amp;lt;Year={"$(vMaxYear)"},date={"&amp;lt;=$(vMaxDate)"} ,Month=,Day=,YearMonth= &amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; aggr(count(DISTINCT {&amp;lt;Year={"$(vMaxYear)"},date={"&amp;lt;=$(vMaxDate)"} ,Month=,Day=,YearMonth= &amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&amp;lt;LanID = {"=count(distinct&amp;nbsp; {&amp;lt;Year={"$(vMaxYear)"},date={"&amp;lt;=$(vMaxDate)"} ,Month=,Day=,YearMonth= &amp;gt;}&amp;nbsp; DocName)&amp;lt;=2"}&amp;gt;}LanID),LanID))'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i solve this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 10:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-listbox-fields-based-on-expression-in-Textbox-action-issue/m-p/970789#M332373</guid>
      <dc:creator />
      <dc:date>2015-10-27T10:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Show listbox fields based on expression in Textbox action issue</title>
      <link>https://community.qlik.com/t5/QlikView/Show-listbox-fields-based-on-expression-in-Textbox-action-issue/m-p/970790#M332374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your expression is wrong inside AGGR function&lt;/P&gt;&lt;P&gt;Try like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= sum(&amp;nbsp; {&amp;lt;Year={"$(vMaxYear)"},date={"&amp;lt;=$(vMaxDate)"} ,Month=,Day=,YearMonth= ,LanID={"=count(distinct {&amp;lt;Year={"$(vMaxYear)"},date={"&amp;lt;=$(vMaxDate)"} ,Month=,Day=,YearMonth= &amp;gt;} DocName)&amp;lt;=2"}&amp;gt;} &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; aggr( count(DISTINCT {&amp;lt;Year={"$(vMaxYear)"},date={"&amp;lt;=$(vMaxDate)"} ,Month=,Day=,YearMonth=,LanID={"=count(distinct {&amp;lt;Year={"$(vMaxYear)"},date={"&amp;lt;=$(vMaxDate)"} ,Month=,Day=,YearMonth= &amp;gt;} DocName)&amp;lt;=2"} &amp;gt;} LanID), LanID ) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 15:15:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-listbox-fields-based-on-expression-in-Textbox-action-issue/m-p/970790#M332374</guid>
      <dc:creator />
      <dc:date>2015-10-27T15:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Show listbox fields based on expression in Textbox action issue</title>
      <link>https://community.qlik.com/t5/QlikView/Show-listbox-fields-based-on-expression-in-Textbox-action-issue/m-p/970791#M332375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello thank you for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my concern is regarding the action button and the "select in field" function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This Code works : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='= count(DISTINCT {&amp;lt;Year={"$(vMaxYear)"},date={"&amp;lt;=$(vMaxDate)"},Month=,Day=,YearMonth= &amp;gt;}&amp;nbsp; LanID)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this wont :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='= sum(&amp;nbsp; {&amp;lt;Year={"$(vMaxYear)"},date={"&amp;lt;=$(vMaxDate)"} ,Month=,Day=,YearMonth=&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ,LanID={"=count(distinct {&amp;lt;Year={"$(vMaxYear)"},date={"&amp;lt;=$(vMaxDate)"} ,Month=,Day=,YearMonth= &amp;gt;} DocName)&amp;lt;=2"}&amp;gt;} &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aggr( count(DISTINCT {&amp;lt;Year={"$(vMaxYear)"},date={"&amp;lt;=$(vMaxDate)"} ,Month=,Day=,YearMonth=,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LanID={"=count(distinct {&amp;lt;Year={"$(vMaxYear)"},date={"&amp;lt;=$(vMaxDate)"} ,Month=,Day=,YearMonth= &amp;gt;} DocName)&amp;lt;=2"} &amp;gt;} LanID), LanID ) '&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the problem here ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 13:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-listbox-fields-based-on-expression-in-Textbox-action-issue/m-p/970791#M332375</guid>
      <dc:creator />
      <dc:date>2015-10-28T13:36:12Z</dc:date>
    </item>
  </channel>
</rss>

