<?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: Find this Quarter and Last Quarter using Expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-this-Quarter-and-Last-Quarter-using-Expressions/m-p/1592057#M443615</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share sample data...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil Paul&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2019 12:22:34 GMT</pubDate>
    <dc:creator>sunilpaul</dc:creator>
    <dc:date>2019-06-14T12:22:34Z</dc:date>
    <item>
      <title>Find this Quarter and Last Quarter using Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Find-this-Quarter-and-Last-Quarter-using-Expressions/m-p/1591930#M443612</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to calculate the "&lt;STRONG&gt;count of the Orders&lt;/STRONG&gt;" based on "&lt;STRONG&gt;device_type&lt;/STRONG&gt;" for this Quarter and last Quarter.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried below one for this Quarter but that is always showing count 0 instead of the actual value.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;ordered_on = {"&amp;gt;=$(=Date(Quarterstart(max(ordered_on)), 'MM/DD/YYYY'))&amp;lt;=$(=date(max(ordered_on), 'MM/DD/YYYY'))"}&amp;gt;}device_type), &lt;/STRONG&gt;where date format in my db looks like&lt;STRONG&gt; "06/01/2019 05:05:25 PM"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I see more examples using Quarter filters, but i don't want to use Quarter filters in my project. I need it to be applied in a column using Expressions.&amp;nbsp; I tried modify most of the expressions to my needs from the community and nothing worked. I am looking for the working Expressions&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please guide me to achieve this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:18:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-this-Quarter-and-Last-Quarter-using-Expressions/m-p/1591930#M443612</guid>
      <dc:creator>Usermonk</dc:creator>
      <dc:date>2024-11-16T03:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Find this Quarter and Last Quarter using Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Find-this-Quarter-and-Last-Quarter-using-Expressions/m-p/1591948#M443613</link>
      <description>&lt;P&gt;Hi Usermonk,&lt;/P&gt;&lt;P&gt;I would suggest you to do it in 2 steps:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;in script editor create a new field: Year(ordered_on)*4+ceil(month(ordered_on)/3) as QuarterID right in your table&lt;/LI&gt;&lt;LI&gt;in expression editor&lt;UL&gt;&lt;LI&gt;this Quarter:&amp;nbsp;=count({&amp;lt;QuarterID = {'$(=Year(Today())*4+ceil(month(today())/3))'}&amp;gt;}device_type)&lt;/LI&gt;&lt;LI&gt;last Quarter: =count({&amp;lt;QuarterID = {'$(=Year(Today())*4+ceil(month(today())/3)-1)'}&amp;gt;}device_type)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 08:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-this-Quarter-and-Last-Quarter-using-Expressions/m-p/1591948#M443613</guid>
      <dc:creator>mato32188</dc:creator>
      <dc:date>2019-06-14T08:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Find this Quarter and Last Quarter using Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Find-this-Quarter-and-Last-Quarter-using-Expressions/m-p/1591955#M443614</link>
      <description>&lt;P&gt;Or&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;in script editor create a new field: Year(ordered_on)*4+ceil(month(ordered_on)/3)-(Year(Today())*4+ceil(month(today())/3))as QuarterID right in your table&lt;/LI&gt;&lt;LI&gt;in expression editor&lt;UL&gt;&lt;LI&gt;this Quarter:&amp;nbsp;=count({&amp;lt;QuarterID = {0}&amp;gt;}device_type)&lt;/LI&gt;&lt;LI&gt;last Quarter: =count({&amp;lt;QuarterID = {'-1'}&amp;gt;}device_type)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 14 Jun 2019 08:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-this-Quarter-and-Last-Quarter-using-Expressions/m-p/1591955#M443614</guid>
      <dc:creator>mato32188</dc:creator>
      <dc:date>2019-06-14T08:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Find this Quarter and Last Quarter using Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Find-this-Quarter-and-Last-Quarter-using-Expressions/m-p/1592057#M443615</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share sample data...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil Paul&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 12:22:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-this-Quarter-and-Last-Quarter-using-Expressions/m-p/1592057#M443615</guid>
      <dc:creator>sunilpaul</dc:creator>
      <dc:date>2019-06-14T12:22:34Z</dc:date>
    </item>
  </channel>
</rss>

