<?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: Calculation of a count of clients for each first day of a week in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420653#M428660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, may be without Aggr()... you can try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT If(Date = Date#(SubField(Week, '-', 1), 'DD.MM.YYYY'), ClientID))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Dec 2017 15:06:38 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-12-18T15:06:38Z</dc:date>
    <item>
      <title>Calculation of a count of clients for each first day of a week</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420647#M428654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Target:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I need to calculate a count of clients for each first day of a week (count at the beginning of a period).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I've got a Straight table like this:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Week&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Count( Distinct ClientID)&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; padding: 2px;" valign="middle"&gt;Count( DISTINCT&amp;nbsp; {&amp;lt;ClientID = P({1&amp;lt;Date={"$(=Date(WeekStart(min(Date))))"}&amp;gt;}ClientID)&amp;gt;}&amp;nbsp; ClientID )&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;23.01-2017 - 29-01-2017&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;34&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;02-01-2017 - 08-01-2017&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;23&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression does not work correctly. Its calculates a result only for the last ("min") week.&lt;/P&gt;&lt;P&gt;How would look like a correct expression? (and what's wrong with my expression?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;P&gt;Evgeniy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 14:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420647#M428654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-18T14:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of a count of clients for each first day of a week</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420648#M428655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does a client need to be counted only once or a single client be part of multiple weeks? Also, would you be able to share some raw data to show what you have?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 14:22:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420648#M428655</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-18T14:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of a count of clients for each first day of a week</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420649#M428656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response, Sunny Talwar!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;single client can be a part of multiple weeks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Two weeks' data for this example&amp;nbsp; is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably, the right answer has to be like: 8 and 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;P&gt;Evgeniy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 14:33:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420649#M428656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-18T14:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of a count of clients for each first day of a week</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420650#M428657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting 6 and 3, are you sure that 23.01.2017-29.01.2017 is 8?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/187364_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 14:43:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420650#M428657</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-18T14:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of a count of clients for each first day of a week</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420651#M428658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you are right and 6 is correct. I can't go though your example right now, but I'll do it a bit later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I can see you've made some changes into load script.&lt;/P&gt;&lt;P&gt;is it possible to calculate this just using the 'Set Analysis'? (A&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;nd what was wrong with my expression? )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;P&gt;Evgeniy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 15:02:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420651#M428658</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-18T15:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of a count of clients for each first day of a week</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420652#M428659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis won't be possible, but I can get the result using Aggr function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 15:05:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420652#M428659</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-18T15:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of a count of clients for each first day of a week</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420653#M428660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, may be without Aggr()... you can try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT If(Date = Date#(SubField(Week, '-', 1), 'DD.MM.YYYY'), ClientID))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 15:06:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420653#M428660</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-18T15:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of a count of clients for each first day of a week</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420654#M428661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I'll check both variants, but I'm sure they will be correct!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your help and attention! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice evening!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best wishes,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Evgeniy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 15:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420654#M428661</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-18T15:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of a count of clients for each first day of a week</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420655#M428662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I'd also like to know how to calculate customers who started purchasing (who made his &lt;STRONG&gt;first&lt;/STRONG&gt; purchase) during each "week" like an expression without any influence in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of result:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Week&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Count of New Clients&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;26.12.1016 - 01.01.2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt; - who made his first purchase between &lt;SPAN style="font-size: 13.3333px;"&gt;26.12.1016 - 01.01.2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;02.02.2017 - 08.01.2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; - who made his first purchase between &lt;SPAN style="font-size: 13.3333px;"&gt;02.02.2017 - 08.01.2017 etc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;BR /&gt;Evgeniy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2017 10:04:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420655#M428662</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-26T10:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of a count of clients for each first day of a week</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420656#M428663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This expression is based on no modifications made in the script... is this not working for you?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT If(Date = Date#(SubField(Week, '-', 1), 'DD.MM.YYYY'), ClientID))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2017 12:09:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420656#M428663</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-26T12:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of a count of clients for each first day of a week</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420657#M428664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This expression works correct. Thank you again!&lt;/P&gt;&lt;P&gt;It was the expression to calculate clients only for the &lt;STRONG&gt;first day of week&lt;/STRONG&gt;, but now I have another one question which is based on the same data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;The question is&lt;/SPAN&gt; I need to calculate a count of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;clients who&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; has made his &lt;STRONG&gt;first purchase in the interval (&lt;/STRONG&gt;from the first day of a week to the end day of a week). It will be "New Clients".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; 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-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Something like that: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count(DISTINCT aggr(if(Min(Date) &amp;lt;=&amp;nbsp; Date(WeekEnd(min(Date))), ClientID), ClientID) )&amp;nbsp; P.s. it doesn't work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; 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; font-size: 13px;"&gt;Best wishes,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Evgeniy&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2017 12:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420657#M428664</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-26T12:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of a count of clients for each first day of a week</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420658#M428665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Client&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Aggr(If(Date = Min(TOTAL &amp;lt;ClientID&amp;gt; Date), 1, 0), ClientID, Date, Week))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Repeat Client&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT ClientID) - Sum(Aggr(If(Date = Min(TOTAL &amp;lt;ClientID&amp;gt; Date), 1, 0), ClientID, Date, Week))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2017 13:22:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420658#M428665</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-26T13:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of a count of clients for each first day of a week</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420659#M428666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome! Thanks a million! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Best wishes,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Evgeniy&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2017 13:35:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420659#M428666</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-26T13:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of a count of clients for each first day of a week</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420660#M428667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Sunny Talwar! I've got a small question about this expression.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;New Client&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=Sum(Aggr(If(Date = Min(TOTAL &amp;lt;ClientID&amp;gt; Date), 1, 0), ClientID, Date, Week))&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It works correctly if I won't select, for example, a week.&amp;nbsp; Is it possible to rewrite this expression and optimize to a possibility to get right results based on some selection?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Best wishes,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Evgeniy&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 08:59:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420660#M428667</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-04T08:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of a count of clients for each first day of a week</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420661#M428668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share an example where this isn't working based on selection?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 09:23:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420661#M428668</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-04T09:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of a count of clients for each first day of a week</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420662#M428669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example is attached ( based on the xls file sent previously)&lt;/P&gt;&lt;P&gt;I select the second week and it's recalculated a value for the selected week. I'll appreciate if you give a new expression/explanation to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Best wishes,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Evgeniy&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 09:52:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420662#M428669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-04T09:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of a count of clients for each first day of a week</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420663#M428670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;= sum( aggr( &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(&lt;SPAN style="color: #ff0000;"&gt;Only({&amp;lt;Week&amp;gt;}&lt;/SPAN&gt;Date&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt; = min( TOTAL &amp;lt;ClientID&amp;gt;&lt;SPAN style="color: #ff0000;"&gt; {&amp;lt;Week&amp;gt;}&lt;/SPAN&gt; Date ) , 1 , 0 )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;, ClientID, Date,Week ))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 09:56:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420663#M428670</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-04T09:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of a count of clients for each first day of a week</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420664#M428671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's helped! Thank you very much and a Happy New Year! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Best wishes,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Evgeniy&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 11:37:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420664#M428671</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-04T11:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of a count of clients for each first day of a week</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420665#M428672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Happy New Year my friend &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 12:00:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-a-count-of-clients-for-each-first-day-of-a-week/m-p/1420665#M428672</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-04T12:00:43Z</dc:date>
    </item>
  </channel>
</rss>

