<?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: Count Cancel Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Cancel-Date/m-p/351971#M492697</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;Your first expression [ &lt;EM&gt;If(isnull([Cancelation Date]),0,1) &lt;/EM&gt;]&amp;nbsp; looks right.&lt;/P&gt;&lt;P&gt;Are you sure that the "-" sign in your table represents NULL? Or, could it be a string?&lt;/P&gt;&lt;P&gt;If you can provide a sample qlikview application, it may be easier to answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading" href="http://quickdevtips.blogspot.com/" title="http://quickdevtips.blogspot.com/"&gt;http://quickdevtips.blogspot.com/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2012 22:05:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-13T22:05:58Z</dc:date>
    <item>
      <title>Count Cancel Date</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Cancel-Date/m-p/351969#M492695</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'm tyring to create a column either through set analysis or on import (would like to have both solutions) where I add a counter indicating whether a user has cancelled. Here's a sample of my data:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="16254" alt="Screen shot 2012-06-13 at 10.10.54 PM.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/16254_Screen+shot+2012-06-13+at+10.10.54+PM.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On import, I tried the following, however, this returned a 1 for every record.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;If&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;isnull&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;[Cancelation Date]&lt;SPAN class="s2"&gt;),&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;0&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;1&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;) &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;&lt;STRONG&gt;as&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; &lt;/SPAN&gt;HasCancel&lt;SPAN class="s2"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;Using set analysis, I tried the following, but this doesn't work either.:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;sum&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;[Cancelation Date]&lt;/STRONG&gt;&lt;SPAN class="s2"&gt; = (&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;&lt;STRONG&gt;"&amp;gt;0"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;),&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;1&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;0&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;Again, the goal is to count or sum whether a user has canceled. If anyone has any insight on a solution on import and using set analysis that would be great.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;Matt&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 20:23:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Cancel-Date/m-p/351969#M492695</guid>
      <dc:creator />
      <dc:date>2012-06-13T20:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Count Cancel Date</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Cancel-Date/m-p/351970#M492696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the properties-presentation tab, is 'supress zero values' selected?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 21:22:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Cancel-Date/m-p/351970#M492696</guid>
      <dc:creator />
      <dc:date>2012-06-13T21:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Count Cancel Date</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Cancel-Date/m-p/351971#M492697</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;Your first expression [ &lt;EM&gt;If(isnull([Cancelation Date]),0,1) &lt;/EM&gt;]&amp;nbsp; looks right.&lt;/P&gt;&lt;P&gt;Are you sure that the "-" sign in your table represents NULL? Or, could it be a string?&lt;/P&gt;&lt;P&gt;If you can provide a sample qlikview application, it may be easier to answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading" href="http://quickdevtips.blogspot.com/" title="http://quickdevtips.blogspot.com/"&gt;http://quickdevtips.blogspot.com/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 22:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Cancel-Date/m-p/351971#M492697</guid>
      <dc:creator />
      <dc:date>2012-06-13T22:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count Cancel Date</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Cancel-Date/m-p/351972#M492698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you tried your isnull as an expression in the graph?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 22:07:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Cancel-Date/m-p/351972#M492698</guid>
      <dc:creator />
      <dc:date>2012-06-13T22:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Count Cancel Date</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Cancel-Date/m-p/351973#M492699</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;Turns out the "-" wasn't null so I was able to use the following the count the cancels:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;sum&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;STRONG&gt;[Cancelation Date]&lt;/STRONG&gt;&lt;SPAN class="s2"&gt; -= {"-"} &amp;gt;}&lt;/SPAN&gt;&lt;STRONG&gt;[Transaction Counter]&lt;/STRONG&gt;&lt;SPAN class="s2"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;Thanks both for the help, it's much appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;Matt&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 17:32:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Cancel-Date/m-p/351973#M492699</guid>
      <dc:creator />
      <dc:date>2012-06-18T17:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Count Cancel Date</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Cancel-Date/m-p/351974#M492700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don´t you create a field in the load script for each Cancelation Date ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;if (not isnull([Cancelation Date],1, 0) as Cancelations&lt;/P&gt;&lt;P&gt;from tableX;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that way, you will just need to make a sum(Cancelations) in the your expression but make sure that your field has null values, not '-' character&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 18:39:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Cancel-Date/m-p/351974#M492700</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-06-18T18:39:06Z</dc:date>
    </item>
  </channel>
</rss>

