<?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 SortByColumn SSAS not working in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/SortByColumn-SSAS-not-working/m-p/1960077#M30544</link>
    <description>&lt;P&gt;I am in SSAS:&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have column &lt;STRONG&gt;Name&lt;/STRONG&gt;, but I want to sort by &lt;STRONG&gt;Id &lt;/STRONG&gt;because when in &lt;STRONG&gt;Power BI&lt;/STRONG&gt;, it automatically groups by people with same name, but they are in fact different people.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 tables: &lt;STRONG&gt;Clients&lt;/STRONG&gt; and &lt;STRONG&gt;Current Client.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Client&lt;/STRONG&gt; is a table and &lt;STRONG&gt;Current Client&lt;/STRONG&gt; is a calculated table…&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to do it in &lt;STRONG&gt;Client&lt;/STRONG&gt;, but not in the calculated table &lt;STRONG&gt;Current Client, &lt;/STRONG&gt;Why is this?&amp;nbsp; I get the error….&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ovonel_0-1626357464127.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/554111i13B9011DB8ECDA70/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ovonel_0-1626357464127.png" alt="ovonel_0-1626357464127.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cannot sort &lt;STRONG&gt;Name&lt;/STRONG&gt; by &lt;STRONG&gt;Id&lt;/STRONG&gt; because at least one value in &lt;STRONG&gt;Name&lt;/STRONG&gt; has multiple distinct values in Id. For example, you can sort [City] by [Region] because there is only one region for each city, but you cannot sort [Region] by [City] because there are multiple cities for each region…&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, yes, that’s the very reason I want to sort!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jul 2021 13:57:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-07-15T13:57:58Z</dc:date>
    <item>
      <title>SortByColumn SSAS not working</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/SortByColumn-SSAS-not-working/m-p/1960077#M30544</link>
      <description>&lt;P&gt;I am in SSAS:&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have column &lt;STRONG&gt;Name&lt;/STRONG&gt;, but I want to sort by &lt;STRONG&gt;Id &lt;/STRONG&gt;because when in &lt;STRONG&gt;Power BI&lt;/STRONG&gt;, it automatically groups by people with same name, but they are in fact different people.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 tables: &lt;STRONG&gt;Clients&lt;/STRONG&gt; and &lt;STRONG&gt;Current Client.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Client&lt;/STRONG&gt; is a table and &lt;STRONG&gt;Current Client&lt;/STRONG&gt; is a calculated table…&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to do it in &lt;STRONG&gt;Client&lt;/STRONG&gt;, but not in the calculated table &lt;STRONG&gt;Current Client, &lt;/STRONG&gt;Why is this?&amp;nbsp; I get the error….&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ovonel_0-1626357464127.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/554111i13B9011DB8ECDA70/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ovonel_0-1626357464127.png" alt="ovonel_0-1626357464127.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cannot sort &lt;STRONG&gt;Name&lt;/STRONG&gt; by &lt;STRONG&gt;Id&lt;/STRONG&gt; because at least one value in &lt;STRONG&gt;Name&lt;/STRONG&gt; has multiple distinct values in Id. For example, you can sort [City] by [Region] because there is only one region for each city, but you cannot sort [Region] by [City] because there are multiple cities for each region…&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, yes, that’s the very reason I want to sort!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 13:57:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/SortByColumn-SSAS-not-working/m-p/1960077#M30544</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-15T13:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: SortByColumn SSAS not working</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/SortByColumn-SSAS-not-working/m-p/1964818#M30576</link>
      <description>&lt;P&gt;The cause of the error, as you described.&lt;/P&gt;
&lt;P&gt;If there are multiple different values for the same item, it cannot be sorted by the column.&lt;/P&gt;
&lt;P&gt;What we can try to do is to modify one item corresponding to one value by concatenate different columns, so that we can use &lt;SPAN&gt;SortByColumn.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here is a sample, hope it will help you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 07:12:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/SortByColumn-SSAS-not-working/m-p/1964818#M30576</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2021-07-19T07:12:39Z</dc:date>
    </item>
  </channel>
</rss>

