<?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: Need help with AGGR in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285727#M402548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or may be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VisitNumber&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search String&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concat(DISTINCT {&amp;lt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;VisitNumber = {"=Len(Trim(KeyDate)) = 0"}&lt;/SPAN&gt;&amp;gt;} Chr(34) &amp;amp; &lt;/STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;VisitNumber &amp;amp; Chr(34), '|')&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Nov 2016 16:31:31 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-11-21T16:31:31Z</dc:date>
    <item>
      <title>Need help with AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285720#M402541</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;I have the below AGGR function in a button that selects all the visits wherever the KeyDate is null. However, I need to edit little bit so that the function can select all the visits where the KeyDate is null and Balance is not equal to zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(if(isnull(KeyDate),VisitNumber),VisitNumber)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone please help me modify to include the balance field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 14:45:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285720#M402541</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-21T14:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285721#M402542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&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;&lt;STRONG&gt;=Aggr(if(isnull(KeyDate) &lt;SPAN style="color: #ff0000;"&gt;and Sum(Balance) &amp;lt;&amp;gt; 0&lt;/SPAN&gt;, VisitNumber), VisitNumber)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 14:54:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285721#M402542</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-21T14:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285722#M402543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sunny,&lt;/P&gt;&lt;P&gt;Sorry, I am little confused. Clicking the button with AGGR is not selecting anything. How about a listbox expression to perform this? I am trying&amp;nbsp; =if(IsNull(KeyDate),'No KeyDate','VisitsWithKeyDate'). I need to select V0004 and V0005 in below example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 225px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="86"&gt;VisitNumber&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="75"&gt;KeyDate&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Bal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;V0001&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;1/23/1985&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;V0002&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2/11/1985&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;V0003&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;5/9/1986&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;350&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;V0004&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;V0005&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 15:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285722#M402543</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-21T15:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285723#M402544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VisitNumber&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search String&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;='=Sum({&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;VisitNumber = {"=Len(Trim(KeyDate)) = 0"}&lt;/SPAN&gt;&amp;gt;}Bal) &amp;gt; 0'&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 15:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285723#M402544</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-21T15:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285724#M402545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My QlikView server is frozen. I am rebooting the server. I will try your expression in few mins.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:16:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285724#M402545</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-21T16:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285725#M402546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow Sunny! man &lt;STRONG&gt;='=Sum({&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;VisitNumber = {"=Len(Trim(KeyDate)) = 0"}&lt;/SPAN&gt;&amp;gt;}Bal) &amp;gt; 0' worked. Please do me a last favor. How about if we ignore the balance field now? How can I get all the visits that has null KeyDate regardless of balance.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285725#M402546</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-21T16:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285726#M402547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try removing &amp;gt; 0 at the end and see if that works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Field&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;VisitNumber&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Search String&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;='=Sum({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;VisitNumber = {"=Len(Trim(KeyDate)) = 0"}&lt;/SPAN&gt;&amp;gt;}Bal)'&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:29:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285726#M402547</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-21T16:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285727#M402548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or may be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VisitNumber&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search String&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concat(DISTINCT {&amp;lt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;VisitNumber = {"=Len(Trim(KeyDate)) = 0"}&lt;/SPAN&gt;&amp;gt;} Chr(34) &amp;amp; &lt;/STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;VisitNumber &amp;amp; Chr(34), '|')&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:31:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285727#M402548</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-21T16:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285728#M402549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following did not work:&lt;/P&gt;&lt;P&gt;Concat(DISTINCT {&amp;lt;AccountNumber = {"=Len(Trim(KeyDate)) = 0"}&amp;gt;} Chr(34) &amp;amp; AccountNumber &amp;amp; Chr(34), '|')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:38:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285728#M402549</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-21T16:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285729#M402550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bad, forgot to add parenthesis. Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;='(' &amp;amp;&lt;/SPAN&gt; Concat(DISTINCT {&amp;lt;VisitNumber = {"=Len(Trim(KeyDate)) = 0"}&amp;gt;} Chr(34) &amp;amp;VisitNumber &amp;amp; Chr(34), '|') &lt;SPAN style="color: #ff0000;"&gt;&amp;amp; ')'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285729#M402550</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-21T16:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285730#M402551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are super genius in QlikView Sunny. I owe a lunch some day! Thanks so much for all your help all the time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:43:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-AGGR/m-p/1285730#M402551</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-21T16:43:57Z</dc:date>
    </item>
  </channel>
</rss>

