<?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 Counting only dimensions containing data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-only-dimensions-containing-data/m-p/1830782#M1214510</link>
    <description>&lt;P&gt;Hi - I have a set of data which includes date of stat (UNV_StatDate) and I'm using a count of unique event key (UNV_EventKey).&lt;/P&gt;&lt;P&gt;My brief is to try and show which staff have vetted the most documents between the first stat date and last stat date.&amp;nbsp; The problem is, this keeps changing on a daily basis as it is updating all the time.&lt;/P&gt;&lt;P&gt;I initially tried something really simple and built a straight table (see attachment).&amp;nbsp; I build an expression for 02/08/2021 (the first stat date in the data) and 24/08/2021 (the last available stat date).&amp;nbsp; I then worked out the difference between the two and calculated a % based on this.&amp;nbsp; My problem is that some of the UNV_IntRad names will not have any data in the 24/08/2021 and so will show a zero, thus making my calculations incorrect.&amp;nbsp; For example, for some of the UNV_IntRad fields their last stat date with data could be 07/08/2021, or 10/08/2021 etc etc.&amp;nbsp; &amp;nbsp;So, I just need to have a way (using set analysis if possible) to tell Qlikview to just count from the first to last (most recent) stat date which has data in it, for each UNV_IntRad?&lt;/P&gt;&lt;P&gt;Does this makes sense?&amp;nbsp; Many thanks in advance guys.&amp;nbsp; Rgds&lt;/P&gt;</description>
    <pubDate>Tue, 24 Aug 2021 11:41:30 GMT</pubDate>
    <dc:creator>jlampard40</dc:creator>
    <dc:date>2021-08-24T11:41:30Z</dc:date>
    <item>
      <title>Counting only dimensions containing data</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-only-dimensions-containing-data/m-p/1830782#M1214510</link>
      <description>&lt;P&gt;Hi - I have a set of data which includes date of stat (UNV_StatDate) and I'm using a count of unique event key (UNV_EventKey).&lt;/P&gt;&lt;P&gt;My brief is to try and show which staff have vetted the most documents between the first stat date and last stat date.&amp;nbsp; The problem is, this keeps changing on a daily basis as it is updating all the time.&lt;/P&gt;&lt;P&gt;I initially tried something really simple and built a straight table (see attachment).&amp;nbsp; I build an expression for 02/08/2021 (the first stat date in the data) and 24/08/2021 (the last available stat date).&amp;nbsp; I then worked out the difference between the two and calculated a % based on this.&amp;nbsp; My problem is that some of the UNV_IntRad names will not have any data in the 24/08/2021 and so will show a zero, thus making my calculations incorrect.&amp;nbsp; For example, for some of the UNV_IntRad fields their last stat date with data could be 07/08/2021, or 10/08/2021 etc etc.&amp;nbsp; &amp;nbsp;So, I just need to have a way (using set analysis if possible) to tell Qlikview to just count from the first to last (most recent) stat date which has data in it, for each UNV_IntRad?&lt;/P&gt;&lt;P&gt;Does this makes sense?&amp;nbsp; Many thanks in advance guys.&amp;nbsp; Rgds&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 11:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-only-dimensions-containing-data/m-p/1830782#M1214510</guid>
      <dc:creator>jlampard40</dc:creator>
      <dc:date>2021-08-24T11:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Counting only dimensions containing data</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-only-dimensions-containing-data/m-p/1830945#M1214516</link>
      <description>&lt;P&gt;if i understand the ask, you want to apply our expression only when&amp;nbsp;&lt;SPAN&gt;UNV_IntRad&amp;nbsp; has data in some field associated with it and not that&amp;nbsp;UNV_IntRad&amp;nbsp;is not null.&amp;nbsp; does this mean there is another field that you wanted to check if it has data or not?&amp;nbsp; regardless, and assuming by no data, the field in question is null.&amp;nbsp; you can check for it by using the modifier FIELD={"*"}&lt;BR /&gt;&lt;BR /&gt;sum({&amp;lt;FIELD={"*"}&amp;gt;}MEASURE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this makes sure that the field is checked first for not null.&amp;nbsp; hope that helps&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 23:29:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-only-dimensions-containing-data/m-p/1830945#M1214516</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-08-24T23:29:03Z</dc:date>
    </item>
  </channel>
</rss>

