<?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: New and Returning Customers in Quick Measures Gallery</title>
    <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/278418#M63</link>
    <description>&lt;P&gt;If you need to use older versions of DAX, avoiding variables makes sense. Otherwise, smaller code doesn't mean neither simpler nor faster code. Please remind that variables can help the engine to get more optimized query plans, avoiding to evaluate the same expression multiple times.&lt;/P&gt;
&lt;P&gt;It is not necessarily the case for this formula, but it could be in a complex query and in general it is a best practice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Marco Russo - &lt;A href="http://www.sqlbi.com" target="_blank"&gt;SQLBI&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 15 Oct 2017 10:04:28 GMT</pubDate>
    <dc:creator>marcorusso</dc:creator>
    <dc:date>2017-10-15T10:04:28Z</dc:date>
    <item>
      <title>New and Returning Customers</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/168297#M13</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Name:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;New customers&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Description:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Calculate a measure filtering only the new customers in the selected period&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Parameters:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Name: Base value&lt;/P&gt;
&lt;P&gt;Tooltip: The value you want to calculate&lt;/P&gt;
&lt;P&gt;Type: Numerical field / measure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Name:FactTable&lt;/P&gt;
&lt;P&gt;Tooltip: The table containing the data used in Base value&lt;/P&gt;
&lt;P&gt;Type: Table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Name: DateOfTransaction&lt;/P&gt;
&lt;P&gt;Tooltip: The column containing the date of the transaction in the fact table (see FactTable)&lt;/P&gt;
&lt;P&gt;Type: Column&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Name: DateColumn&lt;/P&gt;
&lt;P&gt;Tooltip: The column Date in the Date table&lt;/P&gt;
&lt;P&gt;Type: Column&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Name: CustomerKeyColumn&lt;/P&gt;
&lt;P&gt;Tooltip: The column containing the customer identified in the customers table&lt;/P&gt;
&lt;P&gt;Type: Column&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{Base value} New Customers = &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAR FirstPurchaseCustomers =&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADDCOLUMNS (&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ALL ( {CustomerKeyColumn} ),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "DateOfFirstBuy", CALCULATE ( MIN ( {DateTransaction} ), ALLEXCEPT ( {FactTable}, {CustomerKeyColumn} ) )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAR NewCustomers =&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILTER (&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstPurchaseCustomers,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONTAINS ( VALUES ( {DateColumn} ), {DateColumn}, [DateOfFirstBuy] )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RETURN&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALCULATE ( &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {Base value}, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NewCustomers&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sales New Customers&lt;/SPAN&gt; =&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;VAR&lt;/SPAN&gt; FirstPurchaseCustomers =&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;ADDCOLUMNS&lt;/SPAN&gt; (&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;ALL&lt;/SPAN&gt; ( &lt;SPAN&gt;Sales[CustomerKey]&lt;/SPAN&gt; ),&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;"DateOfFirstBuy"&lt;/SPAN&gt;, &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt; ( &lt;SPAN&gt;MIN&lt;/SPAN&gt; ( &lt;SPAN&gt;Sales[Order Date]&lt;/SPAN&gt; ), &lt;SPAN&gt;ALLEXCEPT&lt;/SPAN&gt; ( Sales, &lt;SPAN&gt;Sales[CustomerKey]&lt;/SPAN&gt; ) )&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;VAR&lt;/SPAN&gt; NewCustomers =&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;FILTER&lt;/SPAN&gt; (&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FirstPurchaseCustomers,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;CONTAINS&lt;/SPAN&gt; ( &lt;SPAN&gt;VALUES&lt;/SPAN&gt; ( &lt;SPAN&gt;'Date'[Date]&lt;/SPAN&gt; ), &lt;SPAN&gt;'Date'[Date]&lt;/SPAN&gt;, &lt;SPAN&gt;[DateOfFirstBuy]&lt;/SPAN&gt; )&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt; ( &lt;SPAN&gt;[Sales Amount]&lt;/SPAN&gt;, NewCustomers )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="reportid hidden"&gt;eyJrIjoiODhiNTg0YzAtNmU5MC00YTBjLTlmODUtZmY5ZTJkYTE0MjcxIiwidCI6ImY1NDViZDY2LTdjM2YtNDcyOS04NTFhLWI3Y2EzYWM5ZmI2ZSIsImMiOjh9&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 05:16:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/168297#M13</guid>
      <dc:creator>marcorusso</dc:creator>
      <dc:date>2017-05-03T05:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: New and Returning Customers</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/184017#M16</link>
      <description>&lt;P&gt;Great Measure, thnx!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is it possible to make it so that filters can also be applied?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 15:37:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/184017#M16</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-29T15:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: New and Returning Customers</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/270168#M58</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="41" data-lia-user-login="marcorusso" class="lia-mention lia-mention-user"&gt;marcorusso&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i dont understand meaning of&amp;nbsp;&amp;nbsp;CONTAINS ( VALUES ( 'Date'[Date] ), 'Date'[Date], [DateOfFirstBuy] ), could you describe the underlying of it?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 06:46:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/270168#M58</guid>
      <dc:creator>tringuyenminh92</dc:creator>
      <dc:date>2017-10-06T06:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: New and Returning Customers</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/270252#M59</link>
      <description>&lt;P&gt;It checks whether the [DateOfFirstBuy] is in the list of dates included in the current filter context.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Marco Russo - &lt;A href="http://www.sqlbi.com" target="_blank"&gt;SQLBI&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 07:57:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/270252#M59</guid>
      <dc:creator>marcorusso</dc:creator>
      <dc:date>2017-10-06T07:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: New and Returning Customers</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/270783#M60</link>
      <description>&lt;P&gt;The addition of the quick measure into the October release brought me to your version...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I would like to do is see a to-date or year to-date view of how the new sales compares to all sales but my attempts so far have floundered. i.e. a running total of new sales&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I might also want to see how many sales we've made for new customers in year i.e. customer is seen as new from a certain date to another date rather than just a point in time.&amp;nbsp; If I drill up to years I know I can get that figure but not see a trend by period.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 15:21:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/270783#M60</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-06T15:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: New and Returning Customers</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/273600#M61</link>
      <description>&lt;P&gt;The Grand totals for the [Sales New Customers] column equal the Grand&amp;nbsp;totals for the [Sales Amount].....what can I do to get the&amp;nbsp;GrandTotals for [Sales New Customers] to equal -- the actual GrandTotals for the column? Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 21:42:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/273600#M61</guid>
      <dc:creator>belmore</dc:creator>
      <dc:date>2017-10-09T21:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: New and Returning Customers</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/278385#M62</link>
      <description>&lt;P&gt;Hey &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="41" data-lia-user-login="marcorusso" class="lia-mention lia-mention-user"&gt;marcorusso&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would this approach work fine - so without VARIABLE function and also a bit smaller code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;New Clients = COUNTROWS (FILTER (CALCULATETABLE (ADDCOLUMNS (VALUES ( Episodes[client_key] ),"DateOfFirstService", CALCULATE ( MIN ( 'Service Contacts'[Service Date] ) )), ALL ( 'Service Contacts'[Service Date] )), CONTAINS (VALUES ( 'Service Contacts'[Service Date] ), 'Service Contacts'[Service Date], [DateOfFirstService] )))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your fan :smileyhappy:,&lt;/P&gt;
&lt;P&gt;Abhijeet&lt;/P&gt;</description>
      <pubDate>Sun, 15 Oct 2017 05:14:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/278385#M62</guid>
      <dc:creator>CAPEconsulting</dc:creator>
      <dc:date>2017-10-15T05:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: New and Returning Customers</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/278418#M63</link>
      <description>&lt;P&gt;If you need to use older versions of DAX, avoiding variables makes sense. Otherwise, smaller code doesn't mean neither simpler nor faster code. Please remind that variables can help the engine to get more optimized query plans, avoiding to evaluate the same expression multiple times.&lt;/P&gt;
&lt;P&gt;It is not necessarily the case for this formula, but it could be in a complex query and in general it is a best practice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Marco Russo - &lt;A href="http://www.sqlbi.com" target="_blank"&gt;SQLBI&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Oct 2017 10:04:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/278418#M63</guid>
      <dc:creator>marcorusso</dc:creator>
      <dc:date>2017-10-15T10:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: New and Returning Customers</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/283007#M65</link>
      <description>&lt;P&gt;Thank you for your help. &amp;nbsp;I do not understand why the yearly subtotals do not sum correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example: Year 2007&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The martix&amp;nbsp;shows the following Sums for 2007&lt;/P&gt;
&lt;P&gt;Customers | &amp;nbsp;New Customers &amp;nbsp;| Returning Customers&lt;/P&gt;
&lt;P&gt;-1409 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-1409 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems&amp;nbsp;like the Sums should equal the following&lt;/P&gt;
&lt;P&gt;Customers | &amp;nbsp;New Customers &amp;nbsp;| Returning Customers&lt;/P&gt;
&lt;P&gt;-1498 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-1409 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-89&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 17:44:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/283007#M65</guid>
      <dc:creator>belmore</dc:creator>
      <dc:date>2017-10-19T17:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: New and Returning Customers</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/297601#M67</link>
      <description>&lt;P&gt;I agree,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The sums are wrong and make no sense.&amp;nbsp; This calculation should never be used in real world scenarios.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hey, If I calculate 1 +1 it equals 5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thats exactlly what you are teaching here...:)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 00:01:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/297601#M67</guid>
      <dc:creator>lcasey</dc:creator>
      <dc:date>2017-11-07T00:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: New and Returning Customers</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/331252#M89</link>
      <description>&lt;P&gt;I thought that was an error at first as well.&lt;BR /&gt;&lt;BR /&gt;It depends on how you interpret the meaning of subtotal. Once you think about it, the only way that makes sense is what Marco did. &lt;BR /&gt;&lt;BR /&gt;The subtotal row is filtered for the entire period above it. 2007 was the first year, so all customers are new customers in 2007 by definition. If the return customers subtotal was the total of each month's returning customers, new plus returning customers would be more than total customers. That wouldn't make sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So would the student &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="13903" data-lia-user-login="lcasey" class="lia-mention lia-mention-user"&gt;lcasey&lt;/a&gt;like to take over and show the class a better solution? :smileywink:&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 11:32:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/331252#M89</guid>
      <dc:creator>jason435</dc:creator>
      <dc:date>2018-01-02T11:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: New and Returning Customers</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/426048#M152</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What would the measure be for existing customers? or lost customers? this solves for the exact problem I am trying to solve!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Sun, 27 May 2018 05:05:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/426048#M152</guid>
      <dc:creator>kirko</dc:creator>
      <dc:date>2018-05-27T05:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: New and Returning Customers</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/468100#M170</link>
      <description>&lt;P&gt;This measure was returning more new customers than total customers until I modified this part of it:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VAR NewCustomers =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;&amp;nbsp; [Customers],&lt;BR /&gt;&amp;nbsp; FILTER (&lt;BR /&gt;&amp;nbsp; &amp;nbsp; FirstPurchaseCustomers,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; CONTAINS ( VALUES ( 'Date'[DateKey] ), 'Date'[DateKey], [DateOfFirstBuy] )&lt;BR /&gt;&amp;nbsp; &amp;nbsp;)&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;&amp;nbsp; NewCustomers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This now seems to be returning the correct values for me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 20:42:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/468100#M170</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-20T20:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: New and Returning Customers</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/468734#M171</link>
      <description>&lt;P&gt;That column name should be the column used for the relationship. You are probably using DateKey instead of Date.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jul 2018 20:30:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/468734#M171</guid>
      <dc:creator>marcorusso</dc:creator>
      <dc:date>2018-07-22T20:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: New and Returning Customers</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/496636#M197</link>
      <description>&lt;P&gt;Im wondering what would you do if I want to consider New Customers to be New customer only if they dont appear in previous year only? For example 2016= Customer, 2017=Not a customer then return 2018 then I want to count this customer in 2018 as well as in 2016. How may i acheive that?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you for your advice&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="41" data-lia-user-login="marcorusso" class="lia-mention lia-mention-user"&gt;marcorusso&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 20:40:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/m-p/496636#M197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-22T20:40:42Z</dc:date>
    </item>
  </channel>
</rss>

