<?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: Total count of rows - what expression ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Total-count-of-rows-what-expression/m-p/46557#M784255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Ok, how about this:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=count( {&amp;lt; VehicleID={"=Count([Job Status]) = 1 AND Count({&amp;lt; [Job Status]={'COMPLETED'} &amp;gt;} [Job Status]) = 1"} &amp;gt;} DISTINCT VehicleID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;The expressions checks that there is only one Job Status and that there is only one status with COMPLETED.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;-Teemu&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Mar 2018 10:00:42 GMT</pubDate>
    <dc:creator>teempi</dc:creator>
    <dc:date>2018-03-19T10:00:42Z</dc:date>
    <item>
      <title>Total count of rows - what expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-count-of-rows-what-expression/m-p/46551#M784249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question : when creating a straight table it is possible to display the total count/sum of rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say my table is showing VehicleID&lt;/P&gt;&lt;P&gt;and using expression like&lt;/P&gt;&lt;P&gt;=if(count(distinct [Job Status])=1,&amp;nbsp; if([Job Status]='COMPLETED',1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list of Vehicles having only 1 job status that is completed.&lt;/P&gt;&lt;P&gt;Total can be seen at the top of bottom of straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what if I want this total count/sum of rows&amp;nbsp; as a single expression (that I can re-use in a text object for example).&lt;/P&gt;&lt;P&gt;The idea is to calculate the number of vehicles having only 1 job status that was completed.&lt;/P&gt;&lt;P&gt;Job status can have different values : completed, failed, not existing, to be done&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-count-of-rows-what-expression/m-p/46551#M784249</guid>
      <dc:creator>Hakim-A</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Total count of rows - what expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-count-of-rows-what-expression/m-p/46552#M784250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please share your app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 09:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-count-of-rows-what-expression/m-p/46552#M784250</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-03-19T09:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Total count of rows - what expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-count-of-rows-what-expression/m-p/46553#M784251</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;Maybe something like this:&lt;/P&gt;&lt;P&gt;=count( {&amp;lt; [Job Status]={'COMPLETED'} &amp;gt;} DISTINCT VehicleID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace VehicleID with whatever the field is called in your dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Teemu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 09:47:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-count-of-rows-what-expression/m-p/46553#M784251</guid>
      <dc:creator>teempi</dc:creator>
      <dc:date>2018-03-19T09:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Total count of rows - what expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-count-of-rows-what-expression/m-p/46554#M784252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This calculation is not working because I have to make sure there is only 1 and one unique job status (some vehicles can have 3 different status, but I want to catch the one having 1 status that is COMPLETED)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 09:51:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-count-of-rows-what-expression/m-p/46554#M784252</guid>
      <dc:creator>Hakim-A</dc:creator>
      <dc:date>2018-03-19T09:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Total count of rows - what expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-count-of-rows-what-expression/m-p/46555#M784253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this in Sum(If()) form:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Sum(Aggr(If(Count(Distinct [Job Status]) = 1 And [Job Status] = 'COMPLETED', 1), VehicleID))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;VehicleID&lt;/EM&gt;&lt;/SPAN&gt; is some unique identifier for the vehicles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you provide a sample document, then iy would be possible to convert this to a set expression (which will perform better if your data set is large).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 09:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-count-of-rows-what-expression/m-p/46555#M784253</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-03-19T09:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Total count of rows - what expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-count-of-rows-what-expression/m-p/46556#M784254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this will be sufficient&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Sum(Aggr(If([Job Status] = 'COMPLETED', 1), VehicleID))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If more than one job type exists for the vehicle, the condition will fail anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 09:58:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-count-of-rows-what-expression/m-p/46556#M784254</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-03-19T09:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Total count of rows - what expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-count-of-rows-what-expression/m-p/46557#M784255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Ok, how about this:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=count( {&amp;lt; VehicleID={"=Count([Job Status]) = 1 AND Count({&amp;lt; [Job Status]={'COMPLETED'} &amp;gt;} [Job Status]) = 1"} &amp;gt;} DISTINCT VehicleID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;The expressions checks that there is only one Job Status and that there is only one status with COMPLETED.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;-Teemu&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 10:00:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-count-of-rows-what-expression/m-p/46557#M784255</guid>
      <dc:creator>teempi</dc:creator>
      <dc:date>2018-03-19T10:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Total count of rows - what expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-count-of-rows-what-expression/m-p/46558#M784256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I appreciate your reactivity guys Thanks for your help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 10:03:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-count-of-rows-what-expression/m-p/46558#M784256</guid>
      <dc:creator>Hakim-A</dc:creator>
      <dc:date>2018-03-19T10:03:40Z</dc:date>
    </item>
  </channel>
</rss>

