<?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/969620#M332143</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;&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;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;This is the expression that doesnt work.&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; {&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;How can i solve this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Oct 2015 10:09:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-27T10:09:35Z</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/969620#M332143</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;&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;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;This is the expression that doesnt work.&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; {&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;How can i solve this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 10:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-listbox-fields-based-on-expression-in-Textbox-action-issue/m-p/969620#M332143</guid>
      <dc:creator />
      <dc:date>2015-10-27T10:09:35Z</dc:date>
    </item>
  </channel>
</rss>

