<?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 Quarter Calculations in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Quarter-Calculations/m-p/1665073#M50036</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;As many other people, I am also new in the app development with Qlik Sense and I am currently experiencing an issue, concerning quarters and some calculations based on them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data is such that it is not possible to create a calendar in Qlik Sense and I need to use the Quarter field that I already have in my excel table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Quarter field is in the format - '2013Q1' , '2013Q2', '2013Q3','2013Q4',&amp;nbsp;'2014Q1', etc...&lt;/P&gt;&lt;P&gt;I have altered the script a bit in order to create another field (NumericQuarterField), based on the initial Quarter field that I have and I have removed the "Q" so that it can be a numeric field, so on the currently field I have this format -&amp;nbsp;'20131' , '20132', '20133','20134',&amp;nbsp;'20141', etc...&lt;/P&gt;&lt;P&gt;I have used that numeric field to do a couple of calculations, for example Year over Year growth:&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;NumericQuarterField={$(=max(NumericQuarterField))}&amp;gt;} Data) - sum({&amp;lt;NumericQuarterField={$(=max(NumericQuarterField)-10)}&amp;gt;} Data))/ sum({&amp;lt;NumericQuarterField={$(=max(NumericQuarterField)-10)}&amp;gt;} Data)&lt;/P&gt;&lt;P&gt;The calculation works pretty fine and shows correct results, but then the issue comes when I add a filter, based on the Quarter field (the one that has 'Q' in the name of the Quarter) because if you make a selection in the filter pane, for instance - "2013Q2", Qlik Sense doesn't actually recognize that this is "20132" and shows null values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I am pretty sure that the issue comes from the 'max' function I have added in order for the calculation to be performed, do you have any other suggestions on how I can alter the calculation expression so that it can work with the filter pane based on the Quarter field?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 19:19:00 GMT</pubDate>
    <dc:creator>ShellyG</dc:creator>
    <dc:date>2024-11-16T19:19:00Z</dc:date>
    <item>
      <title>Quarter Calculations</title>
      <link>https://community.qlik.com/t5/App-Development/Quarter-Calculations/m-p/1665073#M50036</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;As many other people, I am also new in the app development with Qlik Sense and I am currently experiencing an issue, concerning quarters and some calculations based on them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data is such that it is not possible to create a calendar in Qlik Sense and I need to use the Quarter field that I already have in my excel table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Quarter field is in the format - '2013Q1' , '2013Q2', '2013Q3','2013Q4',&amp;nbsp;'2014Q1', etc...&lt;/P&gt;&lt;P&gt;I have altered the script a bit in order to create another field (NumericQuarterField), based on the initial Quarter field that I have and I have removed the "Q" so that it can be a numeric field, so on the currently field I have this format -&amp;nbsp;'20131' , '20132', '20133','20134',&amp;nbsp;'20141', etc...&lt;/P&gt;&lt;P&gt;I have used that numeric field to do a couple of calculations, for example Year over Year growth:&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;NumericQuarterField={$(=max(NumericQuarterField))}&amp;gt;} Data) - sum({&amp;lt;NumericQuarterField={$(=max(NumericQuarterField)-10)}&amp;gt;} Data))/ sum({&amp;lt;NumericQuarterField={$(=max(NumericQuarterField)-10)}&amp;gt;} Data)&lt;/P&gt;&lt;P&gt;The calculation works pretty fine and shows correct results, but then the issue comes when I add a filter, based on the Quarter field (the one that has 'Q' in the name of the Quarter) because if you make a selection in the filter pane, for instance - "2013Q2", Qlik Sense doesn't actually recognize that this is "20132" and shows null values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I am pretty sure that the issue comes from the 'max' function I have added in order for the calculation to be performed, do you have any other suggestions on how I can alter the calculation expression so that it can work with the filter pane based on the Quarter field?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Quarter-Calculations/m-p/1665073#M50036</guid>
      <dc:creator>ShellyG</dc:creator>
      <dc:date>2024-11-16T19:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter Calculations</title>
      <link>https://community.qlik.com/t5/App-Development/Quarter-Calculations/m-p/1665153#M50043</link>
      <description>&lt;P&gt;can you share a sample data?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 18:01:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Quarter-Calculations/m-p/1665153#M50043</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-01-13T18:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter Calculations</title>
      <link>https://community.qlik.com/t5/App-Development/Quarter-Calculations/m-p/1665162#M50044</link>
      <description>&lt;P&gt;Try ...&lt;BR /&gt;&lt;SPAN&gt;(sum({&amp;lt;NumericQuarterField={$(=max(NumericQuarterField))}&lt;STRONG&gt;,Quarter=&lt;/STRONG&gt;&amp;gt;} Data) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum({&amp;lt;NumericQuarterField={$(=max(NumericQuarterField)-10)}&lt;STRONG&gt;,Quarter=&lt;/STRONG&gt;&amp;gt;} Data))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/ sum({&amp;lt;NumericQuarterField={$(=max(NumericQuarterField)-10)}&lt;STRONG&gt;,Quarter&lt;/STRONG&gt;=&amp;gt;} Data)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;GAbriel&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 18:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Quarter-Calculations/m-p/1665162#M50044</guid>
      <dc:creator>Gabriel_Araya</dc:creator>
      <dc:date>2020-01-13T18:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter Calculations</title>
      <link>https://community.qlik.com/t5/App-Development/Quarter-Calculations/m-p/1665271#M50058</link>
      <description>&lt;P&gt;Hello Gabriel,&lt;/P&gt;&lt;P&gt;Perfect! Thank you very much, it worked flawlessly!&lt;/P&gt;&lt;P&gt;Have a wonderful day!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 08:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Quarter-Calculations/m-p/1665271#M50058</guid>
      <dc:creator>ShellyG</dc:creator>
      <dc:date>2020-01-14T08:20:38Z</dc:date>
    </item>
  </channel>
</rss>

