<?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: Counting unique number of products that were on offer in the past and are now in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-unique-number-of-products-that-were-on-offer-in-the/m-p/2845680#M91056</link>
    <description>&lt;P&gt;Thank you so much for a help!!&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2022 06:44:01 GMT</pubDate>
    <dc:creator>Faustyna</dc:creator>
    <dc:date>2022-10-17T06:44:01Z</dc:date>
    <item>
      <title>Counting unique number of products that were on offer in the past and are now</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-unique-number-of-products-that-were-on-offer-in-the/m-p/2830956#M90186</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to count unique number of products that were in the assortment, for example, in January and are now. I can't do normally: calculate(DISTINCTCOUNT(Assort[ProductId]),month(Assort[AssortDate])=1), because I will count SKUs that were in the assortment in January, and I wanted to count those that were in January and are still there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any idea how to count it?I would like to get a table that will show by months the number of products that were on sale in January and are still sold in each month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be grateful for your help&lt;/P&gt;&lt;P&gt;Faustina&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 12:14:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-unique-number-of-products-that-were-on-offer-in-the/m-p/2830956#M90186</guid>
      <dc:creator>Faustyna</dc:creator>
      <dc:date>2022-10-10T12:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Counting unique number of products that were on offer in the past and are now</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-unique-number-of-products-that-were-on-offer-in-the/m-p/2831158#M90200</link>
      <description>&lt;P&gt;Try creating a measure like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Still on sale =
VAR JanProducts =
    CALCULATETABLE (
        VALUES ( Assort[ProductId] ),
        MONTH ( Assort[AssortDate] ) = 1
    )
VAR CurrentMonth =
    MONTH ( MAX ( 'Date'[Date] ) )
VAR CurrentProducts =
    CALCULATETABLE (
        VALUES ( Assort[ProductId] ),
        MONTH ( Assort[AssortDate] ) = CurrentMonth
    )
RETURN
    COUNTROWS ( INTERSECT ( CurrentProducts, JanProducts ) )
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 10 Oct 2022 13:23:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-unique-number-of-products-that-were-on-offer-in-the/m-p/2831158#M90200</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-10-10T13:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Counting unique number of products that were on offer in the past and are now</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-unique-number-of-products-that-were-on-offer-in-the/m-p/2845680#M91056</link>
      <description>&lt;P&gt;Thank you so much for a help!!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 06:44:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-unique-number-of-products-that-were-on-offer-in-the/m-p/2845680#M91056</guid>
      <dc:creator>Faustyna</dc:creator>
      <dc:date>2022-10-17T06:44:01Z</dc:date>
    </item>
  </channel>
</rss>

