<?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 number of changes to a date over last 3 months in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Count-number-of-changes-to-a-date-over-last-3-months/m-p/2383784#M856425</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;would you please be able to give me some advice on the above with regards to taking the year into account?&lt;/P&gt;</description>
    <pubDate>Wed, 09 Mar 2022 15:01:42 GMT</pubDate>
    <dc:creator>obriaincian</dc:creator>
    <dc:date>2022-03-09T15:01:42Z</dc:date>
    <item>
      <title>Count number of changes to a date over last 3 months</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Count-number-of-changes-to-a-date-over-last-3-months/m-p/2380898#M855615</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a sample of the data what I have. What I want to do is count the number of date changes to a SKU &lt;STRONG&gt;for the past 3 months only.&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;SKU&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Expiry Date&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Dec-21&lt;/TD&gt;&lt;TD&gt;PPPT-01&lt;/TD&gt;&lt;TD&gt;25/01/2024&lt;/TD&gt;&lt;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lt;TD&gt;Mar-22&lt;/TD&gt;&lt;TD&gt;ERRE-66&lt;/TD&gt;&lt;TD&gt;23/08/2025&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to output the results in a matrix that might look like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;SKU&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Number of date changes&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;PPPT-01&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;WEC-54&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ERRE-66&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 10:07:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Count-number-of-changes-to-a-date-over-last-3-months/m-p/2380898#M855615</guid>
      <dc:creator>obriaincian</dc:creator>
      <dc:date>2022-03-08T10:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of changes to a date over last 3 months</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Count-number-of-changes-to-a-date-over-last-3-months/m-p/2380961#M855633</link>
      <description>&lt;P&gt;For some reason the tables above are not formatting correctly.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 10:08:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Count-number-of-changes-to-a-date-over-last-3-months/m-p/2380961#M855633</guid>
      <dc:creator>obriaincian</dc:creator>
      <dc:date>2022-03-08T10:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of changes to a date over last 3 months</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Count-number-of-changes-to-a-date-over-last-3-months/m-p/2380973#M855636</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="351824" data-lia-user-login="obriaincian" class="lia-mention lia-mention-user"&gt;obriaincian&lt;/a&gt; , try a measure like, Make sure you have date or create date using month year &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rolling 3 = CALCULATE(distinctcount(Table[&lt;STRONG&gt;Expiry Date&lt;/STRONG&gt;]) ,DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-3,MONTH))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer if needed&lt;/P&gt;
&lt;P&gt;Rolling Days Formula: &lt;A href="https://youtu.be/cJVj5nhkKBw" target="_blank"&gt;https://youtu.be/cJVj5nhkKBw&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 10:12:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Count-number-of-changes-to-a-date-over-last-3-months/m-p/2380973#M855636</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-08T10:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of changes to a date over last 3 months</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Count-number-of-changes-to-a-date-over-last-3-months/m-p/2381556#M855803</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Unfortunately this doesn't work with the Date being in mmm-yy format. It is returning the last 3 months but it is not taking the year into account.&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. it is returning Jan 22 and Jan 21 when used on my actual dataset.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 15:20:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Count-number-of-changes-to-a-date-over-last-3-months/m-p/2381556#M855803</guid>
      <dc:creator>obriaincian</dc:creator>
      <dc:date>2022-03-08T15:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of changes to a date over last 3 months</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Count-number-of-changes-to-a-date-over-last-3-months/m-p/2383784#M856425</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;would you please be able to give me some advice on the above with regards to taking the year into account?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 15:01:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Count-number-of-changes-to-a-date-over-last-3-months/m-p/2383784#M856425</guid>
      <dc:creator>obriaincian</dc:creator>
      <dc:date>2022-03-09T15:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of changes to a date over last 3 months</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Count-number-of-changes-to-a-date-over-last-3-months/m-p/2387990#M857558</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="351824" data-lia-user-login="obriaincian" class="lia-mention lia-mention-user"&gt;obriaincian&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to ceate a measure like below:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = CALCULATE(DISTINCTCOUNT('Table'[Date]),ALLEXCEPT('Table','Table'[SKU]),DATESINPERIOD('Table'[Date],TODAY(),-3,MONTH))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 07:35:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Count-number-of-changes-to-a-date-over-last-3-months/m-p/2387990#M857558</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2022-03-11T07:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of changes to a date over last 3 months</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Count-number-of-changes-to-a-date-over-last-3-months/m-p/2388397#M857656</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="182446" data-lia-user-login="V-lianl-msft" class="lia-mention lia-mention-user"&gt;V-lianl-msft&lt;/a&gt;&amp;nbsp;thank you for your response. However it isn't a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I may not have explained myself clearly. What I need to do is filter the "Date" column for all rows where date is within the last 3 months i.e. Jan-21, Feb-21,Mar-21.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once I have that done I need to then check how many changes occured in the "Expiry Date" column for each SKU?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that makes sense?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 10:17:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Count-number-of-changes-to-a-date-over-last-3-months/m-p/2388397#M857656</guid>
      <dc:creator>obriaincian</dc:creator>
      <dc:date>2022-03-11T10:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of changes to a date over last 3 months</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Count-number-of-changes-to-a-date-over-last-3-months/m-p/2408771#M863467</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="351824" data-lia-user-login="obriaincian" class="lia-mention lia-mention-user"&gt;obriaincian&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please modify the measure like below:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = CALCULATE(DISTINCTCOUNT('Table'[Date]),ALLEXCEPT('Table','Table'[SKU]),DATESINPERIOD('Table'[Date],MAX('Table'[Date]),-3,MONTH))-1&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 08:21:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Count-number-of-changes-to-a-date-over-last-3-months/m-p/2408771#M863467</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2022-03-22T08:21:31Z</dc:date>
    </item>
  </channel>
</rss>

