<?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 How to hide List Box values when no matching rows exist? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-hide-List-Box-values-when-no-matching-rows-exist/m-p/335199#M123608</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;Noob here.&amp;nbsp; I've completed the tutorial and am now digging in.&amp;nbsp; I've imported some data from our data warehouse: some of a fact table of sales, some of the customer records, and the entire Date dimension.&amp;nbsp; All's working well so far, but since my Date dimension includes dates wherein our company didn't even exist yet, my "Year" list box contains years that can't possibly be associated with sales data.&amp;nbsp; How can I hide years in the "Year" list box when no data for those rows exist?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please pardon, but I don't know what "Categories" to check at the bottom of this discussion thread entry.&amp;nbsp; This is my first thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2012 21:51:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-03T21:51:06Z</dc:date>
    <item>
      <title>How to hide List Box values when no matching rows exist?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-hide-List-Box-values-when-no-matching-rows-exist/m-p/335199#M123608</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;Noob here.&amp;nbsp; I've completed the tutorial and am now digging in.&amp;nbsp; I've imported some data from our data warehouse: some of a fact table of sales, some of the customer records, and the entire Date dimension.&amp;nbsp; All's working well so far, but since my Date dimension includes dates wherein our company didn't even exist yet, my "Year" list box contains years that can't possibly be associated with sales data.&amp;nbsp; How can I hide years in the "Year" list box when no data for those rows exist?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please pardon, but I don't know what "Categories" to check at the bottom of this discussion thread entry.&amp;nbsp; This is my first thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 21:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-hide-List-Box-values-when-no-matching-rows-exist/m-p/335199#M123608</guid>
      <dc:creator />
      <dc:date>2012-05-03T21:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide List Box values when no matching rows exist?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-hide-List-Box-values-when-no-matching-rows-exist/m-p/335200#M123609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We typically don't try to hide data. It's not the "Qlikview way" (see &lt;A href="http://qlikviewnotes.blogspot.com/2012/01/power-of-gray.html"&gt;http://qlikviewnotes.blogspot.com/2012/01/power-of-gray.html&lt;/A&gt;). For your case, we limit the dimension data load to match the fact data. Several ways to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. An explicit range limit on the Date LOAD. For example:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE Year &amp;gt;= year(today(1)) - 4&amp;nbsp; // last 4 years&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Load only dates that have facts. Assume your fact date field is OrderDate. On the Date LOAD:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE EXISTS(OrderDate, DateDimField)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. From the earliest fact date forward:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;tempdate:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD min(OrderDate) as mindate RESIDENT Orders;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vMindate = peek('mindate');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DROP TABLE tempdate;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the Date LOAD:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE DateDimField &amp;gt;= $(vMindate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 23:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-hide-List-Box-values-when-no-matching-rows-exist/m-p/335200#M123609</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-05-03T23:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide List Box values when no matching rows exist?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-hide-List-Box-values-when-no-matching-rows-exist/m-p/335201#M123610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Rob.&amp;nbsp; While stewing in my own frustration, it did dawn on me that I should have used some restrictions on the date dimension SQL view that I was using to import date fields.&amp;nbsp; So, instead of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM v_dimDate&lt;/P&gt;&lt;P&gt;SELECT * FROM v_factOrders&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should instead be using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM v_factOrders&lt;/P&gt;&lt;P&gt;INNER JOIN v_dimDate ON v_factOrders.DateKey = v_dimDate.DateKey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "good news" is that while I was waiting for a response to my post, I tried just about every single configuration that seemed even remotely related to hiding the year list box data.&amp;nbsp; Luckily, I had the sense not to simply brute force in a select list of years manually simply because they made sense &lt;EM&gt;to me&lt;/EM&gt;.&amp;nbsp; Your "power of gray" article you linked is a great example of why that would have been the wrong approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all that confirmation.&amp;nbsp; Simply wondering whether or not one's doing it correctly can be sleep-depriving, as I'm sure you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the bright side (wait...wasn't that the bright side?), I'm really enjoying QlikView.&amp;nbsp; The simple beauty and clarity of the app is going to translate to "gee, Eric sure is valuable around here!"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 02:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-hide-List-Box-values-when-no-matching-rows-exist/m-p/335201#M123610</guid>
      <dc:creator />
      <dc:date>2012-05-04T02:50:20Z</dc:date>
    </item>
    <item>
      <title>How to hide List Box values when no matching rows exist?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-hide-List-Box-values-when-no-matching-rows-exist/m-p/335202#M123611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome to Qlikview. Sounds like you're off to a great start!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 03:30:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-hide-List-Box-values-when-no-matching-rows-exist/m-p/335202#M123611</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-05-04T03:30:18Z</dc:date>
    </item>
    <item>
      <title>How to hide List Box values when no matching rows exist?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-hide-List-Box-values-when-no-matching-rows-exist/m-p/335203#M123612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Eric.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also trying to hide, or more precisely, not havingQlikview show non-selected data in a List Box. It is very annoying and visually interferes having this gray data in the List Box.&amp;nbsp; I don’t think this is the “Qlikview way”, but more of a miss in the program. In the old days, when you found an unexpected behaviour in a programfrom a certain software company, you would be congratulated for finding a “hidden feature”.&amp;nbsp; Maybe this is an Qlikview “hidden feature”.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read Robs blog on the subject and what he is describing isusing the List Box to debug the data file. That is fine when you are making the dashboard, but, again, confusing for the end user of the dashboard.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So back to the original question, does anybody know how to get rid of this gray data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marteinn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 May 2012 19:59:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-hide-List-Box-values-when-no-matching-rows-exist/m-p/335203#M123612</guid>
      <dc:creator />
      <dc:date>2012-05-06T19:59:41Z</dc:date>
    </item>
    <item>
      <title>How to hide List Box values when no matching rows exist?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-hide-List-Box-values-when-no-matching-rows-exist/m-p/335204#M123613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;Found it!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;=aggr(only({&amp;lt;SN=P(SN)&amp;gt;}SN),SN)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;It was in another discussion group on the same subject.&amp;nbsp; In my case SN is “Service Name”. I have departments with different services and I needed the list box to show the service names of the department chosen in another list box. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;Kindly&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;Marteinn &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 May 2012 20:29:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-hide-List-Box-values-when-no-matching-rows-exist/m-p/335204#M123613</guid>
      <dc:creator />
      <dc:date>2012-05-06T20:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide List Box values when no matching rows exist?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-hide-List-Box-values-when-no-matching-rows-exist/m-p/335205#M123614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! very useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 14:38:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-hide-List-Box-values-when-no-matching-rows-exist/m-p/335205#M123614</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2017-09-14T14:38:07Z</dc:date>
    </item>
  </channel>
</rss>

