<?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: Calculating Months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-Months/m-p/561214#M209476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's like the pivot table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Oct 2013 12:23:25 GMT</pubDate>
    <dc:creator>tmumaw</dc:creator>
    <dc:date>2013-10-15T12:23:25Z</dc:date>
    <item>
      <title>Calculating Months</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Months/m-p/561212#M209474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a QVW which only has GL Account, office and fiscal year on it.&amp;nbsp; The months then are broken down into different rows (HS01 for Jan with dollars, HS02 with dollars for Feb, etc.).&amp;nbsp; Any ideas how to associate these columns to months and have a calendar in my model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 12:01:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Months/m-p/561212#M209474</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2013-10-15T12:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Months</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Months/m-p/561213#M209475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; I don't understand, maybe with right 2 characters of the field cointaining HS01, HS02?&lt;/P&gt;&lt;P&gt;Your rows are &lt;/P&gt;&lt;P&gt;[GL Account] [office] [fiscal year] [HS type] [Measure]&lt;/P&gt;&lt;P&gt;or it is like a pivot &lt;/P&gt;&lt;P&gt;[GL Account] [office] [fiscal year] [HS01] [HS02]...[HS12]&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 12:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Months/m-p/561213#M209475</guid>
      <dc:creator>bbi_mba_76</dc:creator>
      <dc:date>2013-10-15T12:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Months</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Months/m-p/561214#M209476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's like the pivot table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 12:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Months/m-p/561214#M209476</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2013-10-15T12:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Months</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Months/m-p/561215#M209477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Thom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this script might help you. In order to simulate the presence of your QVD file, I have added a LOAD * Inline statement to reproduce a similar table as a first step. Following that, you shall notice a LOAD instruction that is preceded by the Crosstable() instruction. What this instruction does is take all column names and values after the first &lt;EM&gt;n&lt;/EM&gt; columns, and creates two new fields bearing the specified names (MonthNum and Sales). From this point, a new load statement is contructed on the previous result in order to extract the month number from the string HS##. The final instruction DROP Tables cleans up the environment, leaving only the Data table for you to analyse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QVD_Content:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;GL Account, Office, Fiscal Year, HS01, HS02, HS03, HS04, HS05, HS06, HS07, HS08, HS09, HS10, HS11, HS12&lt;/P&gt;&lt;P&gt;31135, 1A, 2013, 16.23, 12.11, 16.24, 164.56, 61.51, 1651.49, 148.94, 1498.41, 19.81, 948.19, 19.41, 919.91&lt;/P&gt;&lt;P&gt;14516, 1B, 2013, 91.19, 94.19, 16.23, 12.11, 16.24, 164.56, 61.51, 1651.49, 148.94, 1498.41, 19.81, 948.19&lt;/P&gt;&lt;P&gt;13585, 1A, 2013, 164.56, 61.51, 1651.49, 148.94, 1498.41, 19.81, 948.19, 19.41, 919.91, 91.19, 94.19, 16.23&lt;/P&gt;&lt;P&gt;13514, 1B, 2013, 12.11, 16.24, 164.56, 61.51, 1651.49, 148.94, 1498.41, 16.23, 12.11, 16.24, 164.56, 61.51];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data_tmp:&lt;/P&gt;&lt;P&gt;CrossTable(MonthNum, Sales, 3)&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;Resident QVD_Content;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD [GL Account], Office, [Fiscal Year], Right(MonthNum, 2) as Month, Sales&lt;/P&gt;&lt;P&gt;Resident Data_tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table QVD_Content, Data_tmp;&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;Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 12:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Months/m-p/561215#M209477</guid>
      <dc:creator>pgrenier</dc:creator>
      <dc:date>2013-10-15T12:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Months</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Months/m-p/561216#M209478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I would transpose the data so that HS01, HS02, etc are columns&lt;/LI&gt;&lt;LI&gt;Then I would crosstable load that so that we have a period field containing HS01, HS02, etc&lt;/LI&gt;&lt;LI&gt;I would use an inline load to create an association with months. Something like:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Periods:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD Period,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(MakeDate(Year(Today), Month)) As Month&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ Period, Month&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HS01, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HS02, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also Mapping LOAD the inline table before the crosstable load, and a Map Using like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Map Period Using PeriodMap;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 13:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Months/m-p/561216#M209478</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-10-15T13:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Months</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Months/m-p/561217#M209479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Philippe,&lt;/P&gt;&lt;P&gt;Thank you very much.&amp;nbsp; That was exactly what I was looking for.&lt;/P&gt;&lt;P&gt;Thom&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 13:27:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Months/m-p/561217#M209479</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2013-10-15T13:27:47Z</dc:date>
    </item>
  </channel>
</rss>

