<?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 help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/408306#M151864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all of your answers.&lt;/P&gt;&lt;P&gt;I'm using it in a text object on my dashboard, but it returns a 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 May 2013 14:18:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-28T14:18:40Z</dc:date>
    <item>
      <title>Set analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/408302#M151860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an if statement, which I'd like to convert into Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is : count(distinct if(LAST_UPDATE_DATE_MAX=[Last Update Date],OrderNumber ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this is in Set analysis, but it doesn't return any thing.&lt;/P&gt;&lt;P&gt;=count(distinct {&amp;lt;LAST_UPDATE_DATE_MAX={"$(=[Last Update Date])"} OrderNumber))&lt;/P&gt;&lt;P&gt;I'd like to return if, it the one date field(Last Update Date Max) equals another date field (Last Update Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas as to what I'm doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 May 2013 07:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/408302#M151860</guid>
      <dc:creator />
      <dc:date>2013-05-26T07:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/408303#M151861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, my guess is that in this case what you need is not set analysis rather a row by row comparison. Set analysis is evaluated once, and before doing the aggregations so the dataset is reduced to what set analysis specifies. In your formula, the left part is a field, that is OK, but the right part is a field as well, and my guess is that you want a value, no a lot of values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my assumtiom is correct, then you should use instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= {'$(=Max([Last Update Date]))'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that as mentioned this will compare the left part field to the value of that Max function for the whole chart, not row by row. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 May 2013 08:02:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/408303#M151861</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2013-05-26T08:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/408304#M151862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(DISTINCT {&amp;lt;OrderNumber = {"=[Last Update Date]=LAST_UPDATE_DATE_MAX"}&amp;gt;} OrderNumber)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assuming that all three fields reside in the same table in your data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of OrderNumber, you may need to use a field with the granularity required for your field value comparison (so that last update date and last update date max return an unambiguous answer).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 May 2013 10:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/408304#M151862</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-05-26T10:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/408305#M151863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;try using&amp;nbsp;&amp;nbsp; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;DIV&gt;count({&amp;lt;LAST_UPDATE_DATE_MAX={"$(=[Last Update Date])"} &amp;gt;} DISTINCT&amp;nbsp; OrderNumber)&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Hope that helps.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;mrunmayi&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2013 04:53:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/408305#M151863</guid>
      <dc:creator />
      <dc:date>2013-05-27T04:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/408306#M151864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all of your answers.&lt;/P&gt;&lt;P&gt;I'm using it in a text object on my dashboard, but it returns a 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 14:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/408306#M151864</guid>
      <dc:creator />
      <dc:date>2013-05-28T14:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/408307#M151865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If both are fields and may have, in a specific moment, more than 1 possible or selected value, try with this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;LAST_UPDATE_DATE_MAX=&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;p(&lt;/STRONG&gt;&lt;/SPAN&gt;[Last Update Date]&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt; &amp;gt;} DISTINCT&amp;nbsp; OrderNumber)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm not 100% sure if the field in the left is that or the other one. Anyway, try it and see what happens &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Borja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 14:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/408307#M151865</guid>
      <dc:creator />
      <dc:date>2013-05-28T14:41:49Z</dc:date>
    </item>
  </channel>
</rss>

