<?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: Re: Using min function in target field in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-min-function-in-target-field-in-set-analysis/m-p/650610#M237951</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much. This is exactly what i want to do.&lt;/P&gt;&lt;P&gt;Have a nice day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jun 2014 06:25:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-11T06:25:29Z</dc:date>
    <item>
      <title>Using min function in target field in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-min-function-in-target-field-in-set-analysis/m-p/650604#M237945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following table :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="209" style="border: 1px solid rgb(0, 0, 0); width: 308px; height: 148px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; color: rgb(255, 255, 255); padding: 2px; background-color: rgb(102, 144, 188);" valign="middle"&gt;CUST_USER_ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;PURCHASE_EVENT_DT&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;04/5/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;05/5/2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;07/5/2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;04&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;/5/2014&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;10&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;/5/2014&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;10&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;/5/2014&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate the number of buyers who do their first purchase the date that qlikVIew users select through a calendar object.&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;In 04/5/2014, the total number of new buyers are 2 ( cust_user_id: 1 , 3 )&lt;/P&gt;&lt;P&gt;In 05/5/2014, the total number of new buyers is 0&lt;/P&gt;&lt;P&gt;In 10/5/2014, the total number of new buyers is 1 ( cust_user_id: 2 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to do it using the following set analysis :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;min(PURCHASE_EVENT_DT)={$(vSelectedDate)}&amp;gt;} distinct CUST_USER_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there is an error in set analysis. Can you help me please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 11:55:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-min-function-in-target-field-in-set-analysis/m-p/650604#M237945</guid>
      <dc:creator />
      <dc:date>2014-06-10T11:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using min function in target field in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-min-function-in-target-field-in-set-analysis/m-p/650605#M237946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count({&amp;lt;PURCHASE_EVENT_DT={"=$(vSelectedDate)"}&amp;gt;} distinct CUST_USER_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Do not forget that the dates have to be in the same formats.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 12:01:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-min-function-in-target-field-in-set-analysis/m-p/650605#M237946</guid>
      <dc:creator>rogerioqv</dc:creator>
      <dc:date>2014-06-10T12:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using min function in target field in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-min-function-in-target-field-in-set-analysis/m-p/650606#M237947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot use min (or any other function) in the left part of the expression, I think that if the use selects a date the expression can be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count(distinct CUST_USER_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or (to be sure of the selected date):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count({&amp;lt;PURCHASE_EVENT_DT={$(=GetFieldSelections(myFieldDate))}&amp;gt;} distinct CUST_USER_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;where &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;myFieldDate&lt;/SPAN&gt; is the field in the multibox selected by the user&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Let me know&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 12:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-min-function-in-target-field-in-set-analysis/m-p/650606#M237947</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-06-10T12:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using min function in target field in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-min-function-in-target-field-in-set-analysis/m-p/650607#M237948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following set analysis calculates the number of buyers per selected date and not&lt;STRONG&gt; &lt;/STRONG&gt;the number of &lt;STRONG&gt;new&lt;/STRONG&gt; buyers per selected date.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count({&amp;lt;PURCHASE_EVENT_DT={$(=GetFieldSelections(myFieldDate))}&amp;gt;} distinct CUST_USER_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If a buyer had had a purchase before the selected date, he should not be appeared&amp;nbsp; as &lt;STRONG&gt;new&lt;/STRONG&gt; buyer in the selected date but he should be appeared as &lt;STRONG&gt;new&lt;/STRONG&gt; buyer the date that he had done his &lt;STRONG&gt;first&lt;/STRONG&gt; purchase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;So, i want to select a date and see the number of users who did their first purchase this date.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 12:44:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-min-function-in-target-field-in-set-analysis/m-p/650607#M237948</guid>
      <dc:creator />
      <dc:date>2014-06-10T12:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Using min function in target field in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-min-function-in-target-field-in-set-analysis/m-p/650608#M237949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dimitra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 17:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-min-function-in-target-field-in-set-analysis/m-p/650608#M237949</guid>
      <dc:creator>rogerioqv</dc:creator>
      <dc:date>2014-06-10T17:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Using min function in target field in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-min-function-in-target-field-in-set-analysis/m-p/650609#M237950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dimitra:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can not open the file, use this expression: &lt;/P&gt;&lt;P&gt;='New Customers: ' &amp;amp;COUNT(DISTINCT IF( vDateRef = aggr(min(PURCHASE_EVENT_DT),CUST_USER_ID), CUST_USER_ID))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 17:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-min-function-in-target-field-in-set-analysis/m-p/650609#M237950</guid>
      <dc:creator>rogerioqv</dc:creator>
      <dc:date>2014-06-10T17:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Using min function in target field in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-min-function-in-target-field-in-set-analysis/m-p/650610#M237951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much. This is exactly what i want to do.&lt;/P&gt;&lt;P&gt;Have a nice day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 06:25:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-min-function-in-target-field-in-set-analysis/m-p/650610#M237951</guid>
      <dc:creator />
      <dc:date>2014-06-11T06:25:29Z</dc:date>
    </item>
  </channel>
</rss>

