<?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: Exclude specific reasons in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exclude-specific-reasons-in-expression/m-p/4475#M608230</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you not try to use set analysis here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;nEquipmentClassID = {35, 17}&amp;gt;}, TimeCategoryCode = {1, 2}&amp;gt;} StatusReasonDuration)/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;nEquipmentClassID = {35, 17}&amp;gt;}, TimeCategoryCode = {3, 4, 5, 6, 7, 8, 9, 10}, StatusReason &lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;-&lt;/SPAN&gt;= {'LIGHTNING/STORM', 'SCHEDULED NON-PRODUCTION', 'UNSCHEDULED PRODUCTION STOP', 'WET/SLIPPERY CONDITIONS'}&amp;gt;} nEquipment) * 24/&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Count({&amp;lt;nEquipmentClass=, DateID = {"$(='&amp;lt;=' &amp;amp; Date(Today(1)))"}&amp;gt;} DISTINCT Date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Note the negative sign in the set analysis for StatusReason to exclude, instead of include&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jan 2018 09:53:17 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-01-23T09:53:17Z</dc:date>
    <item>
      <title>Exclude specific reasons in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-specific-reasons-in-expression/m-p/4473#M608228</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;This expression is driving me crazy, and the fact that is was done in Tabeau even more!!&lt;/P&gt;&lt;P&gt;I've got an table with different fields, in my expression I want to calculate DOH(direct operating time) but want to &lt;SPAN style="text-decoration: underline;"&gt;exclude specific reasons &lt;/SPAN&gt; below is the current expression, but the result does not exclude the reasons duration's as specified in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(if(Match(nEquipmentClassID,35,17)&amp;gt;0 and Match(TimeCategoryCode,1,2)&amp;gt;0,StatusReasonDuration))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(distinct if(&amp;nbsp; Match(nEquipmentClassID,35,17)&amp;gt;0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and Match(TimeCategoryCode,3,4,5,6,7,8,9,10) &amp;gt;0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and&amp;nbsp; Match(StatusReason,'LIGHTNING/STORM','SCHEDULED NON-PRODUCTION','UNSCHEDULED PRODUCTION STOP','WET/SLIPPERY CONDITIONS') = 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;,nEquipment))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;24&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count({&amp;lt;nEquipmentClass=&amp;gt;} distinct if(DateID&amp;lt;=Today(1),Date))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will appreciate some guidance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ludi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 06:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-specific-reasons-in-expression/m-p/4473#M608228</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-22T06:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude specific reasons in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-specific-reasons-in-expression/m-p/4474#M608229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Match() is case-sensitive and will therefore find only exact matches - maybe something like this will be helpful:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... match(upper(trim(StatusReason)), ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 08:31:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-specific-reasons-in-expression/m-p/4474#M608229</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-01-23T08:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude specific reasons in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-specific-reasons-in-expression/m-p/4475#M608230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you not try to use set analysis here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;nEquipmentClassID = {35, 17}&amp;gt;}, TimeCategoryCode = {1, 2}&amp;gt;} StatusReasonDuration)/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;nEquipmentClassID = {35, 17}&amp;gt;}, TimeCategoryCode = {3, 4, 5, 6, 7, 8, 9, 10}, StatusReason &lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;-&lt;/SPAN&gt;= {'LIGHTNING/STORM', 'SCHEDULED NON-PRODUCTION', 'UNSCHEDULED PRODUCTION STOP', 'WET/SLIPPERY CONDITIONS'}&amp;gt;} nEquipment) * 24/&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Count({&amp;lt;nEquipmentClass=, DateID = {"$(='&amp;lt;=' &amp;amp; Date(Today(1)))"}&amp;gt;} DISTINCT Date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Note the negative sign in the set analysis for StatusReason to exclude, instead of include&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 09:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-specific-reasons-in-expression/m-p/4475#M608230</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-23T09:53:17Z</dc:date>
    </item>
  </channel>
</rss>

