<?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: Count day in dynamic interval in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-day-in-dynamic-interval/m-p/519134#M193897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you somewhere have a continuous Date field or calendar the user makes his selection in, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use INTERVALMATCH LOAD prefix in your script to link your flag periods to this date field (finally, I would probably join the flag to your calenda).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, doing your calculation is just summing the Flag value while user selects a Date field period.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Dec 2013 08:56:19 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-12-23T08:56:19Z</dc:date>
    <item>
      <title>Count day in dynamic interval</title>
      <link>https://community.qlik.com/t5/QlikView/Count-day-in-dynamic-interval/m-p/519133#M193896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this data in model:&lt;/P&gt;&lt;P&gt;Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateEnd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flag&lt;/P&gt;&lt;P&gt;01/06/2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/09/2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;02/09/2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23/12/2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date mean DateBegin interval for value of flag.&lt;/P&gt;&lt;P&gt;Now I want calc how many days in selected period (year, month, days, week - anything) in calendar Flag was 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;If user selected November: Day for flag is 30.&lt;/P&gt;&lt;P&gt;If selected September: day for flag is 29.&lt;/P&gt;&lt;P&gt;If selected Jule: day for flag is 0.&lt;/P&gt;&lt;P&gt;If selected 01/06/2013 - 23/12/2013: day for flag is 113.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible to calculate in expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2013 07:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-day-in-dynamic-interval/m-p/519133#M193896</guid>
      <dc:creator />
      <dc:date>2013-12-23T07:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Count day in dynamic interval</title>
      <link>https://community.qlik.com/t5/QlikView/Count-day-in-dynamic-interval/m-p/519134#M193897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you somewhere have a continuous Date field or calendar the user makes his selection in, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use INTERVALMATCH LOAD prefix in your script to link your flag periods to this date field (finally, I would probably join the flag to your calenda).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, doing your calculation is just summing the Flag value while user selects a Date field period.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2013 08:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-day-in-dynamic-interval/m-p/519134#M193897</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-12-23T08:56:19Z</dc:date>
    </item>
  </channel>
</rss>

