<?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: If Statement for Prior Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Statement-for-Prior-Month/m-p/1740337#M455428</link>
    <description>&lt;P&gt;&lt;SPAN&gt;The if statement at the bottom should be typo on my part.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(day(today())&amp;lt;=5&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Sep 2020 15:35:05 GMT</pubDate>
    <dc:creator>JustinRamsey</dc:creator>
    <dc:date>2020-09-01T15:35:05Z</dc:date>
    <item>
      <title>If Statement for Prior Month</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-for-Prior-Month/m-p/1740336#M455427</link>
      <description>&lt;P&gt;&amp;nbsp;I have a formula in a chart&amp;nbsp;SUM({&amp;lt;Sales={Sales}&amp;gt;} if (InMonthToDate (OrderDate, Today(), 0), ValueEa)) that shows the cumulative sales of the current month. What I have been requested for is for the first 5 days of the month that value shows the prior month due to month end closing stuff. I'm stuck on this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am assuming I need the if statement if(day(OrderDate)&amp;lt;=5,&amp;nbsp; NEWFORMULA, OLDFORMULA) but I am unsure of how to write the NEWFORMULA for the prior months sales. Any help would be appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 15:34:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-for-Prior-Month/m-p/1740336#M455427</guid>
      <dc:creator>JustinRamsey</dc:creator>
      <dc:date>2020-09-01T15:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement for Prior Month</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-for-Prior-Month/m-p/1740337#M455428</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The if statement at the bottom should be typo on my part.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(day(today())&amp;lt;=5&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 15:35:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-for-Prior-Month/m-p/1740337#M455428</guid>
      <dc:creator>JustinRamsey</dc:creator>
      <dc:date>2020-09-01T15:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement for Prior Month</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-for-Prior-Month/m-p/1740347#M455429</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/64434"&gt;@JustinRamsey&lt;/a&gt;&amp;nbsp; change your new formula to below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SUM({&amp;lt;Sales={Sales}&amp;gt;} if (InMonthToDate (OrderDate, Today(),&lt;STRONG&gt; -1&lt;/STRONG&gt;), ValueEa))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 15:53:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-for-Prior-Month/m-p/1740347#M455429</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-01T15:53:41Z</dc:date>
    </item>
  </channel>
</rss>

