<?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 amount of events under variable time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904811#M470157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Dear community,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I have a problem in my dashboard I can't work out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I have a couple of events from which I have a beginning and an end time. End time - begin time = duration of the event. All of this I load in my load script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Now in my dashboard I want the user to insert a value into a variable $(DurationMinutes).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Now the part I can't work out:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I want a formula with which I calculate the number of events with a duration under or equal to $(DurationMinutes).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I tried this already:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;=count ({&amp;lt;EventDuration = {"&amp;lt;=time(time#($(DurationMinutes),'m'), 'hh:mm:ss')"}&amp;gt;} EventDuration)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;But this isn't working&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;When i change it in this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;=count ({&amp;lt;EventDuration = {"&amp;lt;=$(time(time#($(DurationMinutes),'m'), 'hh:mm:ss'))"}&amp;gt;} EventDuration)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;It looks like he is counting all the events without taking selections in account (so selections won't work).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Can anyone help me with this please?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Thanks in advance!!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jun 2015 10:59:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-03T10:59:04Z</dc:date>
    <item>
      <title>amount of events under variable time</title>
      <link>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904811#M470157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Dear community,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I have a problem in my dashboard I can't work out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I have a couple of events from which I have a beginning and an end time. End time - begin time = duration of the event. All of this I load in my load script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Now in my dashboard I want the user to insert a value into a variable $(DurationMinutes).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Now the part I can't work out:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I want a formula with which I calculate the number of events with a duration under or equal to $(DurationMinutes).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I tried this already:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;=count ({&amp;lt;EventDuration = {"&amp;lt;=time(time#($(DurationMinutes),'m'), 'hh:mm:ss')"}&amp;gt;} EventDuration)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;But this isn't working&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;When i change it in this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;=count ({&amp;lt;EventDuration = {"&amp;lt;=$(time(time#($(DurationMinutes),'m'), 'hh:mm:ss'))"}&amp;gt;} EventDuration)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;It looks like he is counting all the events without taking selections in account (so selections won't work).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Can anyone help me with this please?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Thanks in advance!!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 10:59:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904811#M470157</guid>
      <dc:creator />
      <dc:date>2015-06-03T10:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: amount of events under variable time</title>
      <link>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904812#M470158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this and let me know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count ({&amp;lt;EventDuration = {"&amp;lt;=$(=time(time#($(DurationMinutes),'m'), 'hh:mm:ss'))"}&amp;gt;} EventDuration)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 11:01:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904812#M470158</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-06-03T11:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: amount of events under variable time</title>
      <link>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904813#M470159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry my mistake, that was what i ment. You added an '=' right? That was also a sollution i already tried. It seems that QV counts all the events then and isn't taking any selection in account (so selections don't work)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 11:08:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904813#M470159</guid>
      <dc:creator />
      <dc:date>2015-06-03T11:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: amount of events under variable time</title>
      <link>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904814#M470160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please share your qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 11:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904814#M470160</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-06-03T11:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: amount of events under variable time</title>
      <link>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904815#M470161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your duration simply he difference between two valid QV dates? Then it is a number in the units of decimal days. To convert the duration in minutes to decimal days would be by dividing the minutes&amp;nbsp; by (60 * 24). So you would get this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 13.3333330154419px;"&gt;=Count({&amp;lt;EventDuration = {"&amp;lt;=$(=DurationMinutes / 60 / 24)"}&amp;gt;} EventDuration)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 11:17:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904815#M470161</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-06-03T11:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: amount of events under variable time</title>
      <link>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904816#M470162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe:&lt;/P&gt;&lt;P&gt;count(distinct if(EventDuration&amp;lt;=DurationMinutes, &lt;EM&gt;EventID&lt;/EM&gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 11:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904816#M470162</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-03T11:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: amount of events under variable time</title>
      <link>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904817#M470163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;The problem is that I work in an area in which I work with highly sensitive information. My customers can't effort there information to be out in the open. Sorry.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I made a test file for this problem. As you can see in the test file the textfield is giving back 6 instead of 4 that are under the 10 minutes.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 11:28:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904817#M470163</guid>
      <dc:creator />
      <dc:date>2015-06-03T11:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: amount of events under variable time</title>
      <link>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904818#M470164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a start! With this it gives back the amount under the DurationMinutes, But it isn't taking any selection in account&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 11:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904818#M470164</guid>
      <dc:creator />
      <dc:date>2015-06-03T11:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: amount of events under variable time</title>
      <link>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904819#M470165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression I mentioned earlier&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count ({&amp;lt;Duration = {"&amp;lt;=$(=DurationMinutes/60/24)"}&amp;gt;} Duration)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when loaded into your sample returns 4&amp;nbsp; as you require.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 11:34:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904819#M470165</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-06-03T11:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: amount of events under variable time</title>
      <link>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904820#M470166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works in your example:&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;count&lt;/SPAN&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: #800000; font-size: 8pt;"&gt;Duration&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;DurationMinutes&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;/1440, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Duration&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 11:35:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904820#M470166</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-03T11:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: amount of events under variable time</title>
      <link>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904821#M470167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;i did see your reaction after posting thisone. I reacted to your reaction with the following: This is a start! With this it gives back the amount under the DurationMinutes, But it isn't taking any selection in account&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 11:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904821#M470167</guid>
      <dc:creator />
      <dc:date>2015-06-03T11:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: amount of events under variable time</title>
      <link>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904822#M470168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but not when you select 3 times in Duration. Then the 4 will stay a 4 instead of adapting to the selection&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 11:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904822#M470168</guid>
      <dc:creator />
      <dc:date>2015-06-03T11:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: amount of events under variable time</title>
      <link>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904823#M470169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;sorry This is the right answer! My apologies for that, I read it wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Thanks for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 11:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/amount-of-events-under-variable-time/m-p/904823#M470169</guid>
      <dc:creator />
      <dc:date>2015-06-03T11:48:25Z</dc:date>
    </item>
  </channel>
</rss>

