<?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: Count New and Missing Entries compared to previous week in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-New-and-Missing-Entries-compared-to-previous-week/m-p/1672383#M34198</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;Thank you so much for your support! I am just wondering - from a Dax Performance Point of View - if this is a good approach If I use to review the last 3 years on a weekly basis. Please correct me if I am wrong, but EXCEPT compared tables. That would mean that I have to create a table for each week, right?&lt;/P&gt;</description>
    <pubDate>Wed, 17 Feb 2021 17:04:20 GMT</pubDate>
    <dc:creator>joshua1990</dc:creator>
    <dc:date>2021-02-17T17:04:20Z</dc:date>
    <item>
      <title>Count New and Missing Entries compared to previous week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-New-and-Missing-Entries-compared-to-previous-week/m-p/1669988#M34134</link>
      <description>&lt;P&gt;I have a transactional table that contains all Items/ Products, that were sold in the corresponding week.&lt;/P&gt;&lt;P&gt;The table has a structure like this:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;08.02.2021&lt;/TD&gt;&lt;TD&gt;AA1&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;08.02.2021&lt;/TD&gt;&lt;TD&gt;AA2&lt;/TD&gt;&lt;TD&gt;105&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;08.02.2021&lt;/TD&gt;&lt;TD&gt;AA3&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15.02.2021&lt;/TD&gt;&lt;TD&gt;AA1&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15.02.2021&lt;/TD&gt;&lt;TD&gt;AA4&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This table is linked with our calendar table and our Department Dimensional table.&lt;/P&gt;&lt;P&gt;The entries are made once every week.&lt;/P&gt;&lt;P&gt;Now I would like to determine 3 results:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;How many different/ unique Products were sold per week&lt;/LI&gt;&lt;LI&gt;How many new products were sold compared to the previous week&lt;/LI&gt;&lt;LI&gt;How many old products (no entry) were sold compared to the previous week.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;How would you calculate this?&lt;/P&gt;&lt;P&gt;In the end, I would like to use a Matrix with a Department Level as a row to show these results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 17:39:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-New-and-Missing-Entries-compared-to-previous-week/m-p/1669988#M34134</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2021-02-16T17:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Count New and Missing Entries compared to previous week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-New-and-Missing-Entries-compared-to-previous-week/m-p/1670632#M34160</link>
      <description>&lt;P&gt;you stuff the transactions for the two dates you want to compare into separate table variables and the use EXCEPT() to find the difference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's say table A are the products sold on Feb 8 and table B the products sold on Feb 15.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EXCEPT (B,A) answers question 2, EXCEPT(A,B) answers question 3.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 03:32:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-New-and-Missing-Entries-compared-to-previous-week/m-p/1670632#M34160</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-02-17T03:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Count New and Missing Entries compared to previous week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-New-and-Missing-Entries-compared-to-previous-week/m-p/1670766#M34164</link>
      <description>&lt;P&gt;Thanks. Is there any other way?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 05:20:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-New-and-Missing-Entries-compared-to-previous-week/m-p/1670766#M34164</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2021-02-17T05:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count New and Missing Entries compared to previous week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-New-and-Missing-Entries-compared-to-previous-week/m-p/1671717#M34183</link>
      <description>&lt;P&gt;There are always multiple ways to do that. What do you not like about my proposal?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 12:31:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-New-and-Missing-Entries-compared-to-previous-week/m-p/1671717#M34183</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-02-17T12:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count New and Missing Entries compared to previous week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-New-and-Missing-Entries-compared-to-previous-week/m-p/1672383#M34198</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;Thank you so much for your support! I am just wondering - from a Dax Performance Point of View - if this is a good approach If I use to review the last 3 years on a weekly basis. Please correct me if I am wrong, but EXCEPT compared tables. That would mean that I have to create a table for each week, right?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 17:04:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-New-and-Missing-Entries-compared-to-previous-week/m-p/1672383#M34198</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2021-02-17T17:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Count New and Missing Entries compared to previous week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-New-and-Missing-Entries-compared-to-previous-week/m-p/1672422#M34200</link>
      <description>&lt;P&gt;Yes, but these would be dynamic table variables that you can create directly in DAX and then throw away again when you return the results.&amp;nbsp; That way you can compare any time period to any other time period in a flexible way.&amp;nbsp; I wouldn't be worried about peformance for that. Of course you'll have to test it and see if you get acceptable performance out of it.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 17:25:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-New-and-Missing-Entries-compared-to-previous-week/m-p/1672422#M34200</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-02-17T17:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Count New and Missing Entries compared to previous week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-New-and-Missing-Entries-compared-to-previous-week/m-p/1673856#M34243</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;joshua1990：&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Your request is&amp;nbsp;similar to the calculation of New Customer Old customer, and Return Customer. So the first thing you need to clearly define what is the New production ？&lt;BR /&gt;1. the week of the current filter contents = the week of the first sales week in your whole fact table&amp;nbsp;&lt;BR /&gt;&lt;EM&gt;2. OR&lt;/EM&gt;&amp;nbsp; the week of the current filter contents = the week of the launch date week&amp;nbsp;in your product dimension table&lt;BR /&gt;If the definition is 1, SQLBI.com DAX Pattern has the article to explain how to calculate.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 07:43:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-New-and-Missing-Entries-compared-to-previous-week/m-p/1673856#M34243</guid>
      <dc:creator>jameszhang0805</dc:creator>
      <dc:date>2021-02-18T07:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count New and Missing Entries compared to previous week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-New-and-Missing-Entries-compared-to-previous-week/m-p/1674803#M34280</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see below for a potential solution to your question. A measure is calculated to sum the sales in the period (week or month) before. You can then filter our records with of without sales in the previous period.&lt;/P&gt;
&lt;P&gt;Working code available &lt;STRONG&gt;&lt;A href="https://dax.do/o8k2TXPcIpChCt/" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 13:23:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-New-and-Missing-Entries-compared-to-previous-week/m-p/1674803#M34280</guid>
      <dc:creator>stevedep</dc:creator>
      <dc:date>2021-02-18T13:23:27Z</dc:date>
    </item>
  </channel>
</rss>

