<?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 Variable Syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-Syntax/m-p/260478#M98268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to create two variables. The first is the start month of my fiscal year and the second my fiscal year start month +12. I currently have the two below variables but the syntax is incorrect.&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=date(monthstart(04-2011),'MM-YYYY') (This is titled vStartMonth)&lt;/P&gt;&lt;P&gt;=date(addmonths(vStartMonth,12),'MM-YYYY') (This is titled vFiscalYear)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jun 2011 12:19:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-02T12:19:10Z</dc:date>
    <item>
      <title>Variable Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Syntax/m-p/260478#M98268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to create two variables. The first is the start month of my fiscal year and the second my fiscal year start month +12. I currently have the two below variables but the syntax is incorrect.&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=date(monthstart(04-2011),'MM-YYYY') (This is titled vStartMonth)&lt;/P&gt;&lt;P&gt;=date(addmonths(vStartMonth,12),'MM-YYYY') (This is titled vFiscalYear)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 12:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Syntax/m-p/260478#M98268</guid>
      <dc:creator />
      <dc:date>2011-06-02T12:19:10Z</dc:date>
    </item>
    <item>
      <title>Variable Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Syntax/m-p/260479#M98269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you can write the first like this: &lt;/P&gt;&lt;P&gt;date(monthstart(date#('04-2011','MM-YYYY'))) (without the = on the variable definition)&lt;/P&gt;&lt;P&gt;date(addmonths(($(=vStartMonth)),12),'MM-YYYY') (for vFiscalYear, also without the &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you need to include it in a text box, you can call it like this: &lt;/P&gt;&lt;P&gt;=$(=vFiscalYear)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 12:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Syntax/m-p/260479#M98269</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-06-02T12:29:22Z</dc:date>
    </item>
  </channel>
</rss>

