<?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: Selecting a range over two fields? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-a-range-over-two-fields/m-p/292379#M1195741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to hightlight, it's possible to do it without macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need it with macro, maybe we got another step &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 May 2011 14:44:19 GMT</pubDate>
    <dc:creator>erichshiino</dc:creator>
    <dc:date>2011-05-12T14:44:19Z</dc:date>
    <item>
      <title>Selecting a range over two fields?</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-range-over-two-fields/m-p/292376#M1195738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two fields - LowFreq and HighFreq.&amp;nbsp; I want to be able to select all the records that are in a certain range, let's call them l_freq and u_freq.&amp;nbsp; i can set up a select string that will search over the LowFreq, but I need to be able to select the range.&amp;nbsp; Meaning - it should select record that has a LowFreq that is lower than l_freq, but has a HighFreq that is higher than l_freq.&amp;nbsp; The table below gives a better explanation on items that need to be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the frequency range that I want to select is 7-25, then the highlighted records should be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 50%; border: #000000 1px solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Record ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;LowFreq&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;HighFreq&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="text-align: center;"&gt;&lt;STRONG style="color: #ff00ff;"&gt;1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;STRONG style="color: #ff00ff;"&gt;10&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;STRONG style="color: #ff00ff;"&gt;20&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="text-align: center;"&gt;2&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;2&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="text-align: center;"&gt;&lt;STRONG style="color: #ff00ff;"&gt;3&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;STRONG style="color: #ff00ff;"&gt;2&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;STRONG style="color: #ff00ff;"&gt;12&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="text-align: center;"&gt;&lt;STRONG style="color: #ff00ff;"&gt;4&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;STRONG style="color: #ff00ff;"&gt;17&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;STRONG style="color: #ff00ff;"&gt;32&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="text-align: center;"&gt;5&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;30&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;35&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="text-align: center;"&gt;&lt;STRONG style="color: #ff00ff;"&gt;6&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;STRONG style="color: #ff00ff;"&gt;2&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;STRONG style="color: #ff00ff;"&gt;50&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Therese&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 19:19:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-range-over-two-fields/m-p/292376#M1195738</guid>
      <dc:creator />
      <dc:date>2011-05-11T19:19:32Z</dc:date>
    </item>
    <item>
      <title>Selecting a range over two fields?</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-range-over-two-fields/m-p/292377#M1195739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Therese,&lt;/P&gt;&lt;P&gt;I got what you want to realize. But I don't know right now, where you want to implement it. In or as a search mask (listbox or button) or use it with variables (are l_freq and u_freq variables or input fields?). Or just to highlight the recordID in a straight table in your post above?&lt;/P&gt;&lt;P&gt;Regards, Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 08:23:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-range-over-two-fields/m-p/292377#M1195739</guid>
      <dc:creator />
      <dc:date>2011-05-12T08:23:06Z</dc:date>
    </item>
    <item>
      <title>Selecting a range over two fields?</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-range-over-two-fields/m-p/292378#M1195740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Roland,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Preferably I would like to implement this in a button, most likely using a macro because I don't think it would be doable in series of actions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, l_freq and u_freq are taken from another table (Band_num) which is not associated with the table that includes LowFreq and HighFreq (Allocs).&amp;nbsp; When the user selects a band or two in Band_num, then hits the button, I want it to select the records in Allocs that fall within the range specified by the band(s) that are selected in Band_num.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Therese&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 13:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-range-over-two-fields/m-p/292378#M1195740</guid>
      <dc:creator />
      <dc:date>2011-05-12T13:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a range over two fields?</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-range-over-two-fields/m-p/292379#M1195741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to hightlight, it's possible to do it without macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need it with macro, maybe we got another step &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 14:44:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-range-over-two-fields/m-p/292379#M1195741</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-12T14:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a range over two fields?</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-range-over-two-fields/m-p/292380#M1195742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hate to be a pain, but I only have the personal edition right now.&amp;nbsp; We are evaluating to see if Qlikview will fit the bill.&amp;nbsp; Is there another way you can show me what you have in the document?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 14:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-range-over-two-fields/m-p/292380#M1195742</guid>
      <dc:creator />
      <dc:date>2011-05-12T14:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a range over two fields?</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-range-over-two-fields/m-p/292381#M1195743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create this on script: &lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt; REG_ID, L_FREQ, U_FREQ&lt;/P&gt;&lt;P&gt; 1, 5, 10&lt;/P&gt;&lt;P&gt; 2, 8, 12&lt;/P&gt;&lt;P&gt; 3, 1, 5&lt;/P&gt;&lt;P&gt; 4, 20, 30&lt;/P&gt;&lt;P&gt; 5, 14, 30&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Created two variables to hold the min Limit and max Limit (vMin &amp;amp; vMax) &lt;/P&gt;&lt;P&gt;used this expression to identify the registers: &lt;/P&gt;&lt;P&gt;count( {$-&amp;lt;L_FREQ={'&amp;gt;=$(vMax)'}&amp;gt;-&amp;lt;U_FREQ={'&amp;lt;=$(vMin)'}&amp;gt;}REG_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;used the following expression to highlight in green the lines according to the limits (on a straight table) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( count( {$-&amp;lt;L_FREQ={'&amp;gt;=$(vMax)'}&amp;gt;-&amp;lt;U_FREQ={'&amp;lt;=$(vMin)'}&amp;gt;}REG_ID)&amp;gt;0, lightgreen())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 14:51:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-range-over-two-fields/m-p/292381#M1195743</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-12T14:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a range over two fields?</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-range-over-two-fields/m-p/292382#M1195744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Erich,&amp;nbsp; I am confused as to where exactly to place those equations.&amp;nbsp; Further, if I understand you correctly, this will only highlight the records in the straight table.&amp;nbsp; Is this correct?&amp;nbsp; If so, this isn't sufficient, as I need to apply the limits as part of the selection of records.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, This only works for one variable range...&amp;nbsp; could this be extrapolated to additional ranges as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Therese&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 16:34:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-range-over-two-fields/m-p/292382#M1195744</guid>
      <dc:creator />
      <dc:date>2011-05-12T16:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a range over two fields?</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-range-over-two-fields/m-p/292383#M1195745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Anyone else have suggestions?&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 20:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-range-over-two-fields/m-p/292383#M1195745</guid>
      <dc:creator />
      <dc:date>2011-05-17T20:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a range over two fields?</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-range-over-two-fields/m-p/292384#M1195746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to close this out, I ended up doing a search on the first column, storing the ids for the records that fit. Then checking the second criteria, store those ids.&amp;nbsp; Then go in and select the stored ids.&amp;nbsp; It was a bit of a work around, but it does the trick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 17:56:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-range-over-two-fields/m-p/292384#M1195746</guid>
      <dc:creator />
      <dc:date>2011-08-18T17:56:07Z</dc:date>
    </item>
  </channel>
</rss>

