<?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 How to get Quarterly data using measure expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-get-Quarterly-data-using-measure-expression/m-p/1731271#M55788</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a filter called Fyear, which contains data from April 2018 to June 2020 and&amp;nbsp;financial year starts from April.&lt;/P&gt;&lt;P&gt;In a bar chart, I need to display quarterly data , I am using quarter expression as below:-&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[Date]={"&amp;gt;$(=QuarterStart(Max([Date]),-3)))&amp;lt;=$(=Quarterend(addmonths(Max([Date]),-9)))"}&amp;gt;}(score)) ( Gives 4,5,6 Months)&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[Date]={"&amp;gt;$(=QuarterStart(Max([Date]),-2)))&amp;lt;=$(=Quarterend(addmonths(Max([Date]),-6)))"}&amp;gt;}(score)) (Gives 7,8,9 Months)&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[Date]={"&amp;gt;$(=QuarterStart(Max([Date]),-1)))&amp;lt;=$(=Quarterend(addmonths(Max([Date]),-3)))"}&amp;gt;}(score)) (Gives 10,11,12 Months)&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[Date]={"&amp;gt;$(=QuarterStart(Max([Date]),0,4)))&amp;lt;=$(=Quarterend(addmonths(Max([Date]),0)))"}&amp;gt;}(score)) (Gives 1,2,3 Months)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Above expression is working fine for FY18,FY19, but for FY20, I am facing issues as FY 20 is not yet closed. for Q1 I am getting (10,11,12) months data of 2019, as it;s subtracting from the available data set.&lt;/P&gt;&lt;P&gt;for Q1 , it should dispaly (4,5,6) months data of 2020, as for FY 20 I have data available till June month.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bar chart.png" style="width: 655px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38157iC5CC19133B5BFA7D/image-dimensions/655x368?v=v2" width="655" height="368" role="button" title="Bar chart.png" alt="Bar chart.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:18:15 GMT</pubDate>
    <dc:creator>abc_18</dc:creator>
    <dc:date>2024-11-16T18:18:15Z</dc:date>
    <item>
      <title>How to get Quarterly data using measure expression</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-get-Quarterly-data-using-measure-expression/m-p/1731271#M55788</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a filter called Fyear, which contains data from April 2018 to June 2020 and&amp;nbsp;financial year starts from April.&lt;/P&gt;&lt;P&gt;In a bar chart, I need to display quarterly data , I am using quarter expression as below:-&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[Date]={"&amp;gt;$(=QuarterStart(Max([Date]),-3)))&amp;lt;=$(=Quarterend(addmonths(Max([Date]),-9)))"}&amp;gt;}(score)) ( Gives 4,5,6 Months)&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[Date]={"&amp;gt;$(=QuarterStart(Max([Date]),-2)))&amp;lt;=$(=Quarterend(addmonths(Max([Date]),-6)))"}&amp;gt;}(score)) (Gives 7,8,9 Months)&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[Date]={"&amp;gt;$(=QuarterStart(Max([Date]),-1)))&amp;lt;=$(=Quarterend(addmonths(Max([Date]),-3)))"}&amp;gt;}(score)) (Gives 10,11,12 Months)&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[Date]={"&amp;gt;$(=QuarterStart(Max([Date]),0,4)))&amp;lt;=$(=Quarterend(addmonths(Max([Date]),0)))"}&amp;gt;}(score)) (Gives 1,2,3 Months)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Above expression is working fine for FY18,FY19, but for FY20, I am facing issues as FY 20 is not yet closed. for Q1 I am getting (10,11,12) months data of 2019, as it;s subtracting from the available data set.&lt;/P&gt;&lt;P&gt;for Q1 , it should dispaly (4,5,6) months data of 2020, as for FY 20 I have data available till June month.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bar chart.png" style="width: 655px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38157iC5CC19133B5BFA7D/image-dimensions/655x368?v=v2" width="655" height="368" role="button" title="Bar chart.png" alt="Bar chart.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-get-Quarterly-data-using-measure-expression/m-p/1731271#M55788</guid>
      <dc:creator>abc_18</dc:creator>
      <dc:date>2024-11-16T18:18:15Z</dc:date>
    </item>
  </channel>
</rss>

