<?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: How to count Max values in dataset where null using Firstsortedvalue - within a KPI/Chart measure in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-count-Max-values-in-dataset-where-null-using/m-p/1836596#M69120</link>
    <description>&lt;P&gt;could you share a example of what you are trying to achieve wit sample data?&lt;/P&gt;</description>
    <pubDate>Thu, 16 Sep 2021 10:12:23 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2021-09-16T10:12:23Z</dc:date>
    <item>
      <title>How to count Max values in dataset where null using Firstsortedvalue - within a KPI/Chart measure</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-count-Max-values-in-dataset-where-null-using/m-p/1836576#M69119</link>
      <description>&lt;P&gt;I'm looking to determine the following values from a dataset and have tried many approaches and failed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can calculate firstsortedvalue of a field using this formula:&lt;/P&gt;&lt;P&gt;=FirstSortedValue(JOB,-ID)&lt;/P&gt;&lt;P&gt;I can then create a count using the following formula:&lt;/P&gt;&lt;P&gt;=if(isnull(date(FirstSortedValue(JOB,-ID))),1,0)&lt;/P&gt;&lt;P&gt;The above both work in straight tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am trying to achieve is a count of all JOB values where JOB is null and use this in a KPI or Chart expression across the data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe I need to use the AGGR function in combination with Firstsortedvalue but have tried and failed.&lt;/P&gt;&lt;P&gt;Can anyone offer any suggestions on how I count the Max value of a field against a single ID for null values only?&lt;/P&gt;&lt;P&gt;Or conversely non null values so I can deduct this from the total count.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 09:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-count-Max-values-in-dataset-where-null-using/m-p/1836576#M69119</guid>
      <dc:creator>PJG_56</dc:creator>
      <dc:date>2021-09-16T09:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to count Max values in dataset where null using Firstsortedvalue - within a KPI/Chart measure</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-count-Max-values-in-dataset-where-null-using/m-p/1836596#M69120</link>
      <description>&lt;P&gt;could you share a example of what you are trying to achieve wit sample data?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 10:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-count-Max-values-in-dataset-where-null-using/m-p/1836596#M69120</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2021-09-16T10:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to count Max values in dataset where null using Firstsortedvalue - within a KPI/Chart measure</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-count-Max-values-in-dataset-where-null-using/m-p/1836606#M69122</link>
      <description>&lt;P&gt;Have attached a simple example in the attached excel. Hope it makes sense.&lt;/P&gt;&lt;P&gt;I want to create a KPI chart object in qliksense which shows the outcomes for the 3 KPI's (in yellow on my attached example) using firstsortedvalue where they are null , either alone or combined nulls in both fields.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 11:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-count-Max-values-in-dataset-where-null-using/m-p/1836606#M69122</guid>
      <dc:creator>PJG_56</dc:creator>
      <dc:date>2021-09-16T11:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to count Max values in dataset where null using Firstsortedvalue - within a KPI/Chart measure</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-count-Max-values-in-dataset-where-null-using/m-p/1836613#M69123</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/149667"&gt;@PJG_56&lt;/a&gt;&amp;nbsp; try below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count of Records where Max (Next Due Date) is blank&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;=count(DISTINCT aggr( if(isnull(max([Next Due Date])),ID),ID))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count of Records where Max (Date A) is blank&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;=count(DISTINCT aggr( if(isnull(max([Date A])),ID),ID))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count of Records where Max (Next Due Date) is blank and Max (Date A) is blank&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;=count(DISTINCT aggr( if(isnull(max([Next Due Date]))  and isnull(max([Date A])),ID),ID))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 16 Sep 2021 11:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-count-Max-values-in-dataset-where-null-using/m-p/1836613#M69123</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2021-09-16T11:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to count Max values in dataset where null using Firstsortedvalue - within a KPI/Chart measure</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-count-Max-values-in-dataset-where-null-using/m-p/1836626#M69125</link>
      <description>&lt;P&gt;Thank you so much for your support on this item. It looks so simple, but I tried it so many different ways and failed.&lt;/P&gt;&lt;P&gt;Best regards and thanks again&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 11:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-count-Max-values-in-dataset-where-null-using/m-p/1836626#M69125</guid>
      <dc:creator>PJG_56</dc:creator>
      <dc:date>2021-09-16T11:54:21Z</dc:date>
    </item>
  </channel>
</rss>

