<?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 using dual() in a listbox issue with checkboxes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/using-dual-in-a-listbox-issue-with-checkboxes/m-p/965576#M331000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using dual() in an expression for a list box as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Actual / Forecast Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'MM/DD/YYYY')&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;dual&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Past Due',1),&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Actual / Forecast Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'MM/DD/YYYY')&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Actual / Forecast Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'MM/DD/YYYY'))=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Actual / Forecast Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'MM/DD/YYYY'))=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;dual&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Due This Month',2))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the user to be able to select one or the other or both of the two options using Windows checkboxes. The issue is that the first option ('Past Due') performs correctly so the field &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;does&lt;/STRONG&gt;&lt;/SPAN&gt; filter to only show Past Due items but the checkbox does not stay checked. (see image below) The second option (Due This Month) works correctly and stays checked. Any idea what causes this or how to fix it? I have another list box just like it that does the same thing. Four of the five options work correctly and stay checked and the fifth option does not - it filters correctly but the box does not stay checked. This is more an aesthetic issue than a functional one but it is misleading to the user and since it does not stay checked, you cannot uncheck it to remove the filter. Any help is appreciated. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="106472" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/106472_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Nov 2015 17:22:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-23T17:22:28Z</dc:date>
    <item>
      <title>using dual() in a listbox issue with checkboxes</title>
      <link>https://community.qlik.com/t5/QlikView/using-dual-in-a-listbox-issue-with-checkboxes/m-p/965576#M331000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using dual() in an expression for a list box as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Actual / Forecast Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'MM/DD/YYYY')&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;dual&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Past Due',1),&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Actual / Forecast Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'MM/DD/YYYY')&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Actual / Forecast Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'MM/DD/YYYY'))=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Actual / Forecast Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'MM/DD/YYYY'))=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;dual&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Due This Month',2))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the user to be able to select one or the other or both of the two options using Windows checkboxes. The issue is that the first option ('Past Due') performs correctly so the field &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;does&lt;/STRONG&gt;&lt;/SPAN&gt; filter to only show Past Due items but the checkbox does not stay checked. (see image below) The second option (Due This Month) works correctly and stays checked. Any idea what causes this or how to fix it? I have another list box just like it that does the same thing. Four of the five options work correctly and stay checked and the fifth option does not - it filters correctly but the box does not stay checked. This is more an aesthetic issue than a functional one but it is misleading to the user and since it does not stay checked, you cannot uncheck it to remove the filter. Any help is appreciated. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="106472" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/106472_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 17:22:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-dual-in-a-listbox-issue-with-checkboxes/m-p/965576#M331000</guid>
      <dc:creator />
      <dc:date>2015-11-23T17:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: using dual() in a listbox issue with checkboxes</title>
      <link>https://community.qlik.com/t5/QlikView/using-dual-in-a-listbox-issue-with-checkboxes/m-p/965577#M331001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create your 'Past Due' and 'Due this month' values in an additional field in your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 23:44:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-dual-in-a-listbox-issue-with-checkboxes/m-p/965577#M331001</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-11-23T23:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: using dual() in a listbox issue with checkboxes</title>
      <link>https://community.qlik.com/t5/QlikView/using-dual-in-a-listbox-issue-with-checkboxes/m-p/965578#M331002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_192625_Pic5.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/106513_QlikCommunity_Thread_192625_Pic5.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_192625_Pic4.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/106517_QlikCommunity_Thread_192625_Pic4.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_192625_Pic2.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/106518_QlikCommunity_Thread_192625_Pic2.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_192625_Pic3.JPG" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/106519_QlikCommunity_Thread_192625_Pic3.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14483232317797987" jivemacro_uid="_14483232317797987"&gt;
&lt;P&gt;&amp;nbsp; If([Actual / Forecast Date]&amp;lt;Today(),Dual('Past Due',1),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(InMonth([Actual / Forecast Date],Today(),0),Dual('Due This Month',2))) as [Actual / Forecast Type];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="106512" alt="QlikCommunity_Thread_192625_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/106512_QlikCommunity_Thread_192625_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 23:56:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-dual-in-a-listbox-issue-with-checkboxes/m-p/965578#M331002</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-11-23T23:56:34Z</dc:date>
    </item>
  </channel>
</rss>

