<?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 180 days loop in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/180-days-loop/m-p/3749761#M50206</link>
    <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with thosuands of parts that are received into our system.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's say Column A is the ItemID which is the part number and Column B is the Date that was received.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is to check if a given part has entered into our system more than 5 times in a given 180 days period. So, at this point, I made something that works but it only checks for the last 180 days from today. I want to build something that can check for any 180 days for 5 batches received.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, let's say if one part was received for 5 times between Jan 1st and July 1st for 5 times back in 2020, I want to flag that part.&lt;/P&gt;&lt;P&gt;Here is my current code with the 180 days from today thing.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;#"Filtered Rows1" = Table.SelectRows(#"Filtered Rows", each [CREATEDDATETIME] &amp;gt; DateTime.LocalNow() - #duration(180, 0, 0, 0)),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;#"Grouped Rows" = Table.Group(#"Filtered Rows1", {"ItemId", "ItemName"}, {{"Count", each Table.RowCount(_), Int64.Type}}),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;#"Filtered Rows2" = Table.SelectRows(#"Grouped Rows", each [Count] &amp;gt;= 5)&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2024 22:17:02 GMT</pubDate>
    <dc:creator>power2</dc:creator>
    <dc:date>2024-03-07T22:17:02Z</dc:date>
    <item>
      <title>180 days loop</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/180-days-loop/m-p/3749761#M50206</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with thosuands of parts that are received into our system.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's say Column A is the ItemID which is the part number and Column B is the Date that was received.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is to check if a given part has entered into our system more than 5 times in a given 180 days period. So, at this point, I made something that works but it only checks for the last 180 days from today. I want to build something that can check for any 180 days for 5 batches received.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, let's say if one part was received for 5 times between Jan 1st and July 1st for 5 times back in 2020, I want to flag that part.&lt;/P&gt;&lt;P&gt;Here is my current code with the 180 days from today thing.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;#"Filtered Rows1" = Table.SelectRows(#"Filtered Rows", each [CREATEDDATETIME] &amp;gt; DateTime.LocalNow() - #duration(180, 0, 0, 0)),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;#"Grouped Rows" = Table.Group(#"Filtered Rows1", {"ItemId", "ItemName"}, {{"Count", each Table.RowCount(_), Int64.Type}}),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;#"Filtered Rows2" = Table.SelectRows(#"Grouped Rows", each [Count] &amp;gt;= 5)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 22:17:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/180-days-loop/m-p/3749761#M50206</guid>
      <dc:creator>power2</dc:creator>
      <dc:date>2024-03-07T22:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: 180 days loop</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/180-days-loop/m-p/3749823#M50208</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/662516"&gt;@power2&lt;/a&gt;&amp;nbsp;So, I would create a Parameter and then replace DateTime.LocalNow() with the name of that Parameter.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 22:54:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/180-days-loop/m-p/3749823#M50208</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-03-07T22:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: 180 days loop</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/180-days-loop/m-p/3749829#M50209</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for the advise. In this case, how would that parameter look like? Can you be a little more specific?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 22:56:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/180-days-loop/m-p/3749829#M50209</guid>
      <dc:creator>power2</dc:creator>
      <dc:date>2024-03-07T22:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: 180 days loop</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/180-days-loop/m-p/3749838#M50210</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/662516"&gt;@power2&lt;/a&gt;&amp;nbsp;I would think something like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Greg_Deckler_0-1709852439229.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1056186iABCE0C4220B7ED04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Greg_Deckler_0-1709852439229.png" alt="Greg_Deckler_0-1709852439229.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 23:00:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/180-days-loop/m-p/3749838#M50210</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-03-07T23:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: 180 days loop</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/180-days-loop/m-p/3749841#M50211</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks. I will give this a try.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 23:01:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/180-days-loop/m-p/3749841#M50211</guid>
      <dc:creator>power2</dc:creator>
      <dc:date>2024-03-07T23:01:43Z</dc:date>
    </item>
  </channel>
</rss>

