<?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 Filter data on screen with a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143659#M505925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All!&lt;/P&gt;&lt;DIV&gt;My data deals with event messages being stored every few seconds into SQL.&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;I would like to have a 'Hour_Filter' list box that I can select a value from, to filter my data down to show only values in the last 2 hours from now.&lt;BR /&gt;I've made an inline table such as:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hour_Filter:&lt;/DIV&gt;&lt;DIV&gt;load * inline [&lt;/DIV&gt;&lt;DIV&gt;Hour_Value, Text&lt;/DIV&gt;&lt;DIV&gt;1, "1 Hour"&lt;/DIV&gt;&lt;DIV&gt;2, "2 Hour"&lt;/DIV&gt;&lt;DIV&gt;4, "4 Hour"&lt;/DIV&gt;&lt;DIV&gt;8, "8 Hour"&lt;/DIV&gt;&lt;DIV&gt;];&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;My data is loaded with the following typical fields:&lt;/DIV&gt;&lt;DIV&gt;Data,&lt;/DIV&gt;&lt;DIV&gt;TimeDate,&lt;/DIV&gt;&lt;DIV&gt;Date(TimeDate) as myDate,&lt;/DIV&gt;&lt;DIV&gt;Time(TimeDate) as myTime,&lt;/DIV&gt;&lt;DIV&gt;Hour(TimeDate) as myHour,&lt;/DIV&gt;&lt;DIV&gt;Mins(TimeDate) as myMins,&lt;/DIV&gt;&lt;DIV&gt;Etc...&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;If I select the "2 Hour" option on screen, I would like to-do something like this:&lt;/DIV&gt;&lt;DIV&gt;Let oldHour=time(now())-Hour_Value (from the selected item on the list box, time would be -2 hours ago)&lt;/DIV&gt;&lt;DIV&gt;Let currentHour=time(now()) (current time mark)&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;for each row of data in my table&lt;/DIV&gt;&lt;DIV&gt;Show row if myHour&amp;gt;= oldHour&lt;/DIV&gt;&lt;DIV&gt;And&lt;/DIV&gt;&lt;DIV&gt;myHour &amp;lt;= currentHour&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The problem is that I don't want to reload my database to apply this filter. In effect I'm mimicking what a user would manually select from a list of hours on screen.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Any thoughts / inspiration would be much appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;Peter.&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 May 2009 21:06:01 GMT</pubDate>
    <dc:creator>peter_turner</dc:creator>
    <dc:date>2009-05-07T21:06:01Z</dc:date>
    <item>
      <title>How to Filter data on screen with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143659#M505925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All!&lt;/P&gt;&lt;DIV&gt;My data deals with event messages being stored every few seconds into SQL.&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;I would like to have a 'Hour_Filter' list box that I can select a value from, to filter my data down to show only values in the last 2 hours from now.&lt;BR /&gt;I've made an inline table such as:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hour_Filter:&lt;/DIV&gt;&lt;DIV&gt;load * inline [&lt;/DIV&gt;&lt;DIV&gt;Hour_Value, Text&lt;/DIV&gt;&lt;DIV&gt;1, "1 Hour"&lt;/DIV&gt;&lt;DIV&gt;2, "2 Hour"&lt;/DIV&gt;&lt;DIV&gt;4, "4 Hour"&lt;/DIV&gt;&lt;DIV&gt;8, "8 Hour"&lt;/DIV&gt;&lt;DIV&gt;];&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;My data is loaded with the following typical fields:&lt;/DIV&gt;&lt;DIV&gt;Data,&lt;/DIV&gt;&lt;DIV&gt;TimeDate,&lt;/DIV&gt;&lt;DIV&gt;Date(TimeDate) as myDate,&lt;/DIV&gt;&lt;DIV&gt;Time(TimeDate) as myTime,&lt;/DIV&gt;&lt;DIV&gt;Hour(TimeDate) as myHour,&lt;/DIV&gt;&lt;DIV&gt;Mins(TimeDate) as myMins,&lt;/DIV&gt;&lt;DIV&gt;Etc...&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;If I select the "2 Hour" option on screen, I would like to-do something like this:&lt;/DIV&gt;&lt;DIV&gt;Let oldHour=time(now())-Hour_Value (from the selected item on the list box, time would be -2 hours ago)&lt;/DIV&gt;&lt;DIV&gt;Let currentHour=time(now()) (current time mark)&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;for each row of data in my table&lt;/DIV&gt;&lt;DIV&gt;Show row if myHour&amp;gt;= oldHour&lt;/DIV&gt;&lt;DIV&gt;And&lt;/DIV&gt;&lt;DIV&gt;myHour &amp;lt;= currentHour&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The problem is that I don't want to reload my database to apply this filter. In effect I'm mimicking what a user would manually select from a list of hours on screen.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Any thoughts / inspiration would be much appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;Peter.&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 21:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143659#M505925</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2009-05-07T21:06:01Z</dc:date>
    </item>
    <item>
      <title>How to Filter data on screen with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143660#M505926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter,&lt;/P&gt;&lt;P&gt;since you don't want to reload the data, the only 2 options that I can see (within the current version) are:&lt;/P&gt;&lt;P&gt;1. Use a Macro to forse time selection when the user is selecting a time range.&lt;/P&gt;&lt;P&gt;2. Use Set Analysis modifiers in all of your functions, to limit the data to the time range.&lt;/P&gt;&lt;P&gt;In the next version you'll have a couple of new options - force selections using Actions (instead of Macro) or modify your data using Macros without Reload.&lt;/P&gt;&lt;P&gt;I have a feeling that there should be a more elegant solution, but I can't see it at the moment...&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 21:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143660#M505926</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-05-07T21:14:31Z</dc:date>
    </item>
    <item>
      <title>How to Filter data on screen with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143661#M505927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin:0in 0in 0pt;"&gt;While it isn't specifically what you're asking for, an additional option would be a multi-value slider. It's more flexible and requires neither macros nor set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 23:08:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143661#M505927</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-05-07T23:08:14Z</dc:date>
    </item>
    <item>
      <title>How to Filter data on screen with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143662#M505928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John,&lt;/P&gt;&lt;P&gt;That's in interesting idea...&lt;BR /&gt;When i set the multi-value slider 'Date - Field' option to be my EventHour time field, i can manually select my hour ranges.&lt;/P&gt;&lt;P&gt;When i set 'Date - Variables', i can make the slider select the required hour time range.&lt;/P&gt;&lt;P&gt;But i'm unable to combine the two steps. When i use the variables option i need to somehow link it back to my EventHour field to effect the selection, but i'm not sure how?&lt;/P&gt;&lt;P&gt;For my variables i used:&lt;BR /&gt;=hour(now())- Only(Hour_Select_Field)&lt;BR /&gt;=hour(now())&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 17:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143662#M505928</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2009-05-08T17:14:54Z</dc:date>
    </item>
    <item>
      <title>How to Filter data on screen with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143663#M505929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin:0in 0in 0pt;"&gt;I wasn't thinking variables at all. I was thinking that you'd have some DateHour field connected to your data, and use the multi-value slider to set it directly. If they want the past two hours, they just set the range that way. If they want a three hour period two hours ago, they can do that as well.&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;But with a little further thought, what I was thinking just wasn't going to work. It looks like we can't use a static min and max for a field, or a logarithmic scale, or anything else that would make these selections manageable. So in practice, the increments would be so small that it would be impossible to select the past two hours.&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Another option would be a simple descending order list box for the DateHour field. Make it large enough to show the past 8 hours. It would then be a simple matter to select the desired hour range from the list box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 00:17:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143663#M505929</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-05-09T00:17:16Z</dc:date>
    </item>
    <item>
      <title>How to Filter data on screen with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143664#M505930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter, see attached. Is it close enoughg to your rrequirements? Notice that there is no need for separate Hour field, I"m using only timestamps.&lt;BR /&gt;As for the presentation - sure you can use slider instead of the input box, and remove constrains on variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 00:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143664#M505930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-09T00:35:03Z</dc:date>
    </item>
    <item>
      <title>How to Filter data on screen with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143665#M505931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't speak for Peter, but &lt;EM&gt;&lt;STRONG&gt;I&lt;/STRONG&gt;&lt;/EM&gt; like it. For performance, I'd use set analysis instead of an IF.&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Time={"&amp;gt;=$(=timestamp(now()-Input/24))"}&amp;gt;} 1)&lt;/P&gt;&lt;P&gt;The downside is that it only applies to that one chart, or any chart where you use the expression. No actual selection is being made. If that's not an issue, it's seems like a good solution to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 01:01:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143665#M505931</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-05-09T01:01:34Z</dc:date>
    </item>
    <item>
      <title>How to Filter data on screen with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143666#M505932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John,&lt;/P&gt;&lt;P&gt;I use set analysys occasionally, but can't force myself to like its cumbersome syntax. &lt;IMG alt="Tongue Tied" src="http://community.qlik.com/emoticons/emotion-7.gif" /&gt;&lt;BR /&gt;Actually I thought Peter wanted variable (?) Another way is to use calculated list box. In the attached example there are two - first selects times, the second selects Activities.&lt;BR /&gt;Whatever user wants...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 02:04:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143666#M505932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-09T02:04:19Z</dc:date>
    </item>
    <item>
      <title>How to Filter data on screen with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143667#M505933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oooh! Nice one! Wish I'd thought of it. &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 02:47:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143667#M505933</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-05-09T02:47:34Z</dc:date>
    </item>
    <item>
      <title>How to Filter data on screen with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143668#M505934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice one, Michael! Very slick !&lt;/P&gt;&lt;P&gt;Would you like to write a Wiki on this topic? If you won't, I'll write one &lt;IMG alt="Wink" src="http://community.qlik.com/emoticons/emotion-5.gif" /&gt;&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 04:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143668#M505934</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-05-09T04:23:54Z</dc:date>
    </item>
    <item>
      <title>How to Filter data on screen with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143669#M505935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These are great bits of coding. However, I'd like to caution that the use of now() in a chart expression is generally a bad idea from a performance point of view. It generates a fairly constant CPU activity.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 04:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143669#M505935</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-05-09T04:26:07Z</dc:date>
    </item>
    <item>
      <title>How to Filter data on screen with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143670#M505936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm going to guess that now(0), the time of the load, would be fine in this case. Since we're looking at near real time data, I assume this file is being reloaded very frequently, such as every ten minutes. If the data is 9 minutes stale, I would think when you ask for something in the past two hours, you'd be fine with getting something in the past two hours and 9 minutes, and nothing for the past 9 minutes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 04:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143670#M505936</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-05-09T04:31:08Z</dc:date>
    </item>
    <item>
      <title>How to Filter data on screen with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143671#M505937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oleg, feel free to post on Wiki. Frankly, I didn't think it's something special. If I have time and don't forget, I'll try to describe a really complex case.&lt;BR /&gt;Rob, you're right abot the now() function. I thought of my example more like the idea rather than ready-to-use solution.&lt;BR /&gt;John, you're correct about the now(0). I never thought about it. In any case it's not fair to expect theat QV application provides the real-time data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 06:41:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143671#M505937</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-09T06:41:55Z</dc:date>
    </item>
    <item>
      <title>How to Filter data on screen with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143672#M505938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Everyone,&lt;BR /&gt;Thanks to Michael, John, Oleg for you inputs, last few questions to finish this off...&lt;/P&gt;&lt;P&gt;1. I also like Michael's Timefilter.qvw, but performance will be important to me (new thread next week on that) so i tryed the set analysis example and replaced the&lt;BR /&gt;if(Time&amp;gt;=now()-Input/24,1)&lt;BR /&gt;with&lt;BR /&gt;sum({&amp;lt;Time={"&amp;gt;=$(=timestamp(now()-Input/24))"}&amp;gt;} 1)&lt;BR /&gt;but i don't get any results, I'm still on a learning curve so not sure where the problem is on that statement.&lt;/P&gt;&lt;P&gt;2. I can get my data to filter (with the if statement) to a 2/4/8 hour period as needed,&lt;BR /&gt;But i also have month, date, hour, min etc list box fields on screen which are used to show&amp;amp;select times and dates.&lt;/P&gt;&lt;P&gt;Is it possible to have these list box's highlight to reflect I'm viewing a particular hour period?&lt;BR /&gt;So if the time/date was 11/5/2009 12:33:00 and i was viewing a 2 hour period, I'd like my year/month/day highlight,&lt;BR /&gt;the hours 10,11,12 and all the mins highlight if possible.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P style="margin-bottom:0cm;"&gt;Thanks,&lt;BR /&gt;Peter.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 18:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143672#M505938</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2009-05-11T18:37:09Z</dc:date>
    </item>
    <item>
      <title>How to Filter data on screen with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143673#M505939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter,&lt;/P&gt;&lt;P&gt;to highlight the selected period in the list boxes, you have to use "Selection" functionality and not "Set Analysis". Michael's example with the calculated List Box is the best example of how to use it. Repeating Rob's advise, - using now() might negatively affect your performance, since it triggers constant "action" by the timer. You should think of replacing now() with some other variables, or at least use now(0) which will give you the time of the reload.&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 20:14:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143673#M505939</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-05-11T20:14:00Z</dc:date>
    </item>
    <item>
      <title>How to Filter data on screen with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143674#M505940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg,&lt;/P&gt;&lt;P&gt;Thanks for the input, i'm using the reload time as a fixed point for my hour periods.&lt;/P&gt;&lt;P&gt;Very last question, when i select a time 'window' , i want everything from x hours ago to present.&lt;BR /&gt;The ceil(((now(0)-Time)*24) gives me only a 1 hour time frame starting x hours ago.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 21:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143674#M505940</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2009-05-11T21:40:51Z</dc:date>
    </item>
    <item>
      <title>How to Filter data on screen with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143675#M505941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter,&lt;/P&gt;&lt;P&gt;If you are using reload time as the fixed time, you may want to pre calculate in the script instead of in the charts. Attached is a modification of a QV Cookbook example that lets you assign Times to groups like "1 Hour" or "Today".&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 02:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143675#M505941</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-05-12T02:05:53Z</dc:date>
    </item>
    <item>
      <title>How to Filter data on screen with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143676#M505942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to everyone who's helped out on this thread!&lt;/P&gt;&lt;P&gt;The example Rob posted worked perfectly for my application, and the other examples have tought me some new things too.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 15:56:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Filter-data-on-screen-with-a-variable/m-p/143676#M505942</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2009-05-12T15:56:34Z</dc:date>
    </item>
  </channel>
</rss>

