<?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: Find the no. of zero values in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-the-no-of-zero-values-in-pivot-table/m-p/1222286#M865160</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please find the sample attached. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have already come up with something like below. Please feel free to invalidate the expression. &lt;STRONG&gt;Whats required is (pls refer the snapshot below) there should be a minimum of 3 months gap between the purchases and to be term it as return. Otherwise can be marked as "-".&lt;/STRONG&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=aggr(&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if(count(distinct TOTAL Month)=&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;aggr(if(sum(PrdQty)&amp;gt;0,count(distinct Aggr(distinct Rank(Sum(PrdQty),4),Customer, Year,Month))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;-(count(distinct {$&amp;lt;Year={$(=Only(Year))}&amp;gt;} if(aggr(sum({$&amp;lt;Year={$(=Only(Year))}&amp;gt;} PrdQty),Customer,Year,Month)=0,Month)))),Customer),'Active',&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if((count(DISTINCT TOTAL Month)-(count(distinct {$&amp;lt;Year={$(=Only(Year))}&amp;gt;} if(aggr(sum({$&amp;lt;Year={$(=Only(Year))}&amp;gt;} PrdQty),Customer, Year,Month) &amp;gt; 0,Month))))&amp;gt;=(count(DISTINCT TOTAL Month)/3),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'Return','Active')),Customer)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="12-23-2016 12-07-53 PM.png" class="jive-image image-1" src="/legacyfs/online/147494_12-23-2016 12-07-53 PM.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Dec 2016 06:42:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-12-23T06:42:30Z</dc:date>
    <item>
      <title>Find the no. of zero values in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-no-of-zero-values-in-pivot-table/m-p/1222283#M865157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have a pivot table in Qlikview as shown below. I need to set a dimension value based on the gaps in the Year Month selected by the user. If the Gap is &amp;gt;=3, need the dimension to set as Return otherwise the dimension value should be Active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In short, any customer who is not giving continuous business for more than 3 months to be identified and marked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-1181535-147240/12-21-2016 3-32-12 PM.png" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;" target="_blank"&gt;&lt;IMG alt="12-21-2016 3-32-12 PM.png" class="jive-image image-1" height="160" src="/legacyfs/online/147358_12-21-2016 3-32-12 PM.png" style="border-width: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="1206" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks.,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Ashmi&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/Find-the-no-of-zero-values-in-pivot-table/m-p/1222283#M865157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Find the no. of zero values in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-no-of-zero-values-in-pivot-table/m-p/1222284#M865158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post a small Qlikview document with (example) data that illustrates the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 07:36:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-no-of-zero-values-in-pivot-table/m-p/1222284#M865158</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-22T07:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Find the no. of zero values in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-no-of-zero-values-in-pivot-table/m-p/1222285#M865159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can yu share sample data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 09:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-no-of-zero-values-in-pivot-table/m-p/1222285#M865159</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-22T09:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Find the no. of zero values in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-no-of-zero-values-in-pivot-table/m-p/1222286#M865160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please find the sample attached. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have already come up with something like below. Please feel free to invalidate the expression. &lt;STRONG&gt;Whats required is (pls refer the snapshot below) there should be a minimum of 3 months gap between the purchases and to be term it as return. Otherwise can be marked as "-".&lt;/STRONG&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=aggr(&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if(count(distinct TOTAL Month)=&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;aggr(if(sum(PrdQty)&amp;gt;0,count(distinct Aggr(distinct Rank(Sum(PrdQty),4),Customer, Year,Month))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;-(count(distinct {$&amp;lt;Year={$(=Only(Year))}&amp;gt;} if(aggr(sum({$&amp;lt;Year={$(=Only(Year))}&amp;gt;} PrdQty),Customer,Year,Month)=0,Month)))),Customer),'Active',&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if((count(DISTINCT TOTAL Month)-(count(distinct {$&amp;lt;Year={$(=Only(Year))}&amp;gt;} if(aggr(sum({$&amp;lt;Year={$(=Only(Year))}&amp;gt;} PrdQty),Customer, Year,Month) &amp;gt; 0,Month))))&amp;gt;=(count(DISTINCT TOTAL Month)/3),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'Return','Active')),Customer)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="12-23-2016 12-07-53 PM.png" class="jive-image image-1" src="/legacyfs/online/147494_12-23-2016 12-07-53 PM.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 06:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-no-of-zero-values-in-pivot-table/m-p/1222286#M865160</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-23T06:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Find the no. of zero values in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-no-of-zero-values-in-pivot-table/m-p/1222287#M865161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need help on Return Customers alone. Need to find 3 months gap otherwise "-" is fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 06:43:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-no-of-zero-values-in-pivot-table/m-p/1222287#M865161</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-23T06:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Find the no. of zero values in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-no-of-zero-values-in-pivot-table/m-p/1222288#M865162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps like in the attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 11:21:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-no-of-zero-values-in-pivot-table/m-p/1222288#M865162</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-23T11:21:23Z</dc:date>
    </item>
  </channel>
</rss>

