<?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 Count between two dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-between-two-dates/m-p/951897#M327383</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;Can someone help me out with the below please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;&lt;/P&gt;&lt;P&gt;UNIT.STOCKSTATUS = {'Sold'},&lt;/P&gt;&lt;P&gt;UNIT.SOLD_DATE = {"&amp;gt;=$(=max(UNIT.SOLD_DATE) -180)&amp;nbsp; &amp;lt;=$(=max(UNIT.SOLD_DATE) -91)"},&lt;/P&gt;&lt;P&gt;BUYER.B_CATEGORY -={'PR'}&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; &lt;/P&gt;&lt;P&gt;DISTINCT BUYER.B_NO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is count the buyer/customer is their maximum purchase date is more than the selected date -180 and less than the selected date -91.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes sense, basically I'm trying to count buyers that are within a certain date range but I'm struggling and getting a zero result.&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>Fri, 20 Nov 2015 14:43:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-20T14:43:00Z</dc:date>
    <item>
      <title>Count between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-between-two-dates/m-p/951897#M327383</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;Can someone help me out with the below please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;&lt;/P&gt;&lt;P&gt;UNIT.STOCKSTATUS = {'Sold'},&lt;/P&gt;&lt;P&gt;UNIT.SOLD_DATE = {"&amp;gt;=$(=max(UNIT.SOLD_DATE) -180)&amp;nbsp; &amp;lt;=$(=max(UNIT.SOLD_DATE) -91)"},&lt;/P&gt;&lt;P&gt;BUYER.B_CATEGORY -={'PR'}&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; &lt;/P&gt;&lt;P&gt;DISTINCT BUYER.B_NO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is count the buyer/customer is their maximum purchase date is more than the selected date -180 and less than the selected date -91.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes sense, basically I'm trying to count buyers that are within a certain date range but I'm struggling and getting a zero result.&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>Fri, 20 Nov 2015 14:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-between-two-dates/m-p/951897#M327383</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-20T14:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-between-two-dates/m-p/951898#M327384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to format the dates in the set modifier according the date format of UNIT.SOLD_DATE, like&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;UNIT.SOLD_DATE = {"&amp;gt;=$(=Date(max(UNIT.SOLD_DATE) -180,'YYYY-MM-DD'))&amp;lt;=$(=Date(max(UNIT.SOLD_DATE) -91,'YYYY-MM-DD'))"}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 15:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-between-two-dates/m-p/951898#M327384</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-20T15:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-between-two-dates/m-p/951899#M327385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Swuehl but no luck I'm afraid,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below works fine and shows me buyers than have purchased more than the selected date - 90 days,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; count(&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; UNIT.STOCKSTATUS = {'Sold'},&lt;/P&gt;&lt;P&gt;&amp;nbsp; UNIT.SOLD_DATE = {"&amp;gt;=$(=max(UNIT.SOLD_DATE)-90)"},&lt;/P&gt;&lt;P&gt;&amp;nbsp; BUYER.B_CATEGORY = {'*'}-{'PR'},&lt;/P&gt;&lt;P&gt;&amp;nbsp; UNIT.TOTALSOLD = {"&amp;gt;=$(= 1 )"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DISTINCT BUYER.B_NO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm wanting to show between selected date -91 and selected date -180.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 15:10:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-between-two-dates/m-p/951899#M327385</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-20T15:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-between-two-dates/m-p/951900#M327386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be easier if you could upload a small sample QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try&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;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;lt;&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;&amp;nbsp; UNIT.STOCKSTATUS = {'Sold'},&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; UNIT.SOLD_DATE = {"=UNIT.SOLD_DATE &amp;gt;=$(=max(UNIT.SOLD_DATE)-180) and UNIT.SOLD_DATE &amp;lt;=$(=max(UNIT.SOLD_DATE)-91)"},&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; BUYER.B_CATEGORY = {'*'}-{'PR'},&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; UNIT.TOTALSOLD = {"&amp;gt;=$(= 1 )"}&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;nbsp;&amp;nbsp;&amp;nbsp; &amp;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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DISTINCT BUYER.B_NO)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 15:48:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-between-two-dates/m-p/951900#M327386</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-20T15:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Count between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-between-two-dates/m-p/951901#M327387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately I'm not able to upload anything,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That hasn't worked either, I thought it would have been quite straight forward, I'm just trying to cant the number of buyers between two dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 16:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-between-two-dates/m-p/951901#M327387</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-20T16:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-between-two-dates/m-p/951902#M327388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hasn't worked either means a zero count result? Or something else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure you have data records that fulfill the filter requirements and that UNIT.SOLD_DATE has a numeric representation, not only showing pure text values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 16:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-between-two-dates/m-p/951902#M327388</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-20T16:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Count between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-between-two-dates/m-p/951903#M327389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's showing a zero value which isn't correct, I know I've got records that should be shown and I use UNIT.SOLD_DATE in various other pieces on my dashboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I may know why, I'm selecting a month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm wanting to do is to be able to select a month and then show the number of buyers that have bought between 180 and 90 days before that selected month. But as the month is selected I'm guessing this is stopping the set analysis working? Would I need to use P()?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Feel free to correct me if I'm completely wrong!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 16:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-between-two-dates/m-p/951903#M327389</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-20T16:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Count between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-between-two-dates/m-p/951904#M327390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another idea I had was the below but that isn't working either,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/P&gt;&lt;P&gt;UNIT.STOCKSTATUS = {'Sold'},&lt;/P&gt;&lt;P&gt;UNIT.SOLD_MONTH = {"&amp;gt;=$(=max(UNIT.SOLD_DATE)-180)&amp;nbsp; &amp;lt;=$(=max(UNIT.SOLD_DATE)-91)"},&lt;/P&gt;&lt;P&gt;BUYER.B_CATEGORY = {'*'}-{'PR'}&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/P&gt;&lt;P&gt;UNIT.STOCKSTATUS = {'Sold'},&lt;/P&gt;&lt;P&gt;UNIT.SOLD_MONTH = {"&amp;gt;=$(=max(UNIT.SOLD_DATE)-90)"},&lt;/P&gt;&lt;P&gt;BUYER.B_CATEGORY = {'*'}-{'PR'}&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;DISTINCT BUYER.B_NO)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 16:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-between-two-dates/m-p/951904#M327390</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-20T16:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Count between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-between-two-dates/m-p/951905#M327391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you make selection in other calendar fields, you need to clear these fields in set analysis to avoid incompatible sets:&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;count(&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; {&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; &amp;lt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;UNIT.STOCKSTATUS = {'Sold'},&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;UNIT.SOLD_DATE = {"&amp;gt;=$(=max(UNIT.SOLD_DATE) -180)&amp;nbsp; &amp;lt;=$(=max(UNIT.SOLD_DATE) -91)"},&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;BUYER.B_CATEGORY -={'PR'},&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;MONTHFIELD= ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;WEEKFIELD=&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; &amp;gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DISTINCT BUYER.B_NO)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You may still need to check the set modifier for UNIT.SOLD_DATE, but you must clear the other calendar fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 16:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-between-two-dates/m-p/951905#M327391</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-20T16:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Count between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-between-two-dates/m-p/951906#M327392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're a genius Swuehl! It works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 10:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-between-two-dates/m-p/951906#M327392</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-23T10:23:40Z</dc:date>
    </item>
  </channel>
</rss>

