<?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 New Customers based on Slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Customers-based-on-Slicer/m-p/1077565#M15143</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I want to calculate &lt;STRONG&gt;new&lt;/STRONG&gt; customer Trend on date column based on slicer&amp;nbsp; (Type).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When Slicer selection Type = "ALL", this customer should show as new&amp;nbsp; on 1/1/2020&lt;/P&gt;&lt;P&gt;When Slicer selection Type = A, this customer should show as new&amp;nbsp; on 1/1/2020&lt;/P&gt;&lt;P&gt;When Slicer selection Type = B, this customer should show as new&amp;nbsp; on 1/2/2020&lt;/P&gt;&lt;P&gt;When Slicer selection Type = C, this customer should show as new&amp;nbsp; on 2/1/2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using Earlier DAX function but Earlier is not helping with the slicer. Can we have a dynamic measure to get the new customers based on slicer selection option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 May 2020 00:30:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-07T00:30:22Z</dc:date>
    <item>
      <title>New Customers based on Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Customers-based-on-Slicer/m-p/1077565#M15143</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I want to calculate &lt;STRONG&gt;new&lt;/STRONG&gt; customer Trend on date column based on slicer&amp;nbsp; (Type).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When Slicer selection Type = "ALL", this customer should show as new&amp;nbsp; on 1/1/2020&lt;/P&gt;&lt;P&gt;When Slicer selection Type = A, this customer should show as new&amp;nbsp; on 1/1/2020&lt;/P&gt;&lt;P&gt;When Slicer selection Type = B, this customer should show as new&amp;nbsp; on 1/2/2020&lt;/P&gt;&lt;P&gt;When Slicer selection Type = C, this customer should show as new&amp;nbsp; on 2/1/2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using Earlier DAX function but Earlier is not helping with the slicer. Can we have a dynamic measure to get the new customers based on slicer selection option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 00:30:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Customers-based-on-Slicer/m-p/1077565#M15143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-07T00:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: New Customers based on Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Customers-based-on-Slicer/m-p/1077989#M15161</link>
      <description>&lt;P&gt;hi&amp;nbsp;&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, you should know that:&lt;/P&gt;
&lt;P&gt;1. Calculation column/table not support dynamic changed based on filter or slicer.&lt;BR /&gt;2. Measure can be affected by filter/slicer, so you can use it to get dynamic summary result.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.sqlbi.com%2Farticles%2Fcalculated-columns-and-measures-in-dax%2F&amp;amp;data=02%7C01%7Cv-lili6%40microsoft.com%7Ce38983e3c20d4a051e1108d7ed9cdfb5%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637239130336804757&amp;amp;sdata=U9TlKfKDiQj1%2B%2Bol7hWLE5tHsWUaJbFvjeAlThFRgQA%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;https://www.sqlbi.com/articles/calculated-columns-and-measures-in-dax/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Second, for your case, you could try this measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
IF(SELECTEDVALUE('Table'[Date])=CALCULATE(MIN('Table'[Date]),ALLSELECTED('Table')),"New")&lt;/LI-CODE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 2 = 
IF(SELECTEDVALUE('Table'[Date])=CALCULATE(MIN('Table'[Date]),FILTER(ALLSELECTED('Table'),'Table'[ID]=MAX('Table'[ID]))), "New")&lt;/LI-CODE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and here is sample pbix file, please try it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lin&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 04:19:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Customers-based-on-Slicer/m-p/1077989#M15161</guid>
      <dc:creator>v-lili6-msft</dc:creator>
      <dc:date>2020-05-07T04:19:53Z</dc:date>
    </item>
  </channel>
</rss>

