<?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: Distinct values at max date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1705690#M724597</link>
    <description>&lt;P&gt;That worked when no date selections are made, but when I select a particular month the max date changes.&amp;nbsp;&lt;BR /&gt;So if I select June, the planned qty of 576 appears in June, whereas if I select July the qty appears in July.&amp;nbsp;&lt;BR /&gt;In this case I want the planned qty to be frozen to July (i.e. max date).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regards,&amp;nbsp;&lt;BR /&gt;Hoowling&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2020 14:25:55 GMT</pubDate>
    <dc:creator>Hoowling</dc:creator>
    <dc:date>2020-05-27T14:25:55Z</dc:date>
    <item>
      <title>Distinct values at max date</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1705555#M724595</link>
      <description>&lt;P&gt;Hi community,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In a chart, I want to calculate the "planned qty" per VKRIDN (order number) at the max date.&amp;nbsp;&lt;BR /&gt;An example of the raw data is found in below table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 279px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/34423i1B382C6A938112B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Basically I want the chart to show 576 units on 2020-07-01.&amp;nbsp;&lt;BR /&gt;Currently I'm using this formula:&amp;nbsp;&lt;SPAN&gt;Sum(aggr(sum(Distinct[Planned qty]),VKRIDN)) - which puts the quantity at 2020-06-30.&lt;BR /&gt;&lt;BR /&gt;Any suggestions on how to include a max(Date) function in the set analysis above?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Hoowling&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:36:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1705555#M724595</guid>
      <dc:creator>Hoowling</dc:creator>
      <dc:date>2024-11-16T00:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct values at max date</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1705559#M724596</link>
      <description>&lt;P&gt;May be this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum(Aggr(
    If(Date = Max(TOTAL &amp;lt;VKRIDN&amp;gt; Date), Sum([Planned qty]))
, VKRIDN, Date))&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 May 2020 11:13:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1705559#M724596</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-05-27T11:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct values at max date</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1705690#M724597</link>
      <description>&lt;P&gt;That worked when no date selections are made, but when I select a particular month the max date changes.&amp;nbsp;&lt;BR /&gt;So if I select June, the planned qty of 576 appears in June, whereas if I select July the qty appears in July.&amp;nbsp;&lt;BR /&gt;In this case I want the planned qty to be frozen to July (i.e. max date).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regards,&amp;nbsp;&lt;BR /&gt;Hoowling&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 14:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1705690#M724597</guid>
      <dc:creator>Hoowling</dc:creator>
      <dc:date>2020-05-27T14:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct values at max date</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1705796#M724598</link>
      <description>&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Date={"$(=Date(Max(Date)))"}&amp;gt;}[Planned qty])&lt;/P&gt;&lt;P&gt;Note: If you have Date as a dimension in the chart, for all the records it would show the latest value only.&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 18:30:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1705796#M724598</guid>
      <dc:creator>vamsee</dc:creator>
      <dc:date>2020-05-27T18:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct values at max date</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1705798#M724599</link>
      <description>&lt;P&gt;I think it would be more like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum({&amp;lt;Date = {"$(=Date(Max({1} Date)))"}&amp;gt;} [Planned qty])&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 May 2020 18:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1705798#M724599</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-05-27T18:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct values at max date</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1705939#M724600</link>
      <description>&lt;P&gt;Vamsee - This had no effect, the planned qty end up in the month that I select instead of just appearing in July (thus, should be zero if June is selected).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 08:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1705939#M724600</guid>
      <dc:creator>Hoowling</dc:creator>
      <dc:date>2020-05-28T08:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct values at max date</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1705940#M724601</link>
      <description>&lt;P&gt;Sunny - This alternative returns null&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 08:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1705940#M724601</guid>
      <dc:creator>Hoowling</dc:creator>
      <dc:date>2020-05-28T08:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct values at max date</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1706006#M724602</link>
      <description>&lt;P&gt;Would you be able to share a sample where we can see the issue?&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 11:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1706006#M724602</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-05-28T11:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct values at max date</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1707426#M724603</link>
      <description>&lt;P&gt;Attached is a very simple example to highlight the problem.&amp;nbsp;&lt;BR /&gt;Again - I want the table to always show the planned qty&amp;nbsp;@ max date. So if I select 20200630 planned qty should be 0, and when selecting 20200701, planned qty should be 576&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regards,&amp;nbsp;&lt;BR /&gt;Hoowling&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 11:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1707426#M724603</guid>
      <dc:creator>Hoowling</dc:creator>
      <dc:date>2020-06-02T11:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct values at max date</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1707454#M724604</link>
      <description>&lt;P&gt;Hi Hoowling,&lt;/P&gt;&lt;P&gt;I tweaked the expression a little, created a variable vMaxDate and used that in the expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 12:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1707454#M724604</guid>
      <dc:creator>vamsee</dc:creator>
      <dc:date>2020-06-02T12:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct values at max date</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1707460#M724605</link>
      <description>&lt;P&gt;May be you need implicit set like:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Date&lt;FONT color="#FF0000"&gt;*&lt;/FONT&gt;={"$(=Max({1} Date))"}&amp;gt;} [Planned qty])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note the '*', intersection operator in red.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 13:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-values-at-max-date/m-p/1707460#M724605</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-06-02T13:05:38Z</dc:date>
    </item>
  </channel>
</rss>

