<?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: Excluding rows in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Excluding-rows-in-expression/m-p/352884#M130952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using ({&amp;lt;Miles={"&amp;gt;0"}&amp;gt;} as the set analysis in your expression, it will only take the amounts where Miles &amp;gt; 0 (if you don't want it on both the sum and count like I have below, you can have it on just one and not the other).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Miles={"&amp;gt;0"}&amp;gt;}Miles)/count(({&amp;lt;Miles={"&amp;gt;0"}&amp;gt;}ShipmentID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 May 2012 19:34:24 GMT</pubDate>
    <dc:creator>Nicole-Smith</dc:creator>
    <dc:date>2012-05-15T19:34:24Z</dc:date>
    <item>
      <title>Excluding rows in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-rows-in-expression/m-p/352883#M130951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt; I calculate an average on a chart on our clients in a multi chart that cycles thru different expressions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; One of the expressions is the average miles driven by Carrier for each client. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 9pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 9pt;"&gt;Miles&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 9pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 9pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 9pt;"&gt;ShipmentID&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 9pt;"&gt; This&amp;nbsp; issue I have is that some shipments have zero miles&amp;nbsp; and i don't want to skew the average and want to reduce my count by those shipment counts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 9pt;"&gt;Any ideas on how to reduce the count to reflect the true shipments with miles &amp;gt; zero.&amp;nbsp;&amp;nbsp; thanks,&amp;nbsp; Bill&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 18:57:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-rows-in-expression/m-p/352883#M130951</guid>
      <dc:creator />
      <dc:date>2012-05-15T18:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding rows in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-rows-in-expression/m-p/352884#M130952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using ({&amp;lt;Miles={"&amp;gt;0"}&amp;gt;} as the set analysis in your expression, it will only take the amounts where Miles &amp;gt; 0 (if you don't want it on both the sum and count like I have below, you can have it on just one and not the other).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Miles={"&amp;gt;0"}&amp;gt;}Miles)/count(({&amp;lt;Miles={"&amp;gt;0"}&amp;gt;}ShipmentID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 19:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-rows-in-expression/m-p/352884#M130952</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2012-05-15T19:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding rows in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-rows-in-expression/m-p/352885#M130953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Nicole,&amp;nbsp; I only need to modify the count so this is the syntax that I used.&amp;nbsp; &lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Miles&lt;/SPAN&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;Miles&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;0"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ShipmentID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Worked great.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 20:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-rows-in-expression/m-p/352885#M130953</guid>
      <dc:creator />
      <dc:date>2012-05-15T20:05:54Z</dc:date>
    </item>
  </channel>
</rss>

