<?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: Using MIN function in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-MIN-function-in-set-analysis/m-p/635739#M1089552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dollar sign expansion is only evaluated once, so not for every value in the dimension. You can see the result of that in your expression header &lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;StartDate={"1/1/2011"}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;This is used for every value in your dimension. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One solution would be to load a table (in script) with only the min date values of your sheet1 table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jun 2014 13:52:05 GMT</pubDate>
    <dc:creator>stigchel</dc:creator>
    <dc:date>2014-06-02T13:52:05Z</dc:date>
    <item>
      <title>Using MIN function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-MIN-function-in-set-analysis/m-p/635736#M1089549</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;Currently I want to make a pivot table to show various numbers for the dimension.&lt;/P&gt;&lt;P&gt;There are 2 dimensions, Property and Counter. I want to know the amount received from the counters and sum them up to give the value for the Property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is simple, but what I want to do is to have only those counters with the least Start Date per Property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to make that work with MIN function in set analysis. &lt;/P&gt;&lt;P&gt;However, the only result shown is the counter with overall the least Start Date in the table.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;While for the others Property, if there is no counter with Start Date on the MIN(Start Date) in the overall table, no values would be shown.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I had attached the qvw to illustrate the situation. The expression I am using is :&lt;/P&gt;&lt;P&gt;&amp;nbsp; SUM({&amp;lt;StartDate={"$(=date(min(aggr(min(StartDate),Property))))"}&amp;gt;}Amount)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (4th expression in the table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Is that the limitation for the MIN() function in set analysis? Is there any other method to make this work?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks in advance for the help. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 13:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-MIN-function-in-set-analysis/m-p/635736#M1089549</guid>
      <dc:creator />
      <dc:date>2014-06-02T13:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using MIN function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-MIN-function-in-set-analysis/m-p/635737#M1089550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;qvw is missing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 13:28:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-MIN-function-in-set-analysis/m-p/635737#M1089550</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-06-02T13:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using MIN function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-MIN-function-in-set-analysis/m-p/635738#M1089551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry all.&lt;/P&gt;&lt;P&gt;Here is the qvw for your reference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 13:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-MIN-function-in-set-analysis/m-p/635738#M1089551</guid>
      <dc:creator />
      <dc:date>2014-06-02T13:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using MIN function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-MIN-function-in-set-analysis/m-p/635739#M1089552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dollar sign expansion is only evaluated once, so not for every value in the dimension. You can see the result of that in your expression header &lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;StartDate={"1/1/2011"}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;This is used for every value in your dimension. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One solution would be to load a table (in script) with only the min date values of your sheet1 table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 13:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-MIN-function-in-set-analysis/m-p/635739#M1089552</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-06-02T13:52:05Z</dc:date>
    </item>
  </channel>
</rss>

