<?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: Time dimension/max(date) accumulates value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Time-dimension-max-date-accumulates-value/m-p/1344337#M821390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andre,&lt;/P&gt;&lt;P&gt;Maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if(Month(BillDate) &amp;lt;&amp;gt; Month(ConfirmDate), Quantity))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/172387_1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Aug 2017 12:16:46 GMT</pubDate>
    <dc:creator>effinty2112</dc:creator>
    <dc:date>2017-08-03T12:16:46Z</dc:date>
    <item>
      <title>Time dimension/max(date) accumulates value</title>
      <link>https://community.qlik.com/t5/QlikView/Time-dimension-max-date-accumulates-value/m-p/1344334#M821385</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;Lately I've be having an issue and I can't seem to find the way to solve it. Conceptually, I want to get the invoiced quantity that was not confirmed in the selected month.&lt;/P&gt;&lt;P&gt;I have created an example that displays the problem I'm facing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For August I have this as the invoiced quantity that was not confirmed in August.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/172377_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;For Jul I have this as the invoiced quantity that was not confirmed in Jul.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/172378_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;The issue is when I select 2 months at the same time. I want to see in July he 370 but I'm getting the 1070 because it is considering the max(BillDate) of the two months.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/172388_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;I've attached a QVW below that shows this.&lt;/P&gt;&lt;P&gt;Thank you for your time, hopefully you can help me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;André Braga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-dimension-max-date-accumulates-value/m-p/1344334#M821385</guid>
      <dc:creator>afbraga1</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Time dimension/max(date) accumulates value</title>
      <link>https://community.qlik.com/t5/QlikView/Time-dimension-max-date-accumulates-value/m-p/1344335#M821386</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;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(If(ConfirmDate &amp;lt;= MonthEnd(AddMonths(Max(Total &amp;lt;House, BillMonth&amp;gt; BillDate),-1)), Quantity), House, BillMonth, ConfirmDate))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 11:46:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-dimension-max-date-accumulates-value/m-p/1344335#M821386</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-03T11:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Time dimension/max(date) accumulates value</title>
      <link>https://community.qlik.com/t5/QlikView/Time-dimension-max-date-accumulates-value/m-p/1344336#M821387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(GetFieldSeletions(Month)&amp;gt;0, First 2 images expressions, normal expression)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 11:48:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-dimension-max-date-accumulates-value/m-p/1344336#M821387</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-03T11:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Time dimension/max(date) accumulates value</title>
      <link>https://community.qlik.com/t5/QlikView/Time-dimension-max-date-accumulates-value/m-p/1344337#M821390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andre,&lt;/P&gt;&lt;P&gt;Maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if(Month(BillDate) &amp;lt;&amp;gt; Month(ConfirmDate), Quantity))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/172387_1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 12:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-dimension-max-date-accumulates-value/m-p/1344337#M821390</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-08-03T12:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Time dimension/max(date) accumulates value</title>
      <link>https://community.qlik.com/t5/QlikView/Time-dimension-max-date-accumulates-value/m-p/1344338#M821393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if I had more parameters in the set analysis how would I put it in your formula. In this case a Doc.Source='Invoice'?&lt;/P&gt;&lt;P&gt;In my previous formula I would do it like this:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Doc.Source='Invoice',ConfirmDate={"&amp;lt;=$(=(MonthEnd(AddMonths(Max(BillDate),-1))))"}&amp;gt;}Quantity)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 12:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-dimension-max-date-accumulates-value/m-p/1344338#M821393</guid>
      <dc:creator>afbraga1</dc:creator>
      <dc:date>2017-08-03T12:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Time dimension/max(date) accumulates value</title>
      <link>https://community.qlik.com/t5/QlikView/Time-dimension-max-date-accumulates-value/m-p/1344339#M821395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Those can stay as set analysis....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;Doc.Source = {'Invoice'}&amp;gt;}&lt;/SPAN&gt; Aggr(If(ConfirmDate &amp;lt;= MonthEnd(AddMonths(Max(Total &amp;lt;House, BillMonth&amp;gt; BillDate),-1)), Quantity), House, BillMonth, ConfirmDate))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 13:04:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-dimension-max-date-accumulates-value/m-p/1344339#M821395</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-03T13:04:51Z</dc:date>
    </item>
  </channel>
</rss>

