<?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: Dynamic table sorting based on total count with fixed value at the bottom in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-table-sorting-based-on-total-count-with-fixed-value-at/m-p/2877676#M93021</link>
    <description>&lt;P&gt;Count is a measure?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2022 15:41:05 GMT</pubDate>
    <dc:creator>lukiz84</dc:creator>
    <dc:date>2022-11-01T15:41:05Z</dc:date>
    <item>
      <title>Dynamic table sorting based on total count with fixed value at the bottom</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-table-sorting-based-on-total-count-with-fixed-value-at/m-p/2877659#M93019</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to sort this table dynamically. So that the color category with the highest count is at the top, and the lowest at the bottom, but, I want "Unknown", to always be the last value in the table even though it has a high count.&amp;nbsp;How do I do this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&amp;nbsp;highly appreciate it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 15:32:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-table-sorting-based-on-total-count-with-fixed-value-at/m-p/2877659#M93019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-01T15:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic table sorting based on total count with fixed value at the bottom</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-table-sorting-based-on-total-count-with-fixed-value-at/m-p/2877676#M93021</link>
      <description>&lt;P&gt;Count is a measure?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 15:41:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-table-sorting-based-on-total-count-with-fixed-value-at/m-p/2877676#M93021</guid>
      <dc:creator>lukiz84</dc:creator>
      <dc:date>2022-11-01T15:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic table sorting based on total count with fixed value at the bottom</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-table-sorting-based-on-total-count-with-fixed-value-at/m-p/2877690#M93024</link>
      <description>&lt;P&gt;No, it just an automatic count done by the table of the IDs for each category. Here is the table the data is taken from. So, no measure is used so far.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 15:51:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-table-sorting-based-on-total-count-with-fixed-value-at/m-p/2877690#M93024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-01T15:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic table sorting based on total count with fixed value at the bottom</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-table-sorting-based-on-total-count-with-fixed-value-at/m-p/2877751#M93030</link>
      <description>&lt;P&gt;Ok, "Auto count" is a measure too (an implicit measure, not adviced, but ok) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then i think it's not possible.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 16:10:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-table-sorting-based-on-total-count-with-fixed-value-at/m-p/2877751#M93030</guid>
      <dc:creator>lukiz84</dc:creator>
      <dc:date>2022-11-01T16:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic table sorting based on total count with fixed value at the bottom</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-table-sorting-based-on-total-count-with-fixed-value-at/m-p/2882251#M93325</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my test table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please create two columns:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count = IF('Table'[ID] = MINX(FILTER('Table','Table'[Category] = EARLIER('Table'[Category])),'Table'[ID]), CALCULATE(COUNT('Table'[Category]),FILTER('Table','Table'[Category] = EARLIER('Table'[Category]))))

Rank = SWITCH(
    TRUE(),
   'Table'[Category] = "Unknown" &amp;amp;&amp;amp; 'Table'[Count] &amp;lt;&amp;gt; BLANK(),DISTINCTCOUNT('Table'[Category]),
    'Table'[Count] &amp;lt;&amp;gt; BLANK(),RANKX('Table',[Count],,DESC,Dense))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can sort by [Rank]:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't want to see Rank column in table visual, you can hide it in Specific column:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Yadong Fang&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 08:25:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-table-sorting-based-on-total-count-with-fixed-value-at/m-p/2882251#M93325</guid>
      <dc:creator>v-yadongf-msft</dc:creator>
      <dc:date>2022-11-03T08:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic table sorting based on total count with fixed value at the bottom</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-table-sorting-based-on-total-count-with-fixed-value-at/m-p/2882728#M93356</link>
      <description>&lt;P&gt;It worked, thank you so much for the help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 11:26:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-table-sorting-based-on-total-count-with-fixed-value-at/m-p/2882728#M93356</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-03T11:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic table sorting based on total count with fixed value at the bottom</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-table-sorting-based-on-total-count-with-fixed-value-at/m-p/2963508#M98810</link>
      <description>&lt;P&gt;Hi again&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="414895" data-lia-user-login="v-yadongf-msft" class="lia-mention lia-mention-user"&gt;v-yadongf-msft&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have now got 0 values as well (For example for Color: Pink, the Sum of Count = 0). How can I make it work with that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance,&amp;nbsp;highly appreciate it!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 21:11:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-table-sorting-based-on-total-count-with-fixed-value-at/m-p/2963508#M98810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-12T21:11:35Z</dc:date>
    </item>
  </channel>
</rss>

