<?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: New Buyers to a Branch in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898422#M312574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would first check if these give you correct values when you use them in a straight table with &lt;STRONG&gt;BUYER.B_NO&lt;/STRONG&gt; as Dimension:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Count({&amp;lt; SOLD.YrMthSeq= {"&amp;lt;=$(vRptYrMthSeqTY ) &amp;gt;=$(vRptYrMthSeqTY) "},&lt;SPAN style="line-height: 1.5em;"&gt;UNIT.STOCKSTATUS={'Sold'} &amp;gt;} &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&lt;STRONG&gt;UNIT.TOTALSOLD)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Count({&amp;lt;SOLD.YrMthSeq= {"&amp;lt;=$(=$(vRptYrMthSeqTY) -1) &amp;gt;=$(=$(vRptYrMthSeqTY) -6)"}, UNIT.STOCKSTATUS={'Sold'} &amp;gt;} UNIT.TOTALSOLD)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If those are correct then we can make sure that we are moving in the right direction, but if not I would focus my attention of fixing them first.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HTH&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jul 2015 13:19:09 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-07-07T13:19:09Z</dc:date>
    <item>
      <title>New Buyers to a Branch</title>
      <link>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898420#M312572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all I am wanting to count the number of new buyers to a specific branch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New buyers would be a buyer who has bought a unit in June but not between Dec - May at that same branch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;=aggr(if(&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;count( &lt;/P&gt;&lt;P&gt;{&amp;lt; SOLD.YrMthSeq= {"&amp;lt;=$(vRptYrMthSeqTY ) &amp;gt;=$(vRptYrMthSeqTY) "},&lt;/P&gt;&lt;P&gt;UNIT.STOCKSTATUS={'Sold'} &amp;gt;}&lt;/P&gt;&lt;P&gt;UNIT.TOTALSOLD) &amp;gt; 0&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;and &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;count(&lt;/P&gt;&lt;P&gt;{&amp;lt;SOLD.YrMthSeq= {"&amp;lt;=$(=$(vRptYrMthSeqTY) -1) &amp;gt;=$(=$(vRptYrMthSeqTY) -6)"},&lt;/P&gt;&lt;P&gt;UNIT.STOCKSTATUS={'Sold'} &amp;gt;}&lt;/P&gt;&lt;P&gt;UNIT.TOTALSOLD) = 0 , &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;count( BUYER.B_NO)) , BUYER.B_NO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My dimension is branch and the first set analysis is asking if they have bought something in june the second is if they have bought something between Dec - May.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be very appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 13:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898420#M312572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-07T13:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: New Buyers to a Branch</title>
      <link>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898421#M312573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gareth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you also want to aggregate by Branch name or no as well. If that doesn't work, would you mind posting some sample data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 13:18:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898421#M312573</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-07-07T13:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: New Buyers to a Branch</title>
      <link>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898422#M312574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would first check if these give you correct values when you use them in a straight table with &lt;STRONG&gt;BUYER.B_NO&lt;/STRONG&gt; as Dimension:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Count({&amp;lt; SOLD.YrMthSeq= {"&amp;lt;=$(vRptYrMthSeqTY ) &amp;gt;=$(vRptYrMthSeqTY) "},&lt;SPAN style="line-height: 1.5em;"&gt;UNIT.STOCKSTATUS={'Sold'} &amp;gt;} &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&lt;STRONG&gt;UNIT.TOTALSOLD)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Count({&amp;lt;SOLD.YrMthSeq= {"&amp;lt;=$(=$(vRptYrMthSeqTY) -1) &amp;gt;=$(=$(vRptYrMthSeqTY) -6)"}, UNIT.STOCKSTATUS={'Sold'} &amp;gt;} UNIT.TOTALSOLD)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If those are correct then we can make sure that we are moving in the right direction, but if not I would focus my attention of fixing them first.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HTH&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 13:19:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898422#M312574</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-07T13:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: New Buyers to a Branch</title>
      <link>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898423#M312575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gareth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;use sum(if ()) construction to achive require result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;TABLE style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;if(&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;lt; SOLD.YrMthSeq= {"&amp;lt;=$(vRptYrMthSeqTY ) &amp;gt;=$(vRptYrMthSeqTY) "},&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UNIT.STOCKSTATUS={'Sold'} &amp;gt;}&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UNIT.TOTALSOLD) &amp;gt; 0&lt;/P&gt;&lt;TABLE style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and&lt;/P&gt;&lt;TABLE style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;lt;SOLD.YrMthSeq= {"&amp;lt;=$(=$(vRptYrMthSeqTY) -1) &amp;gt;=$(=$(vRptYrMthSeqTY) -6)"},&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UNIT.STOCKSTATUS={'Sold'} &amp;gt;}&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UNIT.TOTALSOLD) = 0 ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 0&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&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;Andrei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 13:24:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898423#M312575</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2015-07-07T13:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: New Buyers to a Branch</title>
      <link>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898424#M312576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Originally I had =if([June Buyers] &amp;gt;0 and [May - Dec Buyers] = 0 , 1) as the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with [June Buyers] being &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Count({&amp;lt; SOLD.YrMthSeq= {"&amp;lt;=$(vRptYrMthSeqTY ) &amp;gt;=$(vRptYrMthSeqTY) "},&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;UNIT.STOCKSTATUS={'Sold'} &amp;gt;} &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;UNIT.TOTALSOLD) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[May - Dec Buyers] being &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Count({&amp;lt;SOLD.YrMthSeq= {"&amp;lt;=$(=$(vRptYrMthSeqTY) -1) &amp;gt;=$(=$(vRptYrMthSeqTY) -6)"}, UNIT.STOCKSTATUS={'Sold'} &amp;gt;} UNIT.TOTALSOLD)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this worked and flagged the buyers that fall into this criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I need this to be totalled up for each Branch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 13:29:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898424#M312576</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-07T13:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: New Buyers to a Branch</title>
      <link>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898425#M312577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Andrei but that is just showing null values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 13:32:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898425#M312577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-07T13:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: New Buyers to a Branch</title>
      <link>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898426#M312578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm... very strange..&lt;/P&gt;&lt;P&gt;Does it work if you put your original flag into sum()- function?&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Gareth Cox-Thorpe wrote:&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;Originally I had =if([June Buyers] &amp;gt;0 and [May - Dec Buyers] = 0 , 1) as the expression&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 13:44:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898426#M312578</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2015-07-07T13:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: New Buyers to a Branch</title>
      <link>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898427#M312579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this is closer to what you need. Change the Branch field to the correct field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Count(Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Count({&amp;lt;SOLD.YrMthSeq={"&amp;lt;=$(vRptYrMthSeqTY) &amp;gt;=$(vRptYrMthSeqTY)"}, UNIT.STOCKSTATUS={'Sold'}&amp;gt;} UNIT.TOTALSOLD) &amp;gt; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp; And Count({&amp;lt;SOLD.YrMthSeq={"&amp;lt;=$(=$(vRptYrMthSeqTY)-1)&amp;gt;=$(=$(vRptYrMthSeqTY)-6)"}, UNIT.STOCKSTATUS={'Sold'} &amp;gt;} UNIT.TOTALSOLD) = 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DISTINCT BUYER.B_NO)&lt;/P&gt;&lt;P&gt;&amp;nbsp; , BUYER.B_NO, Branch))&lt;/P&gt;&lt;P&gt;,Branch))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 13:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898427#M312579</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-07-07T13:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: New Buyers to a Branch</title>
      <link>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898428#M312580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrei&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That expression does not work as you are trying to nest a Count() inside a Sum(). You need an Aggr() for the inner aggregation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 13:48:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898428#M312580</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-07-07T13:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: New Buyers to a Branch</title>
      <link>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898429#M312581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh.. yes.. indeed &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks Jonathan!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 13:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898429#M312581</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2015-07-07T13:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: New Buyers to a Branch</title>
      <link>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898430#M312582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this is really close Jonathan however the expression doesn't like the DISTINCT part if I take it out it works but it wont be giving me an accurate number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 13:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898430#M312582</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-07T13:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: New Buyers to a Branch</title>
      <link>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898431#M312583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bad - the Distinct should be before the inner Aggr():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Count(DISTINCT Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Count({&amp;lt;SOLD.YrMthSeq={"&amp;lt;=$(vRptYrMthSeqTY) &amp;gt;=$(vRptYrMthSeqTY)"}, UNIT.STOCKSTATUS={'Sold'}&amp;gt;} UNIT.TOTALSOLD) &amp;gt; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp; And Count({&amp;lt;SOLD.YrMthSeq={"&amp;lt;=$(=$(vRptYrMthSeqTY)-1)&amp;gt;=$(=$(vRptYrMthSeqTY)-6)"}, UNIT.STOCKSTATUS={'Sold'} &amp;gt;} UNIT.TOTALSOLD) = 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp; BUYER.B_NO)&lt;/P&gt;&lt;P&gt;&amp;nbsp; , BUYER.B_NO, Branch))&lt;/P&gt;&lt;P&gt;,Branch))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 13:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898431#M312583</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-07-07T13:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: New Buyers to a Branch</title>
      <link>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898432#M312584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Jonathan! That worked!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 13:58:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-Buyers-to-a-Branch/m-p/898432#M312584</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-07T13:58:16Z</dc:date>
    </item>
  </channel>
</rss>

