<?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 Selecting a quarter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938170#M467738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - I've read so many posts about setting up a field for the Quarter, and have tried to implement a few that have not worked as they seem to not sync with my data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking to setup a dynamic field for the quarter.&amp;nbsp; I've already setup year and month based on a date (PY_DT) in my database, but I cannot figure out how to setup the Quarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what the field looks like (how I want it).&amp;nbsp; I just cannot seem to set it up properly to work with my tables/charts.&amp;nbsp; New to Qlikview and trying to keep it simple.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Quarterfield.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102682_Quarterfield.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Oct 2015 14:15:31 GMT</pubDate>
    <dc:creator>gfisch13</dc:creator>
    <dc:date>2015-10-21T14:15:31Z</dc:date>
    <item>
      <title>Selecting a quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938170#M467738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - I've read so many posts about setting up a field for the Quarter, and have tried to implement a few that have not worked as they seem to not sync with my data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking to setup a dynamic field for the quarter.&amp;nbsp; I've already setup year and month based on a date (PY_DT) in my database, but I cannot figure out how to setup the Quarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what the field looks like (how I want it).&amp;nbsp; I just cannot seem to set it up properly to work with my tables/charts.&amp;nbsp; New to Qlikview and trying to keep it simple.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Quarterfield.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102682_Quarterfield.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 14:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938170#M467738</guid>
      <dc:creator>gfisch13</dc:creator>
      <dc:date>2015-10-21T14:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938171#M467739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share your script for where you are trying to create this Quarter Field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 15:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938171#M467739</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-21T15:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938172#M467740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First everything begin in your data model, look if you have a Quarter field well defined, that it means all the relations with this field id ready. Last it have to work in you QV model as is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Table_Sales:&lt;/P&gt;&lt;P&gt;Load Cust,&lt;/P&gt;&lt;P&gt;DateSales,&lt;/P&gt;&lt;P&gt;Year(DateSales) as Y_Sales,&lt;/P&gt;&lt;P&gt;'Q'&amp;amp;Ceil(Month(DateSales)/3) as Q_Sales,&lt;/P&gt;&lt;P&gt;Month(DateSales) as M_Sales,&lt;/P&gt;&lt;P&gt;Amount&lt;/P&gt;&lt;P&gt;From Sales...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case your date field is attached directly to your fact table data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 15:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938172#M467740</guid>
      <dc:creator>jolivares</dc:creator>
      <dc:date>2015-10-21T15:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938173#M467741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The quarter field is not well defined at all.&amp;nbsp;&amp;nbsp; Using my date format I was able to easily create the expression for Year and Month.&amp;nbsp; Date format is MM/DD/YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your example above, does Q_Sales become the quarterly values that I'm looking for, or is that a variable holding those values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 15:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938173#M467741</guid>
      <dc:creator>gfisch13</dc:creator>
      <dc:date>2015-10-21T15:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938174#M467742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi George,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do as Juan have told you. The field Q_Sales will be linked to you Date field, ence linked to your Year and Month field. Have fun and good job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 16:09:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938174#M467742</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2015-10-21T16:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938175#M467743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is my load script.&amp;nbsp; I'm not understanding how to adapt the lines of code you posted with it.&amp;nbsp; Does this become a separate tab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field PY_DT is my payment date that I'm going to adapt and it is in the last table that loads (T_PY_DTL_PRST).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm very new to Qlikview, sorry for the confusion.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='$#,##0.00;($#,##0.00)';&lt;/P&gt;&lt;P&gt;SET TimeFormat='h:mm:ss TT';&lt;/P&gt;&lt;P&gt;SET DateFormat='M/D/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;SET Quarter='Q1;Q2;Q3;Q4';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB CONNECT TO [Provider=MSDASQL.1;Persist Security Info=False;Data Source=DMBA_SIU_DEV;Extended Properties="DSN=DMBA_SIU_DEV;Description=DMBA_SIU_DEV;UID=;Trusted_Connection=Yes;APP=QlikView;WSID=US1900050;DATABASE=DMBA_SIU";Initial Catalog=DMBA_SIU];&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM "DMBA_SIU".dbo."T_EXP_PRST";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB CONNECT TO [Provider=MSDASQL.1;Persist Security Info=False;Data Source=DMBA_SIU_DEV;Extended Properties="DSN=DMBA_SIU_DEV;Description=DMBA_SIU_DEV;UID=;Trusted_Connection=Yes;APP=QlikView;WSID=US1900050;DATABASE=DMBA_SIU";Initial Catalog=DMBA_SIU];&lt;/P&gt;&lt;P&gt;SQL SELECT * &lt;/P&gt;&lt;P&gt;FROM "DMBA_SIU".dbo."T_EMPE_STG"&lt;/P&gt;&lt;P&gt;WHERE CO_CD in ('MLI','MLG','MPC');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB CONNECT TO [Provider=MSDASQL.1;Persist Security Info=False;Data Source=DMBA_SIU_DEV;Extended Properties="DSN=DMBA_SIU_DEV;Description=DMBA_SIU_DEV;UID=;Trusted_Connection=Yes;APP=QlikView;WSID=US1900050;DATABASE=DMBA_SIU";Initial Catalog=DMBA_SIU];&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM "DMBA_SIU".dbo."T_PO_DTL_PRST";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB CONNECT TO [Provider=MSDASQL.1;Persist Security Info=False;Data Source=DMBA_SIU_DEV;Extended Properties="DSN=DMBA_SIU_DEV;Description=DMBA_SIU_DEV;UID=;Trusted_Connection=Yes;APP=QlikView;WSID=US1900050;DATABASE=DMBA_SIU";Initial Catalog=DMBA_SIU];&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM "DMBA_SIU".dbo."T_PY_DTL_PRST";&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Juan Olivares wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;First everything begin in your data model, look if you have a Quarter field well defined, that it means all the relations with this field id ready. Last it have to work in you QV model as is.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;Table_Sales:&lt;/P&gt;
&lt;P&gt;Load Cust,&lt;/P&gt;
&lt;P&gt;DateSales,&lt;/P&gt;
&lt;P&gt;Year(DateSales) as Y_Sales,&lt;/P&gt;
&lt;P&gt;'Q'&amp;amp;Ceil(Month(DateSales)/3) as Q_Sales,&lt;/P&gt;
&lt;P&gt;Month(DateSales) as M_Sales,&lt;/P&gt;
&lt;P&gt;Amount&lt;/P&gt;
&lt;P&gt;From Sales...&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;In this case your date field is attached directly to your fact table data.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 16:45:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938175#M467743</guid>
      <dc:creator>gfisch13</dc:creator>
      <dc:date>2015-10-21T16:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938176#M467744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny - please see my latest reply.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 16:46:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938176#M467744</guid>
      <dc:creator>gfisch13</dc:creator>
      <dc:date>2015-10-21T16:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938177#M467745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In what table you have the date field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 16:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938177#M467745</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2015-10-21T16:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938178#M467746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;"T_PY_DTL_PRST"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 16:49:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938178#M467746</guid>
      <dc:creator>gfisch13</dc:creator>
      <dc:date>2015-10-21T16:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938179#M467747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If so do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;T_PY_DTL_PRST_Final:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LOAD *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'Q'&amp;amp;Ceil(Month(DateSales)/3) as Quarters&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Resident &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;T_PY_DTL_PRST;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DROP Table &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;T_PY_DTL_PRST;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;And please comment or delete this: &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;[SET Quarter='Q1;Q2;Q3;Q4';]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;NOTE: change DateSales to your Date Field!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 16:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938179#M467747</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2015-10-21T16:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938180#M467748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you - this worked, but jsut for my education........my creating &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;T_PY_DTL_PRST_Final, did the QUARTERS field now become part of that table, negating the need for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;T_PY_DTL_PRST??&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Appreciate the help!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 17:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-quarter/m-p/938180#M467748</guid>
      <dc:creator>gfisch13</dc:creator>
      <dc:date>2015-10-21T17:03:23Z</dc:date>
    </item>
  </channel>
</rss>

