<?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: Sort Order issue in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Sort-Order-issue/m-p/4895700#M42586</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just a simple idea which may or may not help. But your sort order column is of format 'Text' so it wont easily order as a text format. If you change this to Interger it can be sorted in the order you might want it to be?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
    <pubDate>Mon, 08 Dec 2025 08:59:09 GMT</pubDate>
    <dc:creator>MichaelVenables</dc:creator>
    <dc:date>2025-12-08T08:59:09Z</dc:date>
    <item>
      <title>Sort Order issue</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Sort-Order-issue/m-p/4894610#M42562</link>
      <description>&lt;P&gt;I created a data table so my visuals&amp;nbsp;will sort properly, but it appears about 239 of the answers are unique in such a way its causing the selection to sort&amp;nbsp;by not to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I check the data I can see all the unique free text answers result in a null value for the sort order, so the error message makes sense im trying to rack my brain how to best fix this&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I know I could replace the Answers with a numeric number to force them in a specific order but that seems like a chest, is there a way to make this work?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 19:40:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Sort-Order-issue/m-p/4894610#M42562</guid>
      <dc:creator>JediMole</dc:creator>
      <dc:date>2025-12-05T19:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Order issue</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Sort-Order-issue/m-p/4894616#M42563</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="821523" data-lia-user-login="JediMole" class="lia-mention lia-mention-user"&gt;JediMole&lt;/a&gt;&amp;nbsp;Could you replace all null values with a random number that is 12 or greater? You could make the range large enough that you would likely not get duplicates. Another thought, do you really need the Additional Comments for what you are doing? You could simply get rid of those if they are not really that important or move those to another, linked table.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 19:55:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Sort-Order-issue/m-p/4894616#M42563</guid>
      <dc:creator>GeraldGEmerick</dc:creator>
      <dc:date>2025-12-05T19:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Order issue</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Sort-Order-issue/m-p/4894634#M42564</link>
      <description>&lt;P&gt;I could replace the Nulls, I did replace them with just a 0 (zero) but I didnt try all unique numbers.&amp;nbsp; I do need the additional as I have another drill thru visual the team uses&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 20:13:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Sort-Order-issue/m-p/4894634#M42564</guid>
      <dc:creator>JediMole</dc:creator>
      <dc:date>2025-12-05T20:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Order issue</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Sort-Order-issue/m-p/4894646#M42566</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="821523" data-lia-user-login="JediMole" class="lia-mention lia-mention-user"&gt;JediMole&lt;/a&gt;&amp;nbsp;I have created a Power Query logic that automatically assigns a new Sort Order value to manually entered answers. This prevents errors when sorting by other columns and ensures consistent ranking. Attached the file and power query for your reference.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Csv.Document(File.Contents("C:\Users\jaike\Downloads\rank.csv"), [Delimiter=",", Columns=3, Encoding=1252]),
    #"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),
    #"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"Sort Order", Int64.Type}}),
    MaxRank = try List.Max(List.RemoveNulls(#"Changed Type"[Sort Order])) otherwise 0,
    NullAnswerKeys = Table.Distinct(Table.SelectColumns(Table.SelectRows(#"Changed Type", each [Sort Order] = null), {"Answer"})),
    RankedNullKeys = Table.AddIndexColumn(NullAnswerKeys, "NewRank", MaxRank + 1, 1),
    Joined = Table.NestedJoin(#"Changed Type", "Answer", RankedNullKeys, "Answer", "New", JoinKind.LeftOuter),
    Expanded = Table.ExpandTableColumn(Joined, "New", {"NewRank"}, {"NewRank"}),
    Final = Table.AddColumn(Expanded, "New Sort Order", each if [Sort Order] = null then [NewRank] else [Sort Order], Int64.Type),
    Output = Table.RemoveColumns(Final, {"NewRank","Sort Order"}),
    #"Sorted Rows" = Table.Sort(Output,{{"New Sort Order", Order.Ascending}})
in
    #"Sorted Rows"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Jai&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 20:46:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Sort-Order-issue/m-p/4894646#M42566</guid>
      <dc:creator>Jai-Rathinavel</dc:creator>
      <dc:date>2025-12-05T20:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Order issue</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Sort-Order-issue/m-p/4895224#M42573</link>
      <description>&lt;P&gt;easily get a row number&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/powerquery-m/table-addindexcolumn" target="_blank"&gt;Table.AddIndexColumn - PowerQuery M | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Dec 2025 18:28:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Sort-Order-issue/m-p/4895224#M42573</guid>
      <dc:creator>R1k91</dc:creator>
      <dc:date>2025-12-07T18:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Order issue</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Sort-Order-issue/m-p/4895700#M42586</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just a simple idea which may or may not help. But your sort order column is of format 'Text' so it wont easily order as a text format. If you change this to Interger it can be sorted in the order you might want it to be?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 08:59:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Sort-Order-issue/m-p/4895700#M42586</guid>
      <dc:creator>MichaelVenables</dc:creator>
      <dc:date>2025-12-08T08:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Order issue</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Sort-Order-issue/m-p/4896667#M42596</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="821523" data-lia-user-login="JediMole" class="lia-mention lia-mention-user"&gt;JediMole&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 07:03:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Sort-Order-issue/m-p/4896667#M42596</guid>
      <dc:creator>v-nmadadi-msft</dc:creator>
      <dc:date>2025-12-09T07:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Order issue</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Sort-Order-issue/m-p/4902196#M42667</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="821523" data-lia-user-login="JediMole" class="lia-mention lia-mention-user"&gt;JediMole&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I check if this issue has been resolved? If not, Please feel free to contact us if you have any further questions.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2025 12:15:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Sort-Order-issue/m-p/4902196#M42667</guid>
      <dc:creator>v-nmadadi-msft</dc:creator>
      <dc:date>2025-12-15T12:15:16Z</dc:date>
    </item>
  </channel>
</rss>

