<?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 Using Interval Match with less than date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-Interval-Match-with-less-than-date/m-p/1645599#M63495</link>
    <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;I have been trying the past few hours to implement an Interval Match&amp;nbsp;where the &lt;FONT color="#0000FF"&gt;last date field&lt;/FONT&gt;&amp;nbsp;that I'm looking for is before the &lt;FONT color="#0000FF"&gt;departure date field&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;This is the Script for the Interval Match with the fields that I'm using:&lt;/P&gt;&lt;P&gt;Date_90_dayss:&lt;BR /&gt;LOAD&lt;BR /&gt;date as &lt;FONT color="#0000FF"&gt;date90&lt;/FONT&gt;&lt;BR /&gt;RESIDENT History_OnTheBooks;&lt;/P&gt;&lt;P&gt;IntervalMatch:&lt;BR /&gt;IntervalMatch (&lt;FONT color="#0000FF"&gt;date90&lt;/FONT&gt;)&lt;BR /&gt;Load distinct [&lt;FONT color="#993366"&gt;arrival&lt;/FONT&gt;], [&lt;FONT color="#993366"&gt;departure&lt;/FONT&gt;] resident ArrivalDepartureStays;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how the table looks like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="interval" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23408i8ECAF82C7E102ADD/image-size/large?v=v2&amp;amp;px=999" role="button" title="8888888.png" alt="interval" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;interval&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this table example, the idea is that when I choose that Date (09/21/2020) which is the &lt;FONT color="#0000FF"&gt;date90&lt;/FONT&gt; field, all the values to be shown must be before the &lt;FONT color="#0000FF"&gt;departure&lt;/FONT&gt; date.&lt;/P&gt;&lt;P&gt;This is the set analyisis that I'm using for the values &lt;FONT color="#008080"&gt;Rate&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;Room night&lt;/FONT&gt; and &lt;FONT color="#008080"&gt;Total Revenue&lt;/FONT&gt;:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008080"&gt;Rate:&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;Sum ({$&amp;lt;type_sya={"adsyad"}&amp;gt;} total_revenue) / Sum({$&amp;lt;type_sya={"adsyad"}&amp;gt;} room_night)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;FONT color="#008080"&gt;Room night:&amp;nbsp;&lt;/FONT&gt;Sum({&amp;lt;type_sya={'adsyad'} &amp;gt;} room_night)&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008080"&gt;Total Revenue&lt;/FONT&gt;:&amp;nbsp;sum({&amp;lt;type_sya={'adsyad'} &amp;gt;} total_revenue)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help! I don't understand what's going wrong or what I'm missing in the script or the set analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 02 Apr 2021 08:10:58 GMT</pubDate>
    <dc:creator>Realmoca</dc:creator>
    <dc:date>2021-04-02T08:10:58Z</dc:date>
    <item>
      <title>Using Interval Match with less than date</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Interval-Match-with-less-than-date/m-p/1645599#M63495</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;I have been trying the past few hours to implement an Interval Match&amp;nbsp;where the &lt;FONT color="#0000FF"&gt;last date field&lt;/FONT&gt;&amp;nbsp;that I'm looking for is before the &lt;FONT color="#0000FF"&gt;departure date field&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;This is the Script for the Interval Match with the fields that I'm using:&lt;/P&gt;&lt;P&gt;Date_90_dayss:&lt;BR /&gt;LOAD&lt;BR /&gt;date as &lt;FONT color="#0000FF"&gt;date90&lt;/FONT&gt;&lt;BR /&gt;RESIDENT History_OnTheBooks;&lt;/P&gt;&lt;P&gt;IntervalMatch:&lt;BR /&gt;IntervalMatch (&lt;FONT color="#0000FF"&gt;date90&lt;/FONT&gt;)&lt;BR /&gt;Load distinct [&lt;FONT color="#993366"&gt;arrival&lt;/FONT&gt;], [&lt;FONT color="#993366"&gt;departure&lt;/FONT&gt;] resident ArrivalDepartureStays;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how the table looks like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="interval" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23408i8ECAF82C7E102ADD/image-size/large?v=v2&amp;amp;px=999" role="button" title="8888888.png" alt="interval" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;interval&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this table example, the idea is that when I choose that Date (09/21/2020) which is the &lt;FONT color="#0000FF"&gt;date90&lt;/FONT&gt; field, all the values to be shown must be before the &lt;FONT color="#0000FF"&gt;departure&lt;/FONT&gt; date.&lt;/P&gt;&lt;P&gt;This is the set analyisis that I'm using for the values &lt;FONT color="#008080"&gt;Rate&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;Room night&lt;/FONT&gt; and &lt;FONT color="#008080"&gt;Total Revenue&lt;/FONT&gt;:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008080"&gt;Rate:&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;Sum ({$&amp;lt;type_sya={"adsyad"}&amp;gt;} total_revenue) / Sum({$&amp;lt;type_sya={"adsyad"}&amp;gt;} room_night)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;FONT color="#008080"&gt;Room night:&amp;nbsp;&lt;/FONT&gt;Sum({&amp;lt;type_sya={'adsyad'} &amp;gt;} room_night)&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008080"&gt;Total Revenue&lt;/FONT&gt;:&amp;nbsp;sum({&amp;lt;type_sya={'adsyad'} &amp;gt;} total_revenue)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help! I don't understand what's going wrong or what I'm missing in the script or the set analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 08:10:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Interval-Match-with-less-than-date/m-p/1645599#M63495</guid>
      <dc:creator>Realmoca</dc:creator>
      <dc:date>2021-04-02T08:10:58Z</dc:date>
    </item>
  </channel>
</rss>

