<?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: Getting sorted data in bunches in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-sorted-data-in-bunches/m-p/3308379#M123605</link>
    <description>&lt;P&gt;You could use the WINDOW function, that allows you to order by whichever column you want and you can provide the offsets you need.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2023 14:08:45 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2023-06-29T14:08:45Z</dc:date>
    <item>
      <title>Getting sorted data in bunches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-sorted-data-in-bunches/m-p/3308292#M123596</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;We have a dataset with 100K rows in the following format:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And we have a flow that is getting data from this dataset&lt;/P&gt;&lt;P&gt;Due to the fact that flow cannot get all 100k rows in one go we are getting it in bunches of 25k rows, using autoincremented index, after that we are creating csv file from it - no problems so far.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But we also need to be able to sort&amp;nbsp; data by any of those columns and then get data in 25k rows bunches, so we cannot use min-max ID for that any more &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; , and becouse we have a lots of columns, creating index for each column is not an option, all to be done dynamically.&lt;BR /&gt;&amp;nbsp;So the question is - how can we get 100k rows of dynamicaly sorted data from dataset into flow ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 13:18:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-sorted-data-in-bunches/m-p/3308292#M123596</guid>
      <dc:creator>kroman</dc:creator>
      <dc:date>2023-06-29T13:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getting sorted data in bunches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-sorted-data-in-bunches/m-p/3308379#M123605</link>
      <description>&lt;P&gt;You could use the WINDOW function, that allows you to order by whichever column you want and you can provide the offsets you need.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 14:08:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-sorted-data-in-bunches/m-p/3308379#M123605</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-06-29T14:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Getting sorted data in bunches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-sorted-data-in-bunches/m-p/3310286#M123719</link>
      <description>&lt;P&gt;Thanks for your reply&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am trying it with WINDOW with following query on a 100 rows table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;SPAN&gt;EVALUATE&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;VAR&lt;/SPAN&gt; Window1 =&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;WINDOW&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;, &lt;SPAN&gt;REL&lt;/SPAN&gt;, &lt;SPAN&gt;5&lt;/SPAN&gt; , &lt;SPAN&gt;REL&lt;/SPAN&gt;, Data100Rows, &lt;SPAN&gt;MATCHBY&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Index]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; RETURN&lt;/SPAN&gt; Window1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it returns all 100 rows instead of 5 rows&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 13:41:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-sorted-data-in-bunches/m-p/3310286#M123719</guid>
      <dc:creator>kroman</dc:creator>
      <dc:date>2023-06-30T13:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting sorted data in bunches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-sorted-data-in-bunches/m-p/3310289#M123720</link>
      <description>&lt;P&gt;I think it wants to be ABS, not REL&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;EVALUATE
VAR Window1 =
    WINDOW ( 1, ABS, 5, ABS, Data100Rows, MATCHBY ( [Index] ) )
RETURN
    Window1
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 30 Jun 2023 13:43:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-sorted-data-in-bunches/m-p/3310289#M123720</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-06-30T13:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting sorted data in bunches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-sorted-data-in-bunches/m-p/3310303#M123721</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":sleepy_face:"&gt;😪&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 13:51:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-sorted-data-in-bunches/m-p/3310303#M123721</guid>
      <dc:creator>kroman</dc:creator>
      <dc:date>2023-06-30T13:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Getting sorted data in bunches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-sorted-data-in-bunches/m-p/3310327#M123724</link>
      <description>&lt;P&gt;If you're getting all the data each time, does it matter what order it is in ? Also, have you considered using a Live Connected xlsx file rather than exporting to CSV ?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 14:02:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-sorted-data-in-bunches/m-p/3310327#M123724</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-06-30T14:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting sorted data in bunches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-sorted-data-in-bunches/m-p/3310334#M123726</link>
      <description>&lt;P&gt;100 rows is just for testing&lt;BR /&gt;we have a 200k rows dataset which we need to convert into csv with a Flow (powerautomate), and flow can only take 25-30k rows in one go, so I am doing some looping to get all the data. But we also need to sort that data by different columns before getting it to csv&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 14:09:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-sorted-data-in-bunches/m-p/3310334#M123726</guid>
      <dc:creator>kroman</dc:creator>
      <dc:date>2023-06-30T14:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Getting sorted data in bunches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-sorted-data-in-bunches/m-p/3311598#M123827</link>
      <description>&lt;P&gt;Finaly works with&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;WINDOW(0, REL, 10 , ABS &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 18:08:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-sorted-data-in-bunches/m-p/3311598#M123827</guid>
      <dc:creator>kroman</dc:creator>
      <dc:date>2023-07-02T18:08:09Z</dc:date>
    </item>
  </channel>
</rss>

