<?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: Find every seven days between two dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-every-seven-days-between-two-dates/m-p/1777471#M455162</link>
    <description>&lt;P&gt;It works to display the dates.&amp;nbsp; Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2021 15:18:14 GMT</pubDate>
    <dc:creator>mscull10n</dc:creator>
    <dc:date>2021-01-26T15:18:14Z</dc:date>
    <item>
      <title>Find every seven days between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-every-seven-days-between-two-dates/m-p/1775416#M455159</link>
      <description>&lt;P&gt;Hi.&amp;nbsp; I have to find the date for every 7 days between two dates.&amp;nbsp; The two dates vary by record.&amp;nbsp; They are the admission date and end date.&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Admission Date:&amp;nbsp; 12/2/2020&amp;nbsp;&lt;/P&gt;&lt;P&gt;Discharge Date:&amp;nbsp; &amp;nbsp; 12/22/2020&lt;/P&gt;&lt;P&gt;Total days = 21&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the dates from admission date for every 7 days (including admit date):&amp;nbsp; 12/8/2020, 12/15/2020&amp;nbsp;and 12/22/2020 .&lt;/P&gt;&lt;P&gt;Mission:&amp;nbsp; Get number of time patient had 3 hrs of therapy a day, for 5&amp;nbsp; out of 7 days.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I would get the dates in a load statement, but I just can't figure it out...&lt;/P&gt;&lt;P&gt;I have it flagged if their total therapy time was 3 hrs or more,&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Count(if(aggr(sum(therapy_time), pat_mrn_id, pat_enc_csn_id, calendar_dt) &amp;gt;=180, 1))&amp;nbsp; &amp;nbsp; BUT, my aggr needs to group by the 7 day Date.. whatever that may be....&lt;/P&gt;&lt;P&gt;Help!&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;LI-PRODUCT title="QlikView" id="qlikView"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 01:12:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-every-seven-days-between-two-dates/m-p/1775416#M455159</guid>
      <dc:creator>mscull10n</dc:creator>
      <dc:date>2021-01-19T01:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Find every seven days between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-every-seven-days-between-two-dates/m-p/1775421#M455160</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/131247"&gt;@mscull10n&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like below&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;&lt;SPAN&gt;calendar_dt&lt;/SPAN&gt;={$(=chr(39)&amp;amp;Concat(Date(ValueLoop(&lt;SPAN&gt;Admission_dt&lt;/SPAN&gt;, &lt;SPAN&gt;Discharge_dt&lt;/SPAN&gt;, 7)),chr(39)&amp;amp;','&amp;amp;chr(39))&amp;amp;chr(39))}&amp;gt;}&lt;SPAN&gt;therapy_time&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;Hope&amp;nbsp;&lt;SPAN&gt;Admission_dt &amp;amp;&amp;nbsp;Discharge_dt is user input / date selection.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;valueloop helps to calculate between&amp;nbsp; from date (Value) and to date(Value) based on steps.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;I think, you will get some idea from here to proceed further.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 02:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-every-seven-days-between-two-dates/m-p/1775421#M455160</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-01-19T02:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Find every seven days between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-every-seven-days-between-two-dates/m-p/1775643#M455161</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;admission_dt and discharge_dt are not user input fields.&amp;nbsp; &amp;nbsp;they could select a date range, but essentially, the dates are driven off the date the therapist entered the therapy time, not the admission/dc .&amp;nbsp; &amp;nbsp;I'll try the above code.&amp;nbsp; I thank you for your reply and support.&amp;nbsp; I'll let you know if it works!&lt;/P&gt;&lt;P&gt;Michelle&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 14:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-every-seven-days-between-two-dates/m-p/1775643#M455161</guid>
      <dc:creator>mscull10n</dc:creator>
      <dc:date>2021-01-19T14:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Find every seven days between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-every-seven-days-between-two-dates/m-p/1777471#M455162</link>
      <description>&lt;P&gt;It works to display the dates.&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 15:18:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-every-seven-days-between-two-dates/m-p/1777471#M455162</guid>
      <dc:creator>mscull10n</dc:creator>
      <dc:date>2021-01-26T15:18:14Z</dc:date>
    </item>
  </channel>
</rss>

