<?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: Set Analysis - All but the max date. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-All-but-the-max-date/m-p/586613#M1099670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the value of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MaxDefDtentry&lt;/SPAN&gt; in variable overview?&amp;nbsp; Given your expression above, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MaxDefDtentry&lt;/SPAN&gt; should include an "=" in the variable definition. A dollar expansion is done before the expression is evaluated, and in this case without the "=" in the value of the variable the expression is trying to return the distinct count of CN where &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;defdtentry is less than 'some text' rather than the value of the max date. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also try: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count( {&amp;lt;defdtentry = {"&amp;lt;$(=Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;defdtentry&lt;/SPAN&gt;))"}&amp;gt;}&amp;nbsp; distinct CN) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Apr 2014 17:36:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-16T17:36:46Z</dc:date>
    <item>
      <title>Set Analysis - All but the max date.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-All-but-the-max-date/m-p/586605#M1099662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do analysis in charts using two expressions comparing the entire data set to the data set minus those where in the most recent entry date. I've come up with an overly complicated way and was wondering if there was a simple one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Rebecca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 16:14:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-All-but-the-max-date/m-p/586605#M1099662</guid>
      <dc:creator />
      <dc:date>2014-04-16T16:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - All but the max date.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-All-but-the-max-date/m-p/586606#M1099663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share some sample data or apps?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 16:17:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-All-but-the-max-date/m-p/586606#M1099663</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-16T16:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - All but the max date.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-All-but-the-max-date/m-p/586607#M1099664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data I'm working with is quite large so it wouldn't be practical to attach it. But here I can show a mini example of what I want to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="192"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" width="64"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;EntryDate&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;SalesA&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;SalesB&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;1/1/2014&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;1/1/2014&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;2/1/2014&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;2/1/2014&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;2/1/2014&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;3/1/2014&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;3/1/2014&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is what I want to create - where these are means of SalesA/SalesB.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QVExample.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/57435_QVExample.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 16:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-All-but-the-max-date/m-p/586607#M1099664</guid>
      <dc:creator />
      <dc:date>2014-04-16T16:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - All but the max date.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-All-but-the-max-date/m-p/586608#M1099665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How you got A and B here?&lt;/P&gt;&lt;P&gt;What is the Logic you have used to get above two bars?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 16:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-All-but-the-max-date/m-p/586608#M1099665</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-16T16:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - All but the max date.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-All-but-the-max-date/m-p/586609#M1099666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The blue bar for A is the average of the entire column Sales A, while the red bar for A is the entire column minus the last two lines which have the max(EntryDate). Similarily, for B but with the SalesB column.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 16:38:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-All-but-the-max-date/m-p/586609#M1099666</guid>
      <dc:creator />
      <dc:date>2014-04-16T16:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - All but the max date.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-All-but-the-max-date/m-p/586610#M1099667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming Date and A/B are your chart dimensions, your expression for all dates would simply be sum(Sales).&amp;nbsp; Your expression for all dates excluding the max date would look something like: =sum( {&amp;lt;Date = {"&amp;lt;$(vMaxDate)"}&amp;gt;}&amp;nbsp; Sales), where vMaxDate = max(Date) or max({1}Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you post your actual expression, we may be able to help you a little more with the syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 16:44:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-All-but-the-max-date/m-p/586610#M1099667</guid>
      <dc:creator />
      <dc:date>2014-04-16T16:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - All but the max date.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-All-but-the-max-date/m-p/586611#M1099668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that, but I'm getting 0 for all values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my expression:&lt;/P&gt;&lt;P&gt;Count( {&amp;lt;defdtentry = {"&amp;lt;$(MaxDefDtentry)"}&amp;gt;}&amp;nbsp; distinct CN)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 16:49:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-All-but-the-max-date/m-p/586611#M1099668</guid>
      <dc:creator />
      <dc:date>2014-04-16T16:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - All but the max date.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-All-but-the-max-date/m-p/586612#M1099669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrossTable(Type,Sales)&lt;/P&gt;&lt;P&gt;Load&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Date#(EntryDate,'D/M/YYYY')) as EntryDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; SalesA,&lt;/P&gt;&lt;P&gt;&amp;nbsp; SalesB&lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;EntryDate,SalesA, SalesB&lt;/P&gt;&lt;P&gt;1/1/2014, 2, 4&lt;/P&gt;&lt;P&gt;1/1/2014, 10, 5&lt;/P&gt;&lt;P&gt;2/1/2014, 1, 2&lt;/P&gt;&lt;P&gt;2/1/2014, 2, 3&lt;/P&gt;&lt;P&gt;2/1/2014, 2, 4&lt;/P&gt;&lt;P&gt;3/1/2014, 1, 2&lt;/P&gt;&lt;P&gt;3/1/2014, 1, 3&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Straight Table&lt;/P&gt;&lt;P&gt;Dimension = Type&lt;/P&gt;&lt;P&gt;Expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Average Sales&lt;/P&gt;&lt;P&gt;SUM(Sales)/COUNT(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Average Sales without Max EntryDate&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;EntryDate -= {'$(=Max(EntryDate))'}&amp;gt;}Sales)/COUNT({&amp;lt;EntryDate -= {'$(=Max(EntryDate))'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Average Sales For Max EntryDate&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;EntryDate = {'$(=Max(EntryDate))'}&amp;gt;}Sales)/COUNT({&amp;lt;EntryDate = {'$(=Max(EntryDate))'}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 16:51:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-All-but-the-max-date/m-p/586612#M1099669</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-16T16:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - All but the max date.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-All-but-the-max-date/m-p/586613#M1099670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the value of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MaxDefDtentry&lt;/SPAN&gt; in variable overview?&amp;nbsp; Given your expression above, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MaxDefDtentry&lt;/SPAN&gt; should include an "=" in the variable definition. A dollar expansion is done before the expression is evaluated, and in this case without the "=" in the value of the variable the expression is trying to return the distinct count of CN where &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;defdtentry is less than 'some text' rather than the value of the max date. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also try: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count( {&amp;lt;defdtentry = {"&amp;lt;$(=Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;defdtentry&lt;/SPAN&gt;))"}&amp;gt;}&amp;nbsp; distinct CN) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 17:36:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-All-but-the-max-date/m-p/586613#M1099670</guid>
      <dc:creator />
      <dc:date>2014-04-16T17:36:46Z</dc:date>
    </item>
  </channel>
</rss>

