<?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: Error in Script !! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/812624#M1040105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Any errors? Can you post sample app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In script, don't use = before If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;If(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Event = 'Server_DOWN' and PurgeChar(Time(StartTime, 'hh:mm:ss'), ':') &amp;gt;= PurgeChar(Time(Downtime_StartTime, 'hh:mm:ss'), ':') and PurgeChar(Time(EndTime , 'hh:mm:ss'), ':') &amp;lt;= PurgeChar(Time(Downtime_EndTime , 'hh:mm:ss') , ':'), &lt;/SPAN&gt;Sum(Duration))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Dec 2014 09:44:25 GMT</pubDate>
    <dc:creator>anbu1984</dc:creator>
    <dc:date>2014-12-11T09:44:25Z</dc:date>
    <item>
      <title>Error in Script !!</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/812618#M1040095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HEy,&lt;/P&gt;&lt;P&gt;I am having error in following script.&lt;/P&gt;&lt;P&gt;Can you tell me what is the error ??&lt;/P&gt;&lt;P&gt;I have to Sum the Duration for Event = Server_DOWN and (StartTime &amp;gt;= Downtime_StartTime)&amp;nbsp; and (EndTime &amp;lt;= Downtime_EndTime)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Event = {'Server_DOWN'} and PurgeChar(Time(StartTime, 'hh:mm:ss'), ':') &amp;gt;= PurgeChar(Time(Downtime_StartTime, 'hh:mm:ss'), ':') and PurgeChar(Time(EndTime , 'hh:mm:ss'), ':') &amp;lt;= PurgeChar(Time(Downtime_EndTime , 'hh:mm:ss') , ':')&amp;gt; }Duration)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 06:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/812618#M1040095</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2014-12-11T06:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Script !!</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/812619#M1040096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;At first change the and into comma so :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;Sum({&amp;lt;Event = {'Server_DOWN'} , .... Duration)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;the second condition must be written again unfortunately you cannot use functions (purgechar in this case) at the left side so you need to compute that value in the script, let's say myvalue. With these conditions the expression change into:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;myvalue = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;{'$(&amp;gt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;PurgeChar(Time(Downtime_StartTime, 'hh:mm:ss'), ':')&amp;lt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;PurgeChar(Time(Downtime_EndTime , 'hh:mm:ss') , ':')&lt;/SPAN&gt; &lt;/SPAN&gt;)'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 07:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/812619#M1040096</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-12-11T07:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Script !!</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/812620#M1040097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Event = 'Server_DOWN' and PurgeChar(Time(StartTime, 'hh:mm:ss'), ':') &amp;gt;= PurgeChar(Time(Downtime_StartTime, 'hh:mm:ss'), ':') and PurgeChar(Time(EndTime , 'hh:mm:ss'), ':') &amp;lt;= PurgeChar(Time(Downtime_EndTime , 'hh:mm:ss') , ':'), &lt;/SPAN&gt;Sum(Duration))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 08:02:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/812620#M1040097</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-12-11T08:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Script !!</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/812621#M1040099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;This is not working. What to do ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 08:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/812621#M1040099</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2014-12-11T08:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Script !!</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/812622#M1040101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Break it in small parts and make each small part work, else it will be difficult to find what's not causing it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Rajesh Vaswani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 09:41:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/812622#M1040101</guid>
      <dc:creator>rajeshvaswani77</dc:creator>
      <dc:date>2014-12-11T09:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Script !!</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/812623#M1040103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used following script but still it is showing&amp;nbsp; :&amp;nbsp; 00:00:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Event= {'Server_DOWN'} , KeyStartTime= {"&amp;gt;= KeyDowntime_StartTime"}, KeyEndTime= {"&amp;lt;= KeyDowntime_EndTime"} &amp;gt;} Duration)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 09:43:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/812623#M1040103</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2014-12-11T09:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Script !!</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/812624#M1040105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Any errors? Can you post sample app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In script, don't use = before If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;If(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Event = 'Server_DOWN' and PurgeChar(Time(StartTime, 'hh:mm:ss'), ':') &amp;gt;= PurgeChar(Time(Downtime_StartTime, 'hh:mm:ss'), ':') and PurgeChar(Time(EndTime , 'hh:mm:ss'), ':') &amp;lt;= PurgeChar(Time(Downtime_EndTime , 'hh:mm:ss') , ':'), &lt;/SPAN&gt;Sum(Duration))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 09:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/812624#M1040105</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-12-11T09:44:25Z</dc:date>
    </item>
  </channel>
</rss>

