<?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 Sortorder in Report Builder in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Sortorder-in-Report-Builder/m-p/3061032#M28717</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Power Bi I have a FactTable of 227 project records with Start Dates starting from 1 Jan 2017 till 26 jan 2023. In PQ i added an Index Column starting from latest Start Date&amp;nbsp; 26 jan 23 (Index 1) till 1 Jan 2017 (Index&amp;nbsp; 227)&amp;nbsp; &amp;nbsp;.&lt;/P&gt;&lt;P&gt;I am loading in Reporting Builder 5 fields from the PowerBI dataset: Year (=YEAR([Date])) ClientType (text) Location(text) Project (text) Sector(text) using the Query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EVALUATE SUMMARIZECOLUMNS('ReferenceList'[Year], 'ReferenceList'[ClientType], 'ReferenceList'[Location], 'ReferenceList'[Project], 'ReferenceList'[Sector])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Report Builder a Tablix is used and all 5 Fields are dropped in the&amp;nbsp; Value&amp;nbsp; box&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue: The Sorting Order is not correct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are 5 pages and 46 lines per page. The first 3 pages is in ascending order till 1 jan 2017.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But then the Project Years start with 2021 , then 2020,&amp;nbsp; then 2019, then 2022, then 2022 , then 2018...later 2023 the year are all over the place.&lt;/P&gt;&lt;P&gt;How can I force a sorting order (descending from Start dates 2023 -&amp;gt; 2017) either at the source data or in the Query ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Feb 2023 20:21:43 GMT</pubDate>
    <dc:creator>Swalker</dc:creator>
    <dc:date>2023-02-03T20:21:43Z</dc:date>
    <item>
      <title>Sortorder in Report Builder</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Sortorder-in-Report-Builder/m-p/3061032#M28717</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Power Bi I have a FactTable of 227 project records with Start Dates starting from 1 Jan 2017 till 26 jan 2023. In PQ i added an Index Column starting from latest Start Date&amp;nbsp; 26 jan 23 (Index 1) till 1 Jan 2017 (Index&amp;nbsp; 227)&amp;nbsp; &amp;nbsp;.&lt;/P&gt;&lt;P&gt;I am loading in Reporting Builder 5 fields from the PowerBI dataset: Year (=YEAR([Date])) ClientType (text) Location(text) Project (text) Sector(text) using the Query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EVALUATE SUMMARIZECOLUMNS('ReferenceList'[Year], 'ReferenceList'[ClientType], 'ReferenceList'[Location], 'ReferenceList'[Project], 'ReferenceList'[Sector])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Report Builder a Tablix is used and all 5 Fields are dropped in the&amp;nbsp; Value&amp;nbsp; box&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue: The Sorting Order is not correct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are 5 pages and 46 lines per page. The first 3 pages is in ascending order till 1 jan 2017.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But then the Project Years start with 2021 , then 2020,&amp;nbsp; then 2019, then 2022, then 2022 , then 2018...later 2023 the year are all over the place.&lt;/P&gt;&lt;P&gt;How can I force a sorting order (descending from Start dates 2023 -&amp;gt; 2017) either at the source data or in the Query ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 20:21:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Sortorder-in-Report-Builder/m-p/3061032#M28717</guid>
      <dc:creator>Swalker</dc:creator>
      <dc:date>2023-02-03T20:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sortorder in Report Builder</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Sortorder-in-Report-Builder/m-p/3061421#M28719</link>
      <description>&lt;P&gt;I have solved this issue as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EVALUATE SUMMARIZECOLUMNS('ReferenceList'[Index],'ReferenceList'[Year], 'ReferenceList'[ClientType], 'ReferenceList'[Location], 'ReferenceList'[Project], 'ReferenceList'[Sector]) ORDER BY 'ReferenceList'[Index] ASC&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* include column [Index] in EVALUATE statement&amp;nbsp;&lt;/P&gt;&lt;P&gt;* use ORDER BY [Index] ASC&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2023 09:36:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Sortorder-in-Report-Builder/m-p/3061421#M28719</guid>
      <dc:creator>Swalker</dc:creator>
      <dc:date>2023-02-04T09:36:55Z</dc:date>
    </item>
  </channel>
</rss>

