<?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(and statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-and-statement/m-p/1174540#M630461</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really need help with converting if statement on excel to Qlikview! The formula depicts the logic that if the date falls within 1st to 19th then it should be counted as of the same month, and if the date starts after the 20th then it should be counted as of the next month. Can someone give me pointers on how to achieve this on Qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;formula on excel:&lt;/P&gt;&lt;P&gt;=IF(AND(DAY(C11)&amp;gt;=1,DAY(C11)&amp;lt;20),DATE(YEAR(C11),MONTH(C11),1),DATE(YEAR(C11),MONTH(C11)+1,1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;formula on qlikeview, not working.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DAY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Opp Est Eng Start Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;=1,DAY(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Opp Est Eng Start Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;lt;20),DATE(YEAR(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Opp Est Eng Start Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),MONTH(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Opp Est Eng Start Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),1),DATE(YEAR(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Opp Est Eng Start Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),MONTH(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Opp Est Eng Start Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)+1,1)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2016 22:07:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-28T22:07:25Z</dc:date>
    <item>
      <title>if(and statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-and-statement/m-p/1174540#M630461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really need help with converting if statement on excel to Qlikview! The formula depicts the logic that if the date falls within 1st to 19th then it should be counted as of the same month, and if the date starts after the 20th then it should be counted as of the next month. Can someone give me pointers on how to achieve this on Qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;formula on excel:&lt;/P&gt;&lt;P&gt;=IF(AND(DAY(C11)&amp;gt;=1,DAY(C11)&amp;lt;20),DATE(YEAR(C11),MONTH(C11),1),DATE(YEAR(C11),MONTH(C11)+1,1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;formula on qlikeview, not working.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DAY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Opp Est Eng Start Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;=1,DAY(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Opp Est Eng Start Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;lt;20),DATE(YEAR(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Opp Est Eng Start Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),MONTH(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Opp Est Eng Start Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),1),DATE(YEAR(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Opp Est Eng Start Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),MONTH(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Opp Est Eng Start Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)+1,1)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 22:07:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-and-statement/m-p/1174540#M630461</guid>
      <dc:creator />
      <dc:date>2016-07-28T22:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: if(and statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-and-statement/m-p/1174541#M630462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this ?&lt;/P&gt;&lt;P&gt;= =IF(DAY([Opp Est Eng Start Date])&amp;gt;=1 AND DAY([Opp Est Eng Start Date])&amp;lt;20, Month([Opp Est Eng Start Date]),MONTH([Opp Est Eng Start Date])+1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 22:39:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-and-statement/m-p/1174541#M630462</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-07-28T22:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: if(and statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-and-statement/m-p/1174542#M630463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you need test for &amp;gt;1, just &amp;lt; 20. Next months date is AddMonths(). So:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;IF(DAY([Opp Est Eng Start Date])&amp;lt;20&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;, MonthStart([Opp Est Eng Start Date])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;,MonthStart(AddMonths([Opp Est Eng Start Date],1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 23:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-and-statement/m-p/1174542#M630463</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-07-28T23:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: if(and statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-and-statement/m-p/1174543#M630464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is correct. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 03:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-and-statement/m-p/1174543#M630464</guid>
      <dc:creator />
      <dc:date>2016-07-29T03:46:46Z</dc:date>
    </item>
  </channel>
</rss>

