<?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 IF STATEMENT question month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-STATEMENT-question-month/m-p/1562022#M742435</link>
    <description>&lt;P&gt;Hi experts:&lt;/P&gt;&lt;P&gt;I want to do this:&lt;/P&gt;&lt;P&gt;IF Month is Jan then blah blah,&amp;nbsp;&lt;/P&gt;&lt;P&gt;if Month is&amp;nbsp; Jan + Feb then blah blah.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I select Jan it works, but when I select Jan + Feb it doesnt work. Whyyyyy??? and how can I make it work. I even used greater than less than and still doesnt work.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if(MonthNum=1,&lt;BR /&gt;(if([Region]='Atlantic',0.0022,&lt;BR /&gt;if([Region]='Ontario Sw',-0.0882,&lt;BR /&gt;if([Region]='Ontario Ce',-0.0882,&lt;BR /&gt;if([Region]='Quebec',0.0913,&lt;BR /&gt;if([Region]='West',0.0324,0)))))),&lt;BR /&gt;if(Monthnum=1 AND MonthNum=2,&lt;BR /&gt;(if([Region]='Atlantic',-0.0069,&lt;BR /&gt;if([Region]='Ontario Sw',-0.017526,&lt;BR /&gt;if([Region]='Ontario Ce',-0.017526,&lt;BR /&gt;if([Region]='Quebec',-0.013556,&lt;BR /&gt;if([Region]='West',0.016357,0))))))&lt;BR /&gt;,0))&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>jadams123</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>IF STATEMENT question month</title>
      <link>https://community.qlik.com/t5/QlikView/IF-STATEMENT-question-month/m-p/1562022#M742435</link>
      <description>&lt;P&gt;Hi experts:&lt;/P&gt;&lt;P&gt;I want to do this:&lt;/P&gt;&lt;P&gt;IF Month is Jan then blah blah,&amp;nbsp;&lt;/P&gt;&lt;P&gt;if Month is&amp;nbsp; Jan + Feb then blah blah.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I select Jan it works, but when I select Jan + Feb it doesnt work. Whyyyyy??? and how can I make it work. I even used greater than less than and still doesnt work.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if(MonthNum=1,&lt;BR /&gt;(if([Region]='Atlantic',0.0022,&lt;BR /&gt;if([Region]='Ontario Sw',-0.0882,&lt;BR /&gt;if([Region]='Ontario Ce',-0.0882,&lt;BR /&gt;if([Region]='Quebec',0.0913,&lt;BR /&gt;if([Region]='West',0.0324,0)))))),&lt;BR /&gt;if(Monthnum=1 AND MonthNum=2,&lt;BR /&gt;(if([Region]='Atlantic',-0.0069,&lt;BR /&gt;if([Region]='Ontario Sw',-0.017526,&lt;BR /&gt;if([Region]='Ontario Ce',-0.017526,&lt;BR /&gt;if([Region]='Quebec',-0.013556,&lt;BR /&gt;if([Region]='West',0.016357,0))))))&lt;BR /&gt;,0))&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-STATEMENT-question-month/m-p/1562022#M742435</guid>
      <dc:creator>jadams123</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: IF STATEMENT question month</title>
      <link>https://community.qlik.com/t5/QlikView/IF-STATEMENT-question-month/m-p/1562049#M742436</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Try one of these options:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;=if(MonthNum=1 OR MonthNum=2, ...etc&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;=if(Match(MonthNum,'1', '2'), ... etc)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 27 Mar 2019 17:12:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-STATEMENT-question-month/m-p/1562049#M742436</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2019-03-27T17:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: IF STATEMENT question month</title>
      <link>https://community.qlik.com/t5/QlikView/IF-STATEMENT-question-month/m-p/1562050#M742437</link>
      <description>&lt;P&gt;Hi, when asking for a firels, if that field has more than one possible values it will return null(). You need an aggregation funcion that returns one of that many values, ie:&lt;BR /&gt;if(Min(MonthNum)=1 AND Max(MonthNum)=2,&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 17:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-STATEMENT-question-month/m-p/1562050#M742437</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-03-27T17:14:06Z</dc:date>
    </item>
  </channel>
</rss>

