<?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: Dynamic Month Columns in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-Month-Columns/m-p/378443#M1169935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have managed to resolve my first issue now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As regards showing the month name, monthname function does not work as I am using fiscal month. So the fiscal month field has the values 1 to 12 but 1 is April not January. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is another field in the data called Month Name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I basically want to show the Month Name field based on the fiscal month condition. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Aug 2012 09:03:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-17T09:03:05Z</dc:date>
    <item>
      <title>Dynamic Month Columns</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Month-Columns/m-p/378441#M1169933</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;I have a table with columns for 3 fiscal months from the maximum selected fiscal month. &lt;/P&gt;&lt;P&gt;So for example if I chose just July it would show Apr, Jun &amp;amp; Jul data or if I selected a full financial year it would show the last 3 months (jan, feb, mar). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 issues:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a)&amp;nbsp; I am currently doing this using the logic of&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(FiscalMonth) for the most recent month, max(FiscalMonth)-1 for the previous month etc. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This will however not work if I am in the first month of a fiscal year. If I select Apr I would still want to see the last 2 months of the previous fiscal year. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b)&amp;nbsp; I can only get the label for each of these columns to show the fiscal month number and I want the month name. I'm sure this is quite simple but just can't figure it out. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data also includes calendar month and year but no date field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help? I am still very new to Qlikview so any help would be much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 10:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Month-Columns/m-p/378441#M1169933</guid>
      <dc:creator />
      <dc:date>2012-08-16T10:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Month Columns</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Month-Columns/m-p/378442#M1169934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a) It's not exactly clear from your post if FiscalMonth is only months (like Jan, Feb, Mar, etc.) or combination of month and year (e.g. Apr-2012). You need to use combination, otherwise you won't be able to cross years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using function AddMonths. E.g. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt; FiscalMonth={' $(=AddMonths(max(FiscalMonth), -2) )'} &amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) Have you tried &lt;STRONG&gt;MonthName&lt;/STRONG&gt; function?&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 14:57:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Month-Columns/m-p/378442#M1169934</guid>
      <dc:creator />
      <dc:date>2012-08-16T14:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Month Columns</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Month-Columns/m-p/378443#M1169935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have managed to resolve my first issue now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As regards showing the month name, monthname function does not work as I am using fiscal month. So the fiscal month field has the values 1 to 12 but 1 is April not January. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is another field in the data called Month Name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I basically want to show the Month Name field based on the fiscal month condition. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 09:03:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Month-Columns/m-p/378443#M1169935</guid>
      <dc:creator />
      <dc:date>2012-08-17T09:03:05Z</dc:date>
    </item>
  </channel>
</rss>

