<?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: can someone please check my Syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/can-someone-please-check-my-Syntax/m-p/921425#M986736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a new field in the script in a preceding load that checks if the clearance time is larger than the monthend time of the raised time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Fault Table]:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *, If(Clearance_Time&amp;gt; MonthEnd( Raised_Date),1,0) as ClearedLate;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Fault_Id, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fault_State, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...etc&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then use this new field in your count expression: count({&amp;lt;ClearedLate={1}&amp;gt;}Clearance_Time)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2015 08:26:03 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-07-30T08:26:03Z</dc:date>
    <item>
      <title>can someone please check my Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/can-someone-please-check-my-Syntax/m-p/921422#M986729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im convinced this is correct but obviously not lol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Clearance_Time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(&amp;gt;num(MonthEnd(Raised_Timestamp)))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Clearance_Time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to check this Ive separated the parts out into the below table to help me work out the problem....didn't help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;if its not obvious what i'm trying to do is count the occurrences where an item is cleared in the month after it was raised.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94501_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 07:59:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-someone-please-check-my-Syntax/m-p/921422#M986729</guid>
      <dc:creator>samuel_brierley</dc:creator>
      <dc:date>2015-07-30T07:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: can someone please check my Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/can-someone-please-check-my-Syntax/m-p/921423#M986730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Clearance_Time={"&amp;gt;$(=num(MonthEnd(Only(Raised_Timestamp))))"}&amp;gt;} Clearance_Time)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are not specifying a specific value for your Set Analysis, you need to use a search string (denoted by the set enclosed in double quotes, and the '&amp;gt;', so we are searching for values greater than the value within the set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you need some sort of aggregation for the set value - in this example i've used Only as I imaging their may be only one value of Raised_Timestamp for each Clearance_Time. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 08:06:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-someone-please-check-my-Syntax/m-p/921423#M986730</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2015-07-30T08:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: can someone please check my Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/can-someone-please-check-my-Syntax/m-p/921424#M986733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for trying guys but neither of the above result in a number and from the Image you can see that this shouldn't be the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached my qvw if that helps, sheet 3 contains the tables im looking at here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm only a personal user so if you get to a solution please post it in as text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for all the help guys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 08:12:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-someone-please-check-my-Syntax/m-p/921424#M986733</guid>
      <dc:creator>samuel_brierley</dc:creator>
      <dc:date>2015-07-30T08:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: can someone please check my Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/can-someone-please-check-my-Syntax/m-p/921425#M986736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a new field in the script in a preceding load that checks if the clearance time is larger than the monthend time of the raised time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Fault Table]:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *, If(Clearance_Time&amp;gt; MonthEnd( Raised_Date),1,0) as ClearedLate;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Fault_Id, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fault_State, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...etc&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then use this new field in your count expression: count({&amp;lt;ClearedLate={1}&amp;gt;}Clearance_Time)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 08:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-someone-please-check-my-Syntax/m-p/921425#M986736</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-07-30T08:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: can someone please check my Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/can-someone-please-check-my-Syntax/m-p/921426#M986737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just change the expression as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Clearance_Time={"&amp;gt;$(num(MonthEnd(Only(Raised_Timestamp))))"}&amp;gt;} Clearance_Time)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 08:28:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-someone-please-check-my-Syntax/m-p/921426#M986737</guid>
      <dc:creator />
      <dc:date>2015-07-30T08:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: can someone please check my Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/can-someone-please-check-my-Syntax/m-p/921427#M986738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;I can now spend the time wrapping my head round why my way wouldn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 08:30:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-someone-please-check-my-Syntax/m-p/921427#M986738</guid>
      <dc:creator>samuel_brierley</dc:creator>
      <dc:date>2015-07-30T08:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: can someone please check my Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/can-someone-please-check-my-Syntax/m-p/921428#M986739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;That answer is not correct. It will return the same as count(Clearance_Time). You can see in the screenshot below how the dollar expansion is evaluated:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="comm174636.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94517_comm174636.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 08:38:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-someone-please-check-my-Syntax/m-p/921428#M986739</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-07-30T08:38:00Z</dc:date>
    </item>
  </channel>
</rss>

