<?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: Limit available selections based on a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Limit-available-selections-based-on-a-variable/m-p/1680527#M450047</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;create variable&amp;nbsp; then take two button and&amp;nbsp;&lt;/P&gt;&lt;P&gt;first button add action set variable value 0&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.JPG" style="width: 557px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29345iFA1EA6B335AF2690/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.JPG" alt="1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;second button add action set variable value 1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.JPG" style="width: 566px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29346i9F8A4C5969E1D66D/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.JPG" alt="2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;then take &lt;STRONG&gt;listbox object&amp;nbsp;&lt;/STRONG&gt;and select last option Expression&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="exr.JPG" style="width: 307px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29348iE8E1DE64643F7262/image-size/large?v=v2&amp;amp;px=999" role="button" title="exr.JPG" alt="exr.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and write below expression&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(vDash=0,division,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if(vDash=1,Pick(Match(division,'B','C','F'),'B','C','F'))).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;it is working fine and may be helpful to you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2020 17:45:34 GMT</pubDate>
    <dc:creator>NitinK7</dc:creator>
    <dc:date>2020-02-28T17:45:34Z</dc:date>
    <item>
      <title>Limit available selections based on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-available-selections-based-on-a-variable/m-p/1680483#M450036</link>
      <description>&lt;P&gt;I have a variable vDashboard that is either 0 or 1 (I have a button that toggles this). If it is 0, I want the user to be able to make selections in a list box from the complete dataset.&amp;nbsp; However, if it is 1, I want to limit the available selections.&amp;nbsp;In both cases, the user can only select one of the values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: my dataset has a field called Division with values A, B, C, D, E, F.&amp;nbsp; If vDashboard = 0, the listbox shows A,B,C,D,E,F as available for selection.&amp;nbsp; However, if vDashboard = 1, I want the list box to only show B,C,F as available for selection.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've added another field in my dataset call is (Dash) that has a 1 for any rows of data where Division in (B,C,F), so I can use that field to define the subset of available selections.&amp;nbsp; I could also envision doing this through a variable in my load statement.&lt;/P&gt;&lt;P&gt;How do I limit the selections available in the list box based on vDashboard?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-available-selections-based-on-a-variable/m-p/1680483#M450036</guid>
      <dc:creator>HeatherC</dc:creator>
      <dc:date>2024-11-16T19:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Limit available selections based on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-available-selections-based-on-a-variable/m-p/1680485#M450038</link>
      <description>&lt;P&gt;If you can use a field instead of a variable, I would create a link table in your script like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD * INLINE [
    Division, Dashboard
    A, 0
    B, 0
    C, 0
    D, 0
    E, 0
    F, 0
    B, 1
    C, 1
    F, 1
];&lt;/LI-CODE&gt;&lt;P&gt;Once you do this... selection of 0 in Dashboard will show all Division, but selection of 1 will only give B, C, and F&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 16:35:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-available-selections-based-on-a-variable/m-p/1680485#M450038</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-28T16:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Limit available selections based on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-available-selections-based-on-a-variable/m-p/1680527#M450047</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;create variable&amp;nbsp; then take two button and&amp;nbsp;&lt;/P&gt;&lt;P&gt;first button add action set variable value 0&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.JPG" style="width: 557px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29345iFA1EA6B335AF2690/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.JPG" alt="1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;second button add action set variable value 1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.JPG" style="width: 566px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29346i9F8A4C5969E1D66D/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.JPG" alt="2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;then take &lt;STRONG&gt;listbox object&amp;nbsp;&lt;/STRONG&gt;and select last option Expression&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="exr.JPG" style="width: 307px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29348iE8E1DE64643F7262/image-size/large?v=v2&amp;amp;px=999" role="button" title="exr.JPG" alt="exr.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and write below expression&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(vDash=0,division,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if(vDash=1,Pick(Match(division,'B','C','F'),'B','C','F'))).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;it is working fine and may be helpful to you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 17:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-available-selections-based-on-a-variable/m-p/1680527#M450047</guid>
      <dc:creator>NitinK7</dc:creator>
      <dc:date>2020-02-28T17:45:34Z</dc:date>
    </item>
  </channel>
</rss>

