<?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: Adding expression to load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-expression-to-load-script/m-p/1751003#M591433</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 belo&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if((floor([Session Date])&amp;lt;= floor(today()) and floor([Session Date])&amp;gt;= floor(today()-4)) and [Session Status]='Y','Y','N') as FLAG&lt;/P&gt;&lt;P&gt;FROM table&lt;/P&gt;</description>
    <pubDate>Fri, 09 Oct 2020 10:40:08 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-10-09T10:40:08Z</dc:date>
    <item>
      <title>Adding expression to load script</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-expression-to-load-script/m-p/1750975#M591430</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have written this expression in a chart but I would like to move it to the script as a new field - it doesn't seem to be working. What could the issue be here?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gilldilpreet_1-1602235594414.png" style="width: 910px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41970i86300FC3E9E7E5E4/image-dimensions/910x141?v=v2" width="910" height="141" role="button" title="gilldilpreet_1-1602235594414.png" alt="gilldilpreet_1-1602235594414.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Dilpreet&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 09:27:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-expression-to-load-script/m-p/1750975#M591430</guid>
      <dc:creator>gilldilpreet</dc:creator>
      <dc:date>2020-10-09T09:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding expression to load script</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-expression-to-load-script/m-p/1750984#M591431</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; Set analysis is a &lt;STRONG&gt;chart expression&lt;/STRONG&gt; not a Script expression&lt;/P&gt;&lt;P&gt;can you share a sample data and the expected output ?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 09:42:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-expression-to-load-script/m-p/1750984#M591431</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-10-09T09:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Adding expression to load script</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-expression-to-load-script/m-p/1750994#M591432</link>
      <description>&lt;P&gt;Hi Gill,&lt;/P&gt;&lt;P&gt;Set analysis syntax not able to use in Script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try like below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Load [Session Date], If([Session Date] = Date(Today(),'DD/MM/YYYY') and Sum_AttendedNumeric &amp;gt;=1, 'Y',&lt;BR /&gt;If([Session Date] = Date(Today()-1,'DD/MM/YYYY') and Sum_AttendedNumeric &amp;gt;=1, 'Y', 'N')) as [Attended In Last 2 Days];&lt;BR /&gt;Load [Session Date], Sum(AttendedNumeric) as Sum_AttendedNumeric resident Report1&lt;BR /&gt;where [Session Status] = 'Y'&lt;BR /&gt;group by [Session Date];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: Based on your screenshot, not able to find the Primary Key.&amp;nbsp;&lt;BR /&gt;So above is the sample script, you can include your required field in the load statement and add those in group by.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 10:20:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-expression-to-load-script/m-p/1750994#M591432</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-10-09T10:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding expression to load script</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-expression-to-load-script/m-p/1751003#M591433</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 belo&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if((floor([Session Date])&amp;lt;= floor(today()) and floor([Session Date])&amp;gt;= floor(today()-4)) and [Session Status]='Y','Y','N') as FLAG&lt;/P&gt;&lt;P&gt;FROM table&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 10:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-expression-to-load-script/m-p/1751003#M591433</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-10-09T10:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Adding expression to load script</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-expression-to-load-script/m-p/1751020#M591434</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;The primary key is Student ID. I tried the below but got an error...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gilldilpreet_0-1602241904872.png" style="width: 740px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41979i58101E771541FFB3/image-dimensions/740x184?v=v2" width="740" height="184" role="button" title="gilldilpreet_0-1602241904872.png" alt="gilldilpreet_0-1602241904872.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gilldilpreet_1-1602242072497.png" style="width: 683px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41983i26085D0EAB2A1E8B/image-dimensions/683x450?v=v2" width="683" height="450" role="button" title="gilldilpreet_1-1602242072497.png" alt="gilldilpreet_1-1602242072497.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 11:15:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-expression-to-load-script/m-p/1751020#M591434</guid>
      <dc:creator>gilldilpreet</dc:creator>
      <dc:date>2020-10-09T11:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adding expression to load script</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-expression-to-load-script/m-p/1751278#M591435</link>
      <description>&lt;P&gt;i think you missed resident in second load&lt;/P&gt;&lt;P&gt;try below,&lt;/P&gt;&lt;P&gt;after where(session_status)='y'&amp;nbsp; resident&amp;nbsp; FirstTableName&amp;nbsp; &amp;nbsp;group by StudentID&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2020 14:39:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-expression-to-load-script/m-p/1751278#M591435</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2020-10-10T14:39:07Z</dc:date>
    </item>
  </channel>
</rss>

