<?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: Use Max Date in Set Analysis KPI in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-Max-Date-in-Set-Analysis-KPI/m-p/1769705#M717132</link>
    <description>&lt;P&gt;You can't use an aggregation function as the left argument in set analysis, so&amp;nbsp;&lt;SPAN&gt;max(DateOrderPlaced) = {"&amp;lt;=$(&lt;/SPAN&gt;&lt;STRONG&gt;Date15DaysAgo&lt;/STRONG&gt;&lt;SPAN&gt;)"} is a problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;count(distinct {&amp;lt;ProductID=E({1&amp;lt;DateOrderPlaced={"&amp;gt;$(Date15DaysAgo)"}&amp;gt;} ProductID),active={'1'}&amp;gt;} ProductID)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It should count ProductiDs that don't have an order placed in the last 15 days by excluded those ProductIDs that have.&amp;nbsp; I excluding greater than as opposed to included less than.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Dec 2020 01:41:11 GMT</pubDate>
    <dc:creator>GaryGiles</dc:creator>
    <dc:date>2020-12-21T01:41:11Z</dc:date>
    <item>
      <title>Use Max Date in Set Analysis KPI</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Max-Date-in-Set-Analysis-KPI/m-p/1769684#M717131</link>
      <description>&lt;P&gt;I read through posts with similar titles, but didn't find any that solved my problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to post a KPI with the number of active products for which NO new orders have been placed in the past 15 days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a variable to give me the date 15 days ago, the variable is called literally &lt;STRONG&gt;Date15DaysAgo&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created the following set analysis using the Max function and my variable, but I'm not getting anything back:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Count(distinct{&amp;lt;max(DateOrderPlaced) = {"&amp;lt;=$(&lt;STRONG&gt;Date15DaysAgo&lt;/STRONG&gt;)"}, active = {'1'} &amp;gt;} [ProductID])&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone can see where I'm going wrong with this one? Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Max-Date-in-Set-Analysis-KPI/m-p/1769684#M717131</guid>
      <dc:creator>SmartProtection</dc:creator>
      <dc:date>2024-11-15T23:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Use Max Date in Set Analysis KPI</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Max-Date-in-Set-Analysis-KPI/m-p/1769705#M717132</link>
      <description>&lt;P&gt;You can't use an aggregation function as the left argument in set analysis, so&amp;nbsp;&lt;SPAN&gt;max(DateOrderPlaced) = {"&amp;lt;=$(&lt;/SPAN&gt;&lt;STRONG&gt;Date15DaysAgo&lt;/STRONG&gt;&lt;SPAN&gt;)"} is a problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;count(distinct {&amp;lt;ProductID=E({1&amp;lt;DateOrderPlaced={"&amp;gt;$(Date15DaysAgo)"}&amp;gt;} ProductID),active={'1'}&amp;gt;} ProductID)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It should count ProductiDs that don't have an order placed in the last 15 days by excluded those ProductIDs that have.&amp;nbsp; I excluding greater than as opposed to included less than.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 01:41:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Max-Date-in-Set-Analysis-KPI/m-p/1769705#M717132</guid>
      <dc:creator>GaryGiles</dc:creator>
      <dc:date>2020-12-21T01:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Use Max Date in Set Analysis KPI</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Max-Date-in-Set-Analysis-KPI/m-p/1769997#M717133</link>
      <description>&lt;P&gt;Worked perfectly. Thanks!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 12:36:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Max-Date-in-Set-Analysis-KPI/m-p/1769997#M717133</guid>
      <dc:creator>SmartProtection</dc:creator>
      <dc:date>2020-12-22T12:36:38Z</dc:date>
    </item>
  </channel>
</rss>

