<?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 Expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expressions/m-p/932697#M954119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;**Update**&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this straight table expression ==count({&amp;lt;Date = {[&amp;lt;&amp;gt;NULL]}&amp;gt;}distinct ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really need to understand what is being counted and how would I write the above expression in the script editor, something like this, IF(date &amp;lt;&amp;gt; 'NULL', 1,0) as DateCount? (Where would I add the distinct ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Nov 2015 14:06:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-18T14:06:25Z</dc:date>
    <item>
      <title>Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions/m-p/932697#M954119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;**Update**&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this straight table expression ==count({&amp;lt;Date = {[&amp;lt;&amp;gt;NULL]}&amp;gt;}distinct ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really need to understand what is being counted and how would I write the above expression in the script editor, something like this, IF(date &amp;lt;&amp;gt; 'NULL', 1,0) as DateCount? (Where would I add the distinct ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 14:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions/m-p/932697#M954119</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-18T14:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions/m-p/932698#M954120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/105914_Untitled.png" style="height: 300px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 14:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions/m-p/932698#M954120</guid>
      <dc:creator />
      <dc:date>2015-11-18T14:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions/m-p/932699#M954121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression is showing a distinct count of ID, for rows in the current dataset where the Date is not null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 14:34:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions/m-p/932699#M954121</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-11-18T14:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions/m-p/932700#M954122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I've updated my question to be more clear. Would you mind taking a look?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 14:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions/m-p/932700#M954122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-18T14:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions/m-p/932701#M954123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How would that look in the script editor?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 14:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions/m-p/932701#M954123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-18T14:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions/m-p/932702#M954125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there is an issue with the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;gt;NULL will not be treated as "not equals to". It should be written as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date =- {[NULL]}.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, it will consider only the greater than symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 14:43:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions/m-p/932702#M954125</guid>
      <dc:creator>NareshGuntur</dc:creator>
      <dc:date>2015-11-18T14:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions/m-p/932703#M954127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on your data model.&lt;/P&gt;&lt;P&gt;Are the Date fields and ID fields in the same table?&lt;/P&gt;&lt;P&gt;If yes, then you could add this to your load script&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp; if(Date, 1) as DateCount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use sum(DateCount) in your charts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 14:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions/m-p/932703#M954127</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-11-18T14:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions/m-p/932704#M954128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do you have Null Value in your Date Field? Then, you can try this in the script, Like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(isNull(Date) or Len(Trim(Date))&amp;gt;0,1,0) as DateCount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in Expression something like..&lt;/P&gt;&lt;P&gt;=count(Distinct {&amp;lt;DateCount={1}&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;=Sum(Distinct DateCount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 14:48:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions/m-p/932704#M954128</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-11-18T14:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions/m-p/932705#M954130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Null is the acutal value in the field.&lt;/P&gt;&lt;P&gt;My straight table Expression is ==count({&amp;lt;Date = {[&amp;lt;&amp;gt;NULL]}&amp;gt;}&lt;SPAN style="text-decoration: underline;"&gt;distinct ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really wanting to write this out in the scrip editor and just sum in the charts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something list this...IF(date &amp;lt;&amp;gt; 'NULL', 1,0) as DateCount? Will this work and does it take into account the "distinct ID" piece of the first expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 14:57:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions/m-p/932705#M954130</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-18T14:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions/m-p/932706#M954131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay on the right track! There are not null values but there is a value called "NULL" &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 14:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions/m-p/932706#M954131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-18T14:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions/m-p/932707#M954133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok then, your expression &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;if(date &amp;lt;&amp;gt; 'NULL',1,0) as DateCount&lt;/STRONG&gt;&lt;/SPAN&gt; looks fine for me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the Expression : Sum(Distinct DateCount) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 15:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions/m-p/932707#M954133</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-11-18T15:05:12Z</dc:date>
    </item>
  </channel>
</rss>

