<?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 COUNT where SUM exceeds a threshold....grouped by months in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/COUNT-where-SUM-exceeds-a-threshold-grouped-by-months/m-p/1963532#M79430</link>
    <description>&lt;P&gt;I have a vehicle utilization dashboard and need to count the vehicles that exceed 5000 mi / month. I'm using the below in a barchart and it works great if I slice to an individual month, but if I have May &amp;amp; June selected, then it counts all those that now exceed 5000 across the two months.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SUM(AGGR(IF(SUM(Utilization)&amp;gt;5000,1,0),vehicle))&lt;/P&gt;
&lt;P&gt;I have a straight table below to view the data and I can see if a vehicle has 2600 for May and 2500 for June, so I know it should 0, but the barchart will show 1. So how do I alter my formula to only count the instances within individual months?&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2022 15:51:50 GMT</pubDate>
    <dc:creator>drew61199</dc:creator>
    <dc:date>2022-08-02T15:51:50Z</dc:date>
    <item>
      <title>COUNT where SUM exceeds a threshold....grouped by months</title>
      <link>https://community.qlik.com/t5/App-Development/COUNT-where-SUM-exceeds-a-threshold-grouped-by-months/m-p/1963532#M79430</link>
      <description>&lt;P&gt;I have a vehicle utilization dashboard and need to count the vehicles that exceed 5000 mi / month. I'm using the below in a barchart and it works great if I slice to an individual month, but if I have May &amp;amp; June selected, then it counts all those that now exceed 5000 across the two months.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SUM(AGGR(IF(SUM(Utilization)&amp;gt;5000,1,0),vehicle))&lt;/P&gt;
&lt;P&gt;I have a straight table below to view the data and I can see if a vehicle has 2600 for May and 2500 for June, so I know it should 0, but the barchart will show 1. So how do I alter my formula to only count the instances within individual months?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 15:51:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/COUNT-where-SUM-exceeds-a-threshold-grouped-by-months/m-p/1963532#M79430</guid>
      <dc:creator>drew61199</dc:creator>
      <dc:date>2022-08-02T15:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT where SUM exceeds a threshold....grouped by months</title>
      <link>https://community.qlik.com/t5/App-Development/COUNT-where-SUM-exceeds-a-threshold-grouped-by-months/m-p/1963559#M79433</link>
      <description>&lt;P&gt;you need to aggregate by month and vehicle first&lt;/P&gt;
&lt;P&gt;if you have sample data it will be easier to show you&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 16:27:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/COUNT-where-SUM-exceeds-a-threshold-grouped-by-months/m-p/1963559#M79433</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2022-08-02T16:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT where SUM exceeds a threshold....grouped by months</title>
      <link>https://community.qlik.com/t5/App-Development/COUNT-where-SUM-exceeds-a-threshold-grouped-by-months/m-p/1963561#M79434</link>
      <description>&lt;P&gt;Perhaps something along the lines of:&lt;/P&gt;
&lt;P&gt;Count(distinct AGGR(IF(SUM(Utilization)&amp;gt;5000,vehicle),vehicle,month))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 16:30:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/COUNT-where-SUM-exceeds-a-threshold-grouped-by-months/m-p/1963561#M79434</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-08-02T16:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT where SUM exceeds a threshold....grouped by months</title>
      <link>https://community.qlik.com/t5/App-Development/COUNT-where-SUM-exceeds-a-threshold-grouped-by-months/m-p/1963570#M79435</link>
      <description>&lt;P&gt;try this&lt;/P&gt;
&lt;P&gt;sum(if(aggr(Sum(amount), vehicle, Month)&amp;gt;5000,1,0))&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 16:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/COUNT-where-SUM-exceeds-a-threshold-grouped-by-months/m-p/1963570#M79435</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2022-08-02T16:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT where SUM exceeds a threshold....grouped by months</title>
      <link>https://community.qlik.com/t5/App-Development/COUNT-where-SUM-exceeds-a-threshold-grouped-by-months/m-p/1963584#M79438</link>
      <description>&lt;P&gt;Thank you! I knew it would likely be something simply / silly. I removed the distinct b/c I wanted a tally of the months a vehicle exceeded it, but otherwise worked perfectly&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 17:19:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/COUNT-where-SUM-exceeds-a-threshold-grouped-by-months/m-p/1963584#M79438</guid>
      <dc:creator>drew61199</dc:creator>
      <dc:date>2022-08-02T17:19:44Z</dc:date>
    </item>
  </channel>
</rss>

