<?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: Sum Sales Between Two Dates in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sum-Sales-Between-Two-Dates/m-p/1905008#M74618</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/101018"&gt;@joshdellapietro&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Some things I'd try to debug your calculation would be to duplicate your pivot table and add your date parameters in as measures and see what they are returning.&lt;/P&gt;
&lt;P&gt;The Monthstart() function has it's own date shifting parameter so you can take out the addmonths().&lt;/P&gt;
&lt;P&gt;Add as measures&lt;/P&gt;
&lt;P&gt;date(MonthStart(Min([Effect Date]), -6))&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Anthony&lt;/P&gt;
&lt;P&gt;and&amp;nbsp;&lt;/P&gt;
&lt;P&gt;date(MonthStart(Min([Effect Date]), -1))&lt;/P&gt;
&lt;P&gt;and see if there are different dates appearing in the rows of the pivot table.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Mar 2022 22:37:18 GMT</pubDate>
    <dc:creator>anthonyj</dc:creator>
    <dc:date>2022-03-14T22:37:18Z</dc:date>
    <item>
      <title>Sum Sales Between Two Dates</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Sales-Between-Two-Dates/m-p/1904343#M74573</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am currently using the following formula to calculate total gross sales between the effective date and 6 months prior:&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;[Invoice Date]={"&amp;gt;=$(=MonthStart(Addmonths(Min([Effective Date]),-6)))&amp;lt;=$(=MonthEnd(Addmonths(Min([Effective Date]),-1)))"}&amp;gt;}[Gross Sales])&lt;/P&gt;
&lt;P&gt;This formula is working,&amp;nbsp; however, in my pivot table, I am using dimensions that have different effective dates and the formula seems to be locking into one date for all data and not reacting based on the dimension's effectiev date.&lt;/P&gt;
&lt;P&gt;Please help!&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2022 16:13:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Sales-Between-Two-Dates/m-p/1904343#M74573</guid>
      <dc:creator>joshdellapietro</dc:creator>
      <dc:date>2022-03-12T16:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Sales Between Two Dates</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Sales-Between-Two-Dates/m-p/1905008#M74618</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/101018"&gt;@joshdellapietro&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Some things I'd try to debug your calculation would be to duplicate your pivot table and add your date parameters in as measures and see what they are returning.&lt;/P&gt;
&lt;P&gt;The Monthstart() function has it's own date shifting parameter so you can take out the addmonths().&lt;/P&gt;
&lt;P&gt;Add as measures&lt;/P&gt;
&lt;P&gt;date(MonthStart(Min([Effect Date]), -6))&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Anthony&lt;/P&gt;
&lt;P&gt;and&amp;nbsp;&lt;/P&gt;
&lt;P&gt;date(MonthStart(Min([Effect Date]), -1))&lt;/P&gt;
&lt;P&gt;and see if there are different dates appearing in the rows of the pivot table.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 22:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Sales-Between-Two-Dates/m-p/1905008#M74618</guid>
      <dc:creator>anthonyj</dc:creator>
      <dc:date>2022-03-14T22:37:18Z</dc:date>
    </item>
  </channel>
</rss>

