<?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: Divide by zero in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Divide-by-zero/m-p/881155#M660793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can write a expression like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;count(DISTINCT{$&amp;lt;[Page2]={'www:cart:cloud:product'},[Site Visit Hit Source]={"&amp;lt;&amp;gt;5,7,8,9"}, [Site Visit Post Page Event] = {0}&amp;gt;} [Visitor ID]) =0,'message',&amp;lt;expression&amp;gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or simple&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(len(a/b&amp;gt;1,a/d,'Message')&amp;nbsp; &lt;/P&gt;&lt;P&gt;you can use Null functions too instead of Len&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Apr 2015 04:52:20 GMT</pubDate>
    <dc:creator>qlikpahadi07</dc:creator>
    <dc:date>2015-04-09T04:52:20Z</dc:date>
    <item>
      <title>Divide by zero</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-by-zero/m-p/881154#M660792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have expressions like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;count(DISTINCT{$&amp;lt;[Page2]={'www:cart:cloud:product'},[Site Visit Hit Source]={"&amp;lt;&amp;gt;5,7,8,9"}, [Site Visit Post Page Event] = {0}&amp;gt;} [Visitor ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;and it is &lt;/STRONG&gt;calculating zero and want to use value as in denaminator (i.e&amp;nbsp; a/b). If i use this value it is giving blank, but i want to display one message. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Pls help me on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;kumar&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 04:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-by-zero/m-p/881154#M660792</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-09T04:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-by-zero/m-p/881155#M660793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can write a expression like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;count(DISTINCT{$&amp;lt;[Page2]={'www:cart:cloud:product'},[Site Visit Hit Source]={"&amp;lt;&amp;gt;5,7,8,9"}, [Site Visit Post Page Event] = {0}&amp;gt;} [Visitor ID]) =0,'message',&amp;lt;expression&amp;gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or simple&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(len(a/b&amp;gt;1,a/d,'Message')&amp;nbsp; &lt;/P&gt;&lt;P&gt;you can use Null functions too instead of Len&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 04:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-by-zero/m-p/881155#M660793</guid>
      <dc:creator>qlikpahadi07</dc:creator>
      <dc:date>2015-04-09T04:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-by-zero/m-p/881156#M660794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Alt function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;having &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;Alt(count(DISTINCT{$&amp;lt;[Page2]={'www:cart:cloud:product'},[Site Visit Hit Source]={"&amp;lt;&amp;gt;5,7,8,9"}, [Site Visit Post Page Event] = {0}&amp;gt;} [Visitor ID]),0) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This should return the count if its a valid number otherwise 0 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe you could have different aggregation over different selection instead of returning zero&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ziad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 05:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-by-zero/m-p/881156#M660794</guid>
      <dc:creator>ziadm</dc:creator>
      <dc:date>2015-04-09T05:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-by-zero/m-p/881157#M660795</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;Use Alt() like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Alt(Expression, 'Value If expression returns null')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;=Alt(100/0, 'N/A')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 07:14:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-by-zero/m-p/881157#M660795</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-04-09T07:14:11Z</dc:date>
    </item>
  </channel>
</rss>

