<?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 Month + 1 IF Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Month-1-IF-Statement/m-p/220243#M73175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Note that QlikView is case sensitive, you your month name must be spelled the same way it is when you do Month(Date).&lt;/P&gt;&lt;P&gt;To get the next month, I'd rather use something like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=Month(AddMonths(Today(), 1))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Feb 2011 20:12:25 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-02-17T20:12:25Z</dc:date>
    <item>
      <title>Month + 1 IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Month-1-IF-Statement/m-p/220241#M73173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am trying to create a dimension for a 'Month+1'. I created a varable Month1 which is:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Date&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;(&lt;B&gt;NumMonth&lt;/B&gt;+1 &amp;amp;'/01/' &amp;amp; &lt;B&gt;Year&lt;/B&gt;, 'MMM') &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;This shows the correct date but when I add it to my dimension I get 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(distinct&lt;BR /&gt;if(([Company] = 'USA'&lt;BR /&gt;AND [Company] = BudgetCompany&lt;BR /&gt;AND [Year]= BudgetYear&lt;BR /&gt;AND BudgetMonth = $(Month1)),Budget))/1000&lt;/P&gt;&lt;P&gt;If I add the actual Month Name it works correctly&lt;/P&gt;&lt;P&gt;=sum(distinct&lt;BR /&gt;if(([Company] = 'USA'&lt;BR /&gt;AND [Company] = BudgetCompany&lt;BR /&gt;AND [Year]= BudgetYear&lt;BR /&gt;AND BudgetMonth = 'Mar' ,Budget))/1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 14:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-1-IF-Statement/m-p/220241#M73173</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-17T14:47:22Z</dc:date>
    </item>
    <item>
      <title>Month + 1 IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Month-1-IF-Statement/m-p/220242#M73174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to calculate the current month plus one, ie the next month, you can use the expression&lt;BR /&gt;&lt;BR /&gt;Month (Today ()) +1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;= sum (distinct&lt;BR /&gt;if (([Company] = 'USA'&lt;BR /&gt;AND [Company] = BudgetCompany&lt;BR /&gt;AND [Year] = BudgetYear&lt;BR /&gt;AND BudgetMonth = &lt;B&gt;Month&lt;/B&gt; &lt;B&gt;(&lt;/B&gt;Today ()) +1, Budget)) / 1000&lt;BR /&gt;&lt;BR /&gt;I hope you serve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 19:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-1-IF-Statement/m-p/220242#M73174</guid>
      <dc:creator />
      <dc:date>2011-02-17T19:31:07Z</dc:date>
    </item>
    <item>
      <title>Month + 1 IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Month-1-IF-Statement/m-p/220243#M73175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Note that QlikView is case sensitive, you your month name must be spelled the same way it is when you do Month(Date).&lt;/P&gt;&lt;P&gt;To get the next month, I'd rather use something like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=Month(AddMonths(Today(), 1))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 20:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-1-IF-Statement/m-p/220243#M73175</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-17T20:12:25Z</dc:date>
    </item>
  </channel>
</rss>

