<?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: Identify absence in 5 working days - expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Identify-absence-in-5-working-days-expression/m-p/1748426#M590532</link>
    <description>&lt;P&gt;Hi Edwin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help on this.&lt;/P&gt;&lt;P&gt;I copied the expression but am getting an error on Date:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gilldilpreet_0-1601466159696.png" style="width: 689px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41464iEC3993E147865370/image-dimensions/689x97?v=v2" width="689" height="97" role="button" title="gilldilpreet_0-1601466159696.png" alt="gilldilpreet_0-1601466159696.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also, what result am I expecting to see here? I would ideally like this as a Y/N flag against a student i.e. they have attended in the past 5 days or they have not attended in the past 5 days.&lt;/P&gt;&lt;P&gt;Also, what does the 'Attendance' refer to at the end of the statement?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;Dilpreet&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 11:45:55 GMT</pubDate>
    <dc:creator>gilldilpreet</dc:creator>
    <dc:date>2020-09-30T11:45:55Z</dc:date>
    <item>
      <title>Identify absence in 5 working days - expression</title>
      <link>https://community.qlik.com/t5/QlikView/Identify-absence-in-5-working-days-expression/m-p/1748067#M590529</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently trying to create a table which shows students IDs of those students who have not attended in the past 5 working days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fields I am working with are:&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Session date (there can be multiple sessions in a day, all of these sessions would have to not be attended)&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Attended flag ('Y' or 'N' )&lt;/P&gt;&lt;P&gt;- Student ID (identify the student)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could I get some help with writing this expression please?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Dilpreet&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:53:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Identify-absence-in-5-working-days-expression/m-p/1748067#M590529</guid>
      <dc:creator>gilldilpreet</dc:creator>
      <dc:date>2024-11-15T23:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Identify absence in 5 working days - expression</title>
      <link>https://community.qlik.com/t5/QlikView/Identify-absence-in-5-working-days-expression/m-p/1748126#M590530</link>
      <description>&lt;P&gt;here is a simple expression:&lt;BR /&gt;&lt;BR /&gt;=if(today()-date(max({&amp;lt;Attendance={'Y'}&amp;gt;}Date))&amp;gt;5,1)&lt;BR /&gt;&lt;BR /&gt;the logic is: get the last attendance (where attendance=Y), if the last attendance is over 5 days then its a valid row.&amp;nbsp; set suppress zero&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Identify-absence-in-5-working-days-expression/m-p/1748126#M590530</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-09-29T13:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Identify absence in 5 working days - expression</title>
      <link>https://community.qlik.com/t5/QlikView/Identify-absence-in-5-working-days-expression/m-p/1748139#M590531</link>
      <description>&lt;P&gt;i explored the possibility of using e() function to look for students who didnt attend a session within the last 5 days.&amp;nbsp; at first what i did was&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;=count({&amp;lt;StudentID=e({&amp;lt;Date={"&amp;gt;=$(=today()-5)&amp;lt;=$(=today())"}, Attendance={'Y'}&amp;gt;} StudentID) &amp;gt;}Attendance)&lt;/P&gt;&lt;P&gt;this gave me students that had no attendance in &lt;STRONG&gt;any session&lt;/STRONG&gt;.&amp;nbsp; meaning if the student attended at least one session that student will not be picked up.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;but if the question was to look for specific session that the student did not attend (regardless if he attended a diff session) this expression will not work.&amp;nbsp; my work around which i thought was not palatable for me was to create a composite field STUDENT &amp;amp;&amp;nbsp; '|' &amp;amp; SESSION as StudentSession.&amp;nbsp; the new expression now works:&lt;/P&gt;&lt;P&gt;=count({&amp;lt;StudentSession=e({&amp;lt;Date={"&amp;gt;=$(=today()-5)&amp;lt;=$(=today())"}, Attendance={'Y'}&amp;gt;} StudentSession) &amp;gt;}Attendance)&lt;/P&gt;&lt;P&gt;this expression answers the question who didnt attend a specific session in the last 5 days&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;follow on question, is there a way to not have to create the composite field and still use e() function to solve this problem?&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Identify-absence-in-5-working-days-expression/m-p/1748139#M590531</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-09-29T14:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Identify absence in 5 working days - expression</title>
      <link>https://community.qlik.com/t5/QlikView/Identify-absence-in-5-working-days-expression/m-p/1748426#M590532</link>
      <description>&lt;P&gt;Hi Edwin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help on this.&lt;/P&gt;&lt;P&gt;I copied the expression but am getting an error on Date:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gilldilpreet_0-1601466159696.png" style="width: 689px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41464iEC3993E147865370/image-dimensions/689x97?v=v2" width="689" height="97" role="button" title="gilldilpreet_0-1601466159696.png" alt="gilldilpreet_0-1601466159696.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also, what result am I expecting to see here? I would ideally like this as a Y/N flag against a student i.e. they have attended in the past 5 days or they have not attended in the past 5 days.&lt;/P&gt;&lt;P&gt;Also, what does the 'Attendance' refer to at the end of the statement?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;Dilpreet&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 11:45:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Identify-absence-in-5-working-days-expression/m-p/1748426#M590532</guid>
      <dc:creator>gilldilpreet</dc:creator>
      <dc:date>2020-09-30T11:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Identify absence in 5 working days - expression</title>
      <link>https://community.qlik.com/t5/QlikView/Identify-absence-in-5-working-days-expression/m-p/1748438#M590533</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/51405"&gt;@gilldilpreet&lt;/a&gt;&amp;nbsp; Would you be able to share sample data?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 12:17:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Identify-absence-in-5-working-days-expression/m-p/1748438#M590533</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-30T12:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Identify absence in 5 working days - expression</title>
      <link>https://community.qlik.com/t5/QlikView/Identify-absence-in-5-working-days-expression/m-p/1749113#M590534</link>
      <description>&lt;P&gt;Hi Kush&lt;/P&gt;&lt;P&gt;I created 5 expressions to determine students who have attended in the past 5 days using the logic below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;[Session Date]={"25/09/2020"}, [Session Status]={'Y'}&amp;gt;}[AttendedNumeric])&amp;nbsp; &lt;/STRONG&gt;- labelled 'Attended TODAY'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;[Session Date]={"24/09/2020"}, [Session Status]={'Y'}&amp;gt;}[AttendedNumeric])&amp;nbsp; &lt;/STRONG&gt;- labelled 'Attended TODAY-1'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;[Session Date]={"23/09/2020"}, [Session Status]={'Y'}&amp;gt;}[AttendedNumeric])&amp;nbsp; &lt;/STRONG&gt;- labelled 'Attended TODAY-2'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;[Session Date]={"22/09/2020"}, [Session Status]={'Y'}&amp;gt;}[AttendedNumeric])&amp;nbsp; &lt;/STRONG&gt;- labelled 'Attended TODAY-3'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;[Session Date]={"21/09/2020"}, [Session Status]={'Y'}&amp;gt;}[AttendedNumeric])&amp;nbsp; &lt;/STRONG&gt;- labelled 'Attended TODA-4'&lt;/P&gt;&lt;P&gt;(The AttendedNumeric field is Attended=1 and Not attended=0).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am now trying to determine if the students have attended in ANY of the past 5 days using the logic below but the expression is only returning '-' values. Do you know what the issue might be here:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if([Attended TODAY]&amp;gt;'0',&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if([Attended TODAY-1]&amp;gt;'0',&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if([Attended TODAY-2]&amp;gt;'0',&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if([Attended TODAY-3]&amp;gt;'0',&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if([Attended TODAY-4]&amp;gt;'0','Y','N')))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dilpreet&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 10:00:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Identify-absence-in-5-working-days-expression/m-p/1749113#M590534</guid>
      <dc:creator>gilldilpreet</dc:creator>
      <dc:date>2020-10-02T10:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Identify absence in 5 working days - expression</title>
      <link>https://community.qlik.com/t5/QlikView/Identify-absence-in-5-working-days-expression/m-p/1749142#M590535</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/51405"&gt;@gilldilpreet&lt;/a&gt;&amp;nbsp; try below&lt;/P&gt;&lt;P&gt;=if(sum({$&amp;lt;[Session Date]={"&amp;gt;=$(=date(max([Session Date])-5))&amp;lt;=$(=date(mx([Session Date])))"}, [Session Status]={'Y'}&amp;gt;}[AttendedNumeric])&amp;gt;0,'Y','N')&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 11:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Identify-absence-in-5-working-days-expression/m-p/1749142#M590535</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-10-02T11:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Identify absence in 5 working days - expression</title>
      <link>https://community.qlik.com/t5/QlikView/Identify-absence-in-5-working-days-expression/m-p/1749183#M590536</link>
      <description>&lt;P&gt;HI Kush,&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I wanted to add the expression above as a new field in the script, how would I do that? It doesn't seem to be liking the below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gilldilpreet_1-1601644615497.png" style="width: 732px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41634iB426E7E1F274257D/image-dimensions/732x63?v=v2" width="732" height="63" role="button" title="gilldilpreet_1-1601644615497.png" alt="gilldilpreet_1-1601644615497.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 13:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Identify-absence-in-5-working-days-expression/m-p/1749183#M590536</guid>
      <dc:creator>gilldilpreet</dc:creator>
      <dc:date>2020-10-02T13:18:42Z</dc:date>
    </item>
  </channel>
</rss>

