<?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 null and specific values together in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-null-and-specific-values-together/m-p/76323#M773804</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;I am putting together an expression at the moment which the number of visits in a table where a field (in this case VisitVariationReason) is set to either null or not 'Entry Error' between a date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;count( {&amp;lt;VisitStartDate={"&amp;gt;=$(=$(v_date_min))&amp;lt;=$(=date($(v_date_min)+28))"}&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; } VisitCounter)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Which counts all the visits fine (including null and non null VisitVariationReason entries)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;NB: VisitStartDate is a date field and v_date_min is the selection from calendar.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;However when I add the following&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;count( {&amp;lt;VisitStartDate={"&amp;gt;=$(=$(v_date_min))&amp;lt;=$(=date($(v_date_min)+28))"}, VisitVariationReason -= {'Entry Error'}&amp;gt; } VisitCounter)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;It returns any reason with a variation reason that doesn't equal Entry Error but doesn't return any null entries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;How would I put something together to return both? If it's easier to do it as an if statement I am happy to do that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;James&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>jamesmf1982</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Counting null and specific values together</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-null-and-specific-values-together/m-p/76323#M773804</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;I am putting together an expression at the moment which the number of visits in a table where a field (in this case VisitVariationReason) is set to either null or not 'Entry Error' between a date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;count( {&amp;lt;VisitStartDate={"&amp;gt;=$(=$(v_date_min))&amp;lt;=$(=date($(v_date_min)+28))"}&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; } VisitCounter)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Which counts all the visits fine (including null and non null VisitVariationReason entries)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;NB: VisitStartDate is a date field and v_date_min is the selection from calendar.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;However when I add the following&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;count( {&amp;lt;VisitStartDate={"&amp;gt;=$(=$(v_date_min))&amp;lt;=$(=date($(v_date_min)+28))"}, VisitVariationReason -= {'Entry Error'}&amp;gt; } VisitCounter)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;It returns any reason with a variation reason that doesn't equal Entry Error but doesn't return any null entries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;How would I put something together to return both? If it's easier to do it as an if statement I am happy to do that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;James&lt;BR /&gt;&lt;/SPAN&gt;&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/Counting-null-and-specific-values-together/m-p/76323#M773804</guid>
      <dc:creator>jamesmf1982</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Counting null and specific values together</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-null-and-specific-values-together/m-p/76324#M773805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be create a flag in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;VisitVariationReason &amp;lt;&amp;gt; 'Entry Error', 1, 0) as Flag&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;and then use this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Count( {&amp;lt;VisitStartDate={"&amp;gt;=$(=$(v_date_min))&amp;lt;=$(=date($(v_date_min)+28))"}, Flag = {'1'}&amp;gt;} VisitCounter)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 09:14:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-null-and-specific-values-together/m-p/76324#M773805</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-09T09:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Counting null and specific values together</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-null-and-specific-values-together/m-p/76325#M773806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks will try this. When adding it in do I need to use a LOAD function before the if statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 10:06:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-null-and-specific-values-together/m-p/76325#M773806</guid>
      <dc:creator>jamesmf1982</dc:creator>
      <dc:date>2018-05-09T10:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Counting null and specific values together</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-null-and-specific-values-together/m-p/76326#M773807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whereever you have the field VisitVariationReason, just add this to the same load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TableName:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD VisitVariationReason,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;VisitVariationReason &amp;lt;&amp;gt; 'Entry Error', 1, 0) as Flag,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OtherFields&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FROM ...;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 11:13:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-null-and-specific-values-together/m-p/76326#M773807</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-09T11:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Counting null and specific values together</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-null-and-specific-values-together/m-p/76327#M773808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Sunny!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 11:26:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-null-and-specific-values-together/m-p/76327#M773808</guid>
      <dc:creator>jamesmf1982</dc:creator>
      <dc:date>2018-05-09T11:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Counting null and specific values together</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-null-and-specific-values-together/m-p/76328#M773810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem at all &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 11:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-null-and-specific-values-together/m-p/76328#M773810</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-09T11:27:12Z</dc:date>
    </item>
  </channel>
</rss>

