<?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 rolling chart with two date fields in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/rolling-chart-with-two-date-fields/m-p/1595568#M43831</link>
    <description>&lt;P&gt;Hi Community!&lt;/P&gt;&lt;P&gt;We're trying to make a rolling chart for elements with ONDATE and OFFDATE dates (each date in one field). We need an 'Active Elements by month' rolling chart.&lt;/P&gt;&lt;P&gt;An element is active on a specific date if ONDATE is smaller than that date and OFFDATE is greater. Talking about months, an element is active in a specified month if ONDATE is smaller than Month Start, and OFFDATE is greater than Month End.&lt;/P&gt;&lt;P&gt;Searching in the community, we'd found a expression for an 'Active Elements this month' KPI that works fine :&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;ONDATE={"&amp;gt;=$(=Date(MonthStart(Today())))"},OFFDATE={"&amp;gt;=$(=Date(Today()))"}&amp;nbsp;&amp;gt;}ELEMENT)&lt;/P&gt;&lt;P&gt;But, obviously, it doesn't work on a rolling chart.&lt;/P&gt;&lt;P&gt;What is the rigth expression for that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lujan Torres.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2019 11:04:13 GMT</pubDate>
    <dc:creator>Gestion-PSD</dc:creator>
    <dc:date>2019-06-25T11:04:13Z</dc:date>
    <item>
      <title>rolling chart with two date fields</title>
      <link>https://community.qlik.com/t5/App-Development/rolling-chart-with-two-date-fields/m-p/1595568#M43831</link>
      <description>&lt;P&gt;Hi Community!&lt;/P&gt;&lt;P&gt;We're trying to make a rolling chart for elements with ONDATE and OFFDATE dates (each date in one field). We need an 'Active Elements by month' rolling chart.&lt;/P&gt;&lt;P&gt;An element is active on a specific date if ONDATE is smaller than that date and OFFDATE is greater. Talking about months, an element is active in a specified month if ONDATE is smaller than Month Start, and OFFDATE is greater than Month End.&lt;/P&gt;&lt;P&gt;Searching in the community, we'd found a expression for an 'Active Elements this month' KPI that works fine :&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;ONDATE={"&amp;gt;=$(=Date(MonthStart(Today())))"},OFFDATE={"&amp;gt;=$(=Date(Today()))"}&amp;nbsp;&amp;gt;}ELEMENT)&lt;/P&gt;&lt;P&gt;But, obviously, it doesn't work on a rolling chart.&lt;/P&gt;&lt;P&gt;What is the rigth expression for that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lujan Torres.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 11:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/rolling-chart-with-two-date-fields/m-p/1595568#M43831</guid>
      <dc:creator>Gestion-PSD</dc:creator>
      <dc:date>2019-06-25T11:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: rolling chart with two date fields</title>
      <link>https://community.qlik.com/t5/App-Development/rolling-chart-with-two-date-fields/m-p/1595594#M43832</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;let us assume your chart dimension is a field call yearMnoth&lt;/P&gt;&lt;P&gt;than you can try something like&amp;nbsp;&lt;/P&gt;&lt;P&gt;count(if(yearMonth&amp;lt;=ONDATE and yearMonth&amp;lt;=OFFDATE,&lt;SPAN&gt;ELEMENT&lt;/SPAN&gt;))&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 11:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/rolling-chart-with-two-date-fields/m-p/1595594#M43832</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2019-06-25T11:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: rolling chart with two date fields</title>
      <link>https://community.qlik.com/t5/App-Development/rolling-chart-with-two-date-fields/m-p/1595645#M43840</link>
      <description>&lt;P&gt;Hi Liron,&lt;/P&gt;&lt;P&gt;That isn't exactly the expression we need, but definitely it put us on the rigth way.&lt;/P&gt;&lt;P&gt;We were looking for a complex expression and the answer was as simply as that.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 12:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/rolling-chart-with-two-date-fields/m-p/1595645#M43840</guid>
      <dc:creator>Gestion-PSD</dc:creator>
      <dc:date>2019-06-25T12:29:10Z</dc:date>
    </item>
  </channel>
</rss>

