<?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: Counting values using a date in if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-values-using-a-date-in-if-statement/m-p/7516#M790257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This one worked perfectly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;count(if(ItemType='13' and weekDay(ItemCreatedDate) = 'Mon', ItemId))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you very much to you both, that was really fast and accurate!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jan 2018 20:06:56 GMT</pubDate>
    <dc:creator>nicalbert</dc:creator>
    <dc:date>2018-01-25T20:06:56Z</dc:date>
    <item>
      <title>Counting values using a date in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-values-using-a-date-in-if-statement/m-p/7513#M790254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to count the number of items from type XYZ that were created on a given day of the week. So basically, my expression should (?) have 2 "if" condition. So, &lt;SPAN style="font-size: 13.3333px;"&gt;let's say that I'm only counting the items of type 13 that were made on Mondays, the expression would look like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(if(ItemType='13',if(weekDay(ItemCreatedDate = 'Mon'), ItemId)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, this obviously does not work... Can anyone provide me some help?&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;Nic&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/Counting-values-using-a-date-in-if-statement/m-p/7513#M790254</guid>
      <dc:creator>nicalbert</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Counting values using a date in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-values-using-a-date-in-if-statement/m-p/7514#M790255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try 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;count(if(ItemType='13' and weekDay(ItemCreatedDate) = 'Mon', ItemId))&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;Regards,&lt;/SPAN&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;Kaushik Solanki&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 19:55:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-values-using-a-date-in-if-statement/m-p/7514#M790255</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2018-01-25T19:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Counting values using a date in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-values-using-a-date-in-if-statement/m-p/7515#M790256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;count(if(ItemType='13' and weekDay(ItemCreatedDate) = 'Mon', ItemId))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(if(ItemType='13' and weekDay(ItemCreatedDate) = 'Mon', 1,0))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you may need to wrap expression in some aggr() function if using it in a text box .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 19:59:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-values-using-a-date-in-if-statement/m-p/7515#M790256</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2018-01-25T19:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Counting values using a date in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-values-using-a-date-in-if-statement/m-p/7516#M790257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This one worked perfectly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;count(if(ItemType='13' and weekDay(ItemCreatedDate) = 'Mon', ItemId))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you very much to you both, that was really fast and accurate!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 20:06:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-values-using-a-date-in-if-statement/m-p/7516#M790257</guid>
      <dc:creator>nicalbert</dc:creator>
      <dc:date>2018-01-25T20:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Counting values using a date in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-values-using-a-date-in-if-statement/m-p/7517#M790258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this too, you decide which expression is better for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;ItemType={13}&amp;gt;} if(WeekDay(ItemCreatedDate)='Mon',ItemId,null()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 20:16:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-values-using-a-date-in-if-statement/m-p/7517#M790258</guid>
      <dc:creator>hjimenez25</dc:creator>
      <dc:date>2018-01-25T20:16:15Z</dc:date>
    </item>
  </channel>
</rss>

