<?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: How to Exclude Fields that has Zero Values? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Exclude-Fields-that-has-Zero-Values/m-p/884654#M308502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you are using a straight table, you could use the 'sum of rows' total option for that expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at what you are trying to do though, I would say you are missing some fact fields which would make this much easier for you. Having to use Aggr like that for your visit count, if you had a visit count field in your underlying model, that expression becomes simpler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have an example to upload that would be good, as I am fairly sure changes can be made to the model to make this easier for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2015 10:28:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-06T10:28:41Z</dc:date>
    <item>
      <title>How to Exclude Fields that has Zero Values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Exclude-Fields-that-has-Zero-Values/m-p/884649#M308497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Have a problem i've been trying to do it, but failed, how do i hide field values that has Zero Values like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Names&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Total Visits&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Unique Visits&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Leslie&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Jan&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Lebo&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;349&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;John&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Feb&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Lebo&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;90&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;Mar&lt;/TD&gt;&lt;TD&gt;Lebo&lt;/TD&gt;&lt;TD&gt;&lt;STRONG style="color: #ff0000;"&gt;0&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jonas&lt;/TD&gt;&lt;TD&gt;Mar&lt;/TD&gt;&lt;TD&gt;Jacob&lt;/TD&gt;&lt;TD&gt;39&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jonas&lt;/TD&gt;&lt;TD&gt;Apr&lt;/TD&gt;&lt;TD&gt;Mike&lt;/TD&gt;&lt;TD&gt;&lt;STRONG style="color: #ff0000;"&gt;0&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ones that are Highlighted in Red.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NB: Total Visits And Unique Visits are My Expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(RowNo()=0, NoOfRows(TOTAL), Count(DISTINCT Names))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // this is for Unique Visits&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(count(DISTINCT SalesDate),Customer,SalesDate))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Used for Total Visits&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 08:49:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Exclude-Fields-that-has-Zero-Values/m-p/884649#M308497</guid>
      <dc:creator />
      <dc:date>2015-05-06T08:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Exclude Fields that has Zero Values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Exclude-Fields-that-has-Zero-Values/m-p/884650#M308498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Unique Visits:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Total Visits&lt;/SPAN&gt;]&amp;gt;0,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(aggr(count(DISTINCT SalesDate),Customer,SalesDate)) ,0)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 08:57:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Exclude-Fields-that-has-Zero-Values/m-p/884650#M308498</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-05-06T08:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to Exclude Fields that has Zero Values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Exclude-Fields-that-has-Zero-Values/m-p/884651#M308499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thabiso,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the 0 is only showing for you due to your 'unique visits' expression, I'm not sure how you can have a unique visit value but not at least the same value in your totals visits to be honest? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it points to your unique visits expression not really giving the right result. If you change that expression, those rows should drop out for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if you have to make it relative to the other expression&lt;/P&gt;&lt;P&gt;If([Total Visits]&amp;gt;=1, &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;If(RowNo()=0, NoOfRows(TOTAL), Count(DISTINCT Names))&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 09:02:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Exclude-Fields-that-has-Zero-Values/m-p/884651#M308499</guid>
      <dc:creator />
      <dc:date>2015-05-06T09:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to Exclude Fields that has Zero Values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Exclude-Fields-that-has-Zero-Values/m-p/884652#M308500</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 works but, now my Unique Values are the same as Total Visits as of Unique Values should remain as 1 for all the rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 09:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Exclude-Fields-that-has-Zero-Values/m-p/884652#M308500</guid>
      <dc:creator />
      <dc:date>2015-05-06T09:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to Exclude Fields that has Zero Values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Exclude-Fields-that-has-Zero-Values/m-p/884653#M308501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code works, but im getting wrong answer for total sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Total Visits&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Unique Visits&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG style="color: #ff0000;"&gt;7&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG style="color: #ff0000;"&gt;1&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Lebo&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Lebo&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the answer for Unique Visits remains as 1 it doesn't give me the &lt;STRONG&gt;Total sum&lt;/STRONG&gt; of those Unique Values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used Straight Table, and if i use Pivot the values changes and they become more,&amp;nbsp; the Answer becomes &lt;STRONG style="color: #ff0000;"&gt;3&lt;/STRONG&gt; on Unique Visits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 09:41:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Exclude-Fields-that-has-Zero-Values/m-p/884653#M308501</guid>
      <dc:creator />
      <dc:date>2015-05-06T09:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to Exclude Fields that has Zero Values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Exclude-Fields-that-has-Zero-Values/m-p/884654#M308502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you are using a straight table, you could use the 'sum of rows' total option for that expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at what you are trying to do though, I would say you are missing some fact fields which would make this much easier for you. Having to use Aggr like that for your visit count, if you had a visit count field in your underlying model, that expression becomes simpler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have an example to upload that would be good, as I am fairly sure changes can be made to the model to make this easier for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 10:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Exclude-Fields-that-has-Zero-Values/m-p/884654#M308502</guid>
      <dc:creator />
      <dc:date>2015-05-06T10:28:41Z</dc:date>
    </item>
  </channel>
</rss>

