<?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: CLYCLICAL WEEKS IN POWERBI/POWERQUERY in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/CLYCLICAL-WEEKS-IN-POWERBI-POWERQUERY/m-p/2164058#M21527</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = {1..53},
    #"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    #"Added Custom" = Table.AddColumn(#"Converted to Table", "Custom", each List.Range(Source &amp;amp; Source,[Column1]-1,5)),
    #"Extracted Values" = Table.TransformColumns(#"Added Custom", {"Custom", each Text.Combine(List.Transform(_, Text.From), ","), type text})
in
    #"Extracted Values"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to use this code: Create a new Blank Query. Click on "Advanced Editor". Replace the code in the window with the code provided here. Click "Done".&lt;/P&gt;</description>
    <pubDate>Sat, 30 Oct 2021 00:29:08 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2021-10-30T00:29:08Z</dc:date>
    <item>
      <title>CLYCLICAL WEEKS IN POWERBI/POWERQUERY</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/CLYCLICAL-WEEKS-IN-POWERBI-POWERQUERY/m-p/2161226#M21514</link>
      <description>&lt;PRE&gt;&lt;SPAN class="Y2IQFc"&gt;Good day,
I have a list of weeks of the year and I want to group them into groups of 5, for example:
-week 1: 1,2,3,4,5
-week 2: 2,3,4,5,6
The problem I have is that when I get to the last weeks, I wish that when I get to 53, I go back to the beginning, for example:
-week 50: 51,52,53,1,2
-week 51: 51,52,53,1,2,3
Is there a way to do it by powerquery?
In other words I want the list to be cyclical&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 16:08:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/CLYCLICAL-WEEKS-IN-POWERBI-POWERQUERY/m-p/2161226#M21514</guid>
      <dc:creator>abegum</dc:creator>
      <dc:date>2021-10-28T16:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: CLYCLICAL WEEKS IN POWERBI/POWERQUERY</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/CLYCLICAL-WEEKS-IN-POWERBI-POWERQUERY/m-p/2164058#M21527</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = {1..53},
    #"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    #"Added Custom" = Table.AddColumn(#"Converted to Table", "Custom", each List.Range(Source &amp;amp; Source,[Column1]-1,5)),
    #"Extracted Values" = Table.TransformColumns(#"Added Custom", {"Custom", each Text.Combine(List.Transform(_, Text.From), ","), type text})
in
    #"Extracted Values"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to use this code: Create a new Blank Query. Click on "Advanced Editor". Replace the code in the window with the code provided here. Click "Done".&lt;/P&gt;</description>
      <pubDate>Sat, 30 Oct 2021 00:29:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/CLYCLICAL-WEEKS-IN-POWERBI-POWERQUERY/m-p/2164058#M21527</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-10-30T00:29:08Z</dc:date>
    </item>
  </channel>
</rss>

