<?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 derive quarter in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-derive-quarter/m-p/13453#M954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have field myear which contains month number and year can you please help me how to derive quarter,week number with year,Half Year H1,H2 and Year.. the values in&amp;nbsp; myear are 1-2017,2-2017,3-2017......8-2018,9-2018... From this I need to derive&lt;/P&gt;&lt;P&gt; 4 fields Quarter,FY week, FY Year, FY half Year.&lt;/P&gt;&lt;P&gt;Note: my year starts with November instead of January.&lt;/P&gt;&lt;P&gt;Quarter --&amp;nbsp; Q1-17,Q2-17,Q3-17....Q3-18,Q4-18&lt;/P&gt;&lt;P&gt;FyWeek-- wk1-17,wk2-17,...wk50-18&lt;/P&gt;&lt;P&gt;Fy year--- FY17, FY18&lt;/P&gt;&lt;P&gt;Fy Half Year--- H1-17,H2-17...H2-18&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Apr 2018 05:20:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-25T05:20:32Z</dc:date>
    <item>
      <title>How to derive quarter</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-derive-quarter/m-p/13453#M954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have field myear which contains month number and year can you please help me how to derive quarter,week number with year,Half Year H1,H2 and Year.. the values in&amp;nbsp; myear are 1-2017,2-2017,3-2017......8-2018,9-2018... From this I need to derive&lt;/P&gt;&lt;P&gt; 4 fields Quarter,FY week, FY Year, FY half Year.&lt;/P&gt;&lt;P&gt;Note: my year starts with November instead of January.&lt;/P&gt;&lt;P&gt;Quarter --&amp;nbsp; Q1-17,Q2-17,Q3-17....Q3-18,Q4-18&lt;/P&gt;&lt;P&gt;FyWeek-- wk1-17,wk2-17,...wk50-18&lt;/P&gt;&lt;P&gt;Fy year--- FY17, FY18&lt;/P&gt;&lt;P&gt;Fy Half Year--- H1-17,H2-17...H2-18&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 05:20:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-derive-quarter/m-p/13453#M954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-25T05:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to derive quarter</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-derive-quarter/m-p/13454#M955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;To get the month and year use:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;subfield(myear, '-',1) for monthnr&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;subfield(myear, '-',2) for yearnr&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The quarter can be done by deviding the months by 4 and do a ceil so: ceil(year/4)&lt;/P&gt;&lt;P&gt;for the half year you can get it by combining the first and last 2 quarters. Can be done a lot of other ways but this is one of them.&lt;/P&gt;&lt;P&gt;If you only have the month and year it will be impossible to determine which week it is. You can only get a week range but you don't say you want that and it would be pretty useless I guess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess I covered it all not sure. its early&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 06:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-derive-quarter/m-p/13454#M955</guid>
      <dc:creator>bramkn</dc:creator>
      <dc:date>2018-04-25T06:12:57Z</dc:date>
    </item>
  </channel>
</rss>

