<?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: Declaring an expression in the load script - System Monitor in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Declaring-an-expression-in-the-load-script-System-Monitor/m-p/659616#M240600</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the script, may be like:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Left((Num(Today())),5)-Left(Num(Max([FK_Date])),5) &amp;gt;=60, 1,0) as 60DayFlag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jun 2014 08:17:07 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-06-26T08:17:07Z</dc:date>
    <item>
      <title>Declaring an expression in the load script - System Monitor</title>
      <link>https://community.qlik.com/t5/QlikView/Declaring-an-expression-in-the-load-script-System-Monitor/m-p/659615#M240599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed a System Monitor as one of my projects and we are at a stage where my team needs to monitor the activity of the users.&amp;nbsp; We are looking at a 60 day flag, to tell us who hasnt accessed any application in 60 days or more.&amp;nbsp; I have some code below that is used as a calculated expression in a pivot table but I would want to declare this in the load script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do this so I can add it to a list box and choose what users have accessed an application after 60 days.&amp;nbsp; The flag works in the expression but, with it being on a pivot table I am not able to select all users, I can only select one for some reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated and my expression for my 60 day flag is below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Left((Num(Today())),5)-Left(Num(Max([FK_Date])),5) &amp;gt;=60, 1,0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 08:13:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declaring-an-expression-in-the-load-script-System-Monitor/m-p/659615#M240599</guid>
      <dc:creator />
      <dc:date>2014-06-26T08:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring an expression in the load script - System Monitor</title>
      <link>https://community.qlik.com/t5/QlikView/Declaring-an-expression-in-the-load-script-System-Monitor/m-p/659616#M240600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the script, may be like:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Left((Num(Today())),5)-Left(Num(Max([FK_Date])),5) &amp;gt;=60, 1,0) as 60DayFlag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 08:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declaring-an-expression-in-the-load-script-System-Monitor/m-p/659616#M240600</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-26T08:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring an expression in the load script - System Monitor</title>
      <link>https://community.qlik.com/t5/QlikView/Declaring-an-expression-in-the-load-script-System-Monitor/m-p/659617#M240601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the same expression. Load it in the resident table and use it as a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Ravi N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 08:43:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declaring-an-expression-in-the-load-script-System-Monitor/m-p/659617#M240601</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-26T08:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring an expression in the load script - System Monitor</title>
      <link>https://community.qlik.com/t5/QlikView/Declaring-an-expression-in-the-load-script-System-Monitor/m-p/659618#M240602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry my code seemed to be a bit off, I have declared it without the equals sign and also used the alias to mark it as 60 day flag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 08:45:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declaring-an-expression-in-the-load-script-System-Monitor/m-p/659618#M240602</guid>
      <dc:creator />
      <dc:date>2014-06-26T08:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring an expression in the load script - System Monitor</title>
      <link>https://community.qlik.com/t5/QlikView/Declaring-an-expression-in-the-load-script-System-Monitor/m-p/659619#M240603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have set up the resident table in a new tab on the load script and it doesnt seem to be working.&amp;nbsp; I have edited the expression to see if it works by calling 'MakeDate'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run this it tells me I have an invalid expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SixtyDayFlag:&lt;BR /&gt;LOAD&lt;BR /&gt; &lt;BR /&gt; If(Left((Num(Today())),5)-Left(Num(Max(Session_Date)),5) &amp;gt;=60, 1,0) AS SixtyDayFlag,&lt;BR /&gt; If(MakeDate((Num(Today())),5)-MakeDate(Num(Max(Session_Date)),5) &amp;gt;=60, 1,0) AS SixtyDayFlagOne,&lt;BR /&gt; Session_Date&lt;BR /&gt; &lt;BR /&gt;Resident Session&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 09:02:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declaring-an-expression-in-the-load-script-System-Monitor/m-p/659619#M240603</guid>
      <dc:creator />
      <dc:date>2014-06-26T09:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring an expression in the load script - System Monitor</title>
      <link>https://community.qlik.com/t5/QlikView/Declaring-an-expression-in-the-load-script-System-Monitor/m-p/659620#M240604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Is this how you wanted it? This is working fine with me.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; Sample date::&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;New:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;FK_Date&lt;BR /&gt;1/2/2014&lt;BR /&gt;2/2/2014&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;load&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())),5)-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[FK_Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),5) &amp;gt;=60, 1,0) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;60&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; New;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;drop&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; New; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;HTH,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Ravi N.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 09:15:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declaring-an-expression-in-the-load-script-System-Monitor/m-p/659620#M240604</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-26T09:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring an expression in the load script - System Monitor</title>
      <link>https://community.qlik.com/t5/QlikView/Declaring-an-expression-in-the-load-script-System-Monitor/m-p/659621#M240605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This code seems to be loading the Sixty day flag in, however it is only giving me the option of '1' in the list box.&amp;nbsp; This means I can't choose between people greater or lower than 60days of access&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 09:31:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declaring-an-expression-in-the-load-script-System-Monitor/m-p/659621#M240605</guid>
      <dc:creator />
      <dc:date>2014-06-26T09:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring an expression in the load script - System Monitor</title>
      <link>https://community.qlik.com/t5/QlikView/Declaring-an-expression-in-the-load-script-System-Monitor/m-p/659622#M240606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried that but its not working out because the if statement cannot produce the name with the difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 09:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declaring-an-expression-in-the-load-script-System-Monitor/m-p/659622#M240606</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-26T09:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring an expression in the load script - System Monitor</title>
      <link>https://community.qlik.com/t5/QlikView/Declaring-an-expression-in-the-load-script-System-Monitor/m-p/659623#M240607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help I will try some more at this expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 09:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declaring-an-expression-in-the-load-script-System-Monitor/m-p/659623#M240607</guid>
      <dc:creator />
      <dc:date>2014-06-26T09:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring an expression in the load script - System Monitor</title>
      <link>https://community.qlik.com/t5/QlikView/Declaring-an-expression-in-the-load-script-System-Monitor/m-p/659624#M240608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmm.okay!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 09:54:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declaring-an-expression-in-the-load-script-System-Monitor/m-p/659624#M240608</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-26T09:54:17Z</dc:date>
    </item>
  </channel>
</rss>

