<?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: count differently if different date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/count-differently-if-different-date/m-p/969605#M13948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Nov 2015 16:34:20 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-11-10T16:34:20Z</dc:date>
    <item>
      <title>count differently if different date</title>
      <link>https://community.qlik.com/t5/App-Development/count-differently-if-different-date/m-p/969601#M13944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish to on a chart, on after a certain date, count different conditions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(OrderDate &amp;lt; '01/01/2015', count({$&amp;lt;&amp;nbsp; DeliveryType = {"1"}CustomerID)) or&lt;/P&gt;&lt;P&gt;if(OrderDate &amp;gt; '01/01/2015', count({$&amp;lt;&amp;nbsp; DeliveryType = {"2"}, CustomerID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having no joy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please advise / help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 11:59:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/count-differently-if-different-date/m-p/969601#M13944</guid>
      <dc:creator>joeybird</dc:creator>
      <dc:date>2015-11-10T11:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: count differently if different date</title>
      <link>https://community.qlik.com/t5/App-Development/count-differently-if-different-date/m-p/969602#M13945</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;STRONG style="text-decoration: line-through;"&gt;Count({&amp;lt;OrderDate = {"$(='&amp;lt;' &amp;amp; MakeDate(2015, 1, 1))"}, DeliveryType = {1}&amp;gt; + &amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;OrderDate = {"$(='&amp;gt;' &amp;amp; MakeDate(2015, 1, 1))"}, DeliveryType = {2}&lt;/SPAN&gt;&amp;gt;}CustomerID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Count({&amp;lt;OrderDate = {"$(='&amp;lt;' &amp;amp; Date(MakeDate(2015, 1, 1), 'YourDateFieldFormat'))"}, DeliveryType = {1}&amp;gt; + &amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;OrderDate = {"$(='&amp;gt;' &amp;amp; MakeDate(2015, 1, 1)&lt;STRONG style="font-size: 13.3333px;"&gt;, 'YourDateFieldFormat')&lt;/STRONG&gt;)"}, DeliveryType = {2}&lt;/SPAN&gt;&amp;gt;}CustomerID)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note: &lt;BR /&gt;&lt;/STRONG&gt;You have &amp;lt; (less than) and &amp;gt; (greater than), but not equal. I would expect data for OrderDate = 1/1/2015 so add = sign to one of the two expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 12:02:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/count-differently-if-different-date/m-p/969602#M13945</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-10T12:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: count differently if different date</title>
      <link>https://community.qlik.com/t5/App-Development/count-differently-if-different-date/m-p/969603#M13946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joanna, the syntax for set analisys is incomplete:&lt;/P&gt;&lt;P&gt;if(OrderDate &amp;lt; '01/01/2015', count({$&amp;lt;&amp;nbsp; DeliveryType = {"1"}&lt;STRONG&gt;&amp;gt;}&lt;/STRONG&gt; CustomerID)) or&lt;/P&gt;&lt;P&gt;if(OrderDate &amp;gt; '01/01/2015', count({$&amp;lt;&amp;nbsp; DeliveryType = {"2"}&lt;STRONG&gt;&amp;gt;}&lt;/STRONG&gt; CustomerID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can work depending of your dimension, if it's OrderDate it can work, if it's some field wich can have many OrderDate (like months o weeks) you'll need to add an aggregation funtion to OrderDate to pick only one of those values:&lt;/P&gt;&lt;P&gt;If(Max(OrderDate) ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 12:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/count-differently-if-different-date/m-p/969603#M13946</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-11-10T12:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: count differently if different date</title>
      <link>https://community.qlik.com/t5/App-Development/count-differently-if-different-date/m-p/969604#M13947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunny ...your version works best but only if I select&amp;nbsp; a OrderDate from the filter pane,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please advise / help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 16:30:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/count-differently-if-different-date/m-p/969604#M13947</guid>
      <dc:creator>joeybird</dc:creator>
      <dc:date>2015-11-10T16:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: count differently if different date</title>
      <link>https://community.qlik.com/t5/App-Development/count-differently-if-different-date/m-p/969605#M13948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 16:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/count-differently-if-different-date/m-p/969605#M13948</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-10T16:34:20Z</dc:date>
    </item>
  </channel>
</rss>

