<?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: Quarter need to create only one months completed in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Quarter-need-to-create-only-one-months-completed/m-p/730082#M1068692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this in a textbox...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;now&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(1))&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;QuarterEnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;now&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(1))), 'Quarter did not end','Quarter ended') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;you may be able use this in a where clause in your load statement depending on how your fields are structured if you want to use this in a script or in your calculated dimension if you want to do it in a chart. it is not entirely clear from your post what exactly you want to achieve and how your original table/fields are structured.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Aug 2014 14:13:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-08-22T14:13:54Z</dc:date>
    <item>
      <title>Quarter need to create only one months completed</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-need-to-create-only-one-months-completed/m-p/730081#M1068690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need small help ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quarter,Month&lt;/P&gt;&lt;P&gt;Q1,Apr&lt;/P&gt;&lt;P&gt;Q1,May&lt;/P&gt;&lt;P&gt;Q1,Jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q2,Jul&lt;/P&gt;&lt;P&gt;Q2,Aug&lt;/P&gt;&lt;P&gt;Q2,Sep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q3,Oct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, If you see above examples Q1,Q2 Fine because it completes its months, In case of&amp;nbsp; Q3, no need because months are incomplete &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to achieve this in script&amp;nbsp;&amp;nbsp;&amp;nbsp; thought Id or any suggestions please &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 13:42:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-need-to-create-only-one-months-completed/m-p/730081#M1068690</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2014-08-22T13:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter need to create only one months completed</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-need-to-create-only-one-months-completed/m-p/730082#M1068692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this in a textbox...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;now&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(1))&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;QuarterEnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;now&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(1))), 'Quarter did not end','Quarter ended') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;you may be able use this in a where clause in your load statement depending on how your fields are structured if you want to use this in a script or in your calculated dimension if you want to do it in a chart. it is not entirely clear from your post what exactly you want to achieve and how your original table/fields are structured.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 14:13:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-need-to-create-only-one-months-completed/m-p/730082#M1068692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-22T14:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter need to create only one months completed</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-need-to-create-only-one-months-completed/m-p/730083#M1068693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you have numeric value for month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxMonthNum:&lt;/P&gt;&lt;P&gt;load max(Monthnum) as LastMonthNum&lt;/P&gt;&lt;P&gt;resident WhereEverMonthRemains&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vLastMonthNum = peek('MaxMonthNum',0,'LastmonthNum)&lt;/P&gt;&lt;P&gt;if (vLastQuarterNum=div(vLastMonthNum,3);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;Month,&lt;/P&gt;&lt;P&gt;if (Monthnum&amp;lt;=vLastQuarterNum, 'Q' &amp;amp; ceil(MonthNum,3),null()) as Quarter &lt;/P&gt;&lt;P&gt;resident whatssover&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result should be&lt;/P&gt;&lt;P&gt;Q1, Jan&lt;/P&gt;&lt;P&gt;Q1, Feb&lt;/P&gt;&lt;P&gt;Q1, Mar&lt;/P&gt;&lt;P&gt;Q2, Apr&lt;/P&gt;&lt;P&gt;Q2, May&lt;/P&gt;&lt;P&gt;Q2, Jun&lt;/P&gt;&lt;P&gt; --, Jul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when last Month is july&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The quarter will only be feilled when it is completed&lt;/P&gt;&lt;P&gt;-&amp;gt; your calendar seems to be a Business calendar, you have to adjust this aspect&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 14:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-need-to-create-only-one-months-completed/m-p/730083#M1068693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-22T14:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter need to create only one months completed</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-need-to-create-only-one-months-completed/m-p/730084#M1068694</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;one solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_130448_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/65032_QlikCommunity_Thread_130448_Pic1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14087448019192253" jivemacro_uid="_14087448019192253"&gt;
&lt;P&gt;tabCalendar:&lt;/P&gt;
&lt;P&gt;LOAD Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week(Date) as Week,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName(Date) as Month,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(Date) as Year;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;LOAD Date(Date#('01/01/2014','MM/DD/YYYY')+IterNo()-1) as Date&lt;/P&gt;
&lt;P&gt;AutoGenerate 1&lt;/P&gt;
&lt;P&gt;While Date#('01/01/2014','MM/DD/YYYY')+IterNo()-1 &amp;lt;= Today();&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabTemp:&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp; QuarterName(Date) as QuarterName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Month&lt;/P&gt;
&lt;P&gt;Resident tabCalendar;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join (tabTemp)&lt;/P&gt;
&lt;P&gt;LOAD QuarterName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(DISTINCT Month) as MonthCount&lt;/P&gt;
&lt;P&gt;Resident tabTemp&lt;/P&gt;
&lt;P&gt;Group By QuarterName;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join (tabCalendar)&lt;/P&gt;
&lt;P&gt;LOAD Month,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; QuarterName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual('Q'&amp;amp;(Month(QuarterName)+2)/3, (Month(QuarterName)+2)/3) as Quarter&lt;/P&gt;
&lt;P&gt;Resident tabTemp&lt;/P&gt;
&lt;P&gt;Where MonthCount = 3;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table tabTemp;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 22:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-need-to-create-only-one-months-completed/m-p/730084#M1068694</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-08-22T22:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter need to create only one months completed</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-need-to-create-only-one-months-completed/m-p/730085#M1068695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This not working asap &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2014 06:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-need-to-create-only-one-months-completed/m-p/730085#M1068695</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2014-08-23T06:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter need to create only one months completed</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-need-to-create-only-one-months-completed/m-p/730086#M1068696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MAcro,&lt;/P&gt;&lt;P&gt;Any alternative like create&amp;nbsp; to YearQuater ID&amp;nbsp; that to autogenerate when month of quarter complete if quarter not completed then Id is not required .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2014 08:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-need-to-create-only-one-months-completed/m-p/730086#M1068696</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2014-08-23T08:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter need to create only one months completed</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-need-to-create-only-one-months-completed/m-p/730087#M1068697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, I didn't get this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2014 09:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-need-to-create-only-one-months-completed/m-p/730087#M1068697</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-08-23T09:30:27Z</dc:date>
    </item>
  </channel>
</rss>

