<?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: Ranked Slicer in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Ranked-Slicer/m-p/4232963#M57738</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/720848"&gt;@PHO&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created a sample pbix file(see &lt;EM&gt;&lt;STRONG&gt;the attachment&lt;/STRONG&gt;&lt;/EM&gt;), please check if that is what you want.&lt;/P&gt;
&lt;P&gt;1. Create the &lt;STRONG&gt;measures&lt;/STRONG&gt; as below(it seems what you are trying to create is a calculated column to get the rank)&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DocumentCount = CALCULATE(COUNT('Data'[NUMBER]),ALLEXCEPT('Data','Data'[Category]))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Rank = RANKX(ALLSELECTED(Data ), [DocumentCount],,DESC,Dense)&lt;/LI-CODE&gt;
&lt;P&gt;2. Create a table visual&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_0-1728367052588.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1179379i7D32B8984B0FE589/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_0-1728367052588.png" alt="vyiruanmsft_0-1728367052588.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If the above one can't help you get the solution, please provide the required&amp;nbsp;info just as suggested&amp;nbsp;by Ibendlin. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-provide-sample-data-in-the-Power-BI-Forum%2Fba-p%2F963216&amp;amp;data=05%7C02%7Cv-yiruan%40microsoft.com%7C53fc6c10cb1b4eb7674a08dcbb706f15%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638591338796956339%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&amp;amp;sdata=ch1lYvp%2FLCdQ3b%2B7X%2BIVvRJvmkHiOxXDbPRDD98PQBM%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2024 06:07:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-10-08T06:07:13Z</dc:date>
    <item>
      <title>Ranked Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Ranked-Slicer/m-p/4230770#M57704</link>
      <description>&lt;P&gt;Can I add a ranked slicer based on a Category?&lt;BR /&gt;I have a Table and a Bar Chart.&amp;nbsp;&lt;BR /&gt;1. In this Table the first Column are Categorys,&lt;BR /&gt;2. the Second&amp;nbsp; is Count of Numbers&lt;/P&gt;&lt;P&gt;3. the third is a measure from Count of Numbers to Use is in the Ranking:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DocumentCount =&lt;/SPAN&gt; &lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Data'&lt;/SPAN&gt;&lt;SPAN&gt;[NUMBER]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;4, the last one was my try to rank:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Rank =&lt;BR /&gt;RANKX(&lt;BR /&gt;FILTER(&lt;BR /&gt;'Data',&lt;BR /&gt;'Data'[Category] = EARLIER('Data'[Category])&lt;BR /&gt;),&lt;BR /&gt;'Data'[NUMBER],&lt;BR /&gt;,&lt;BR /&gt;ASC,&lt;BR /&gt;Dense&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It is ascending but unfortunately not individual.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;At the end I would like to be able to select the individual categories in the slicer. Something like a TopN slicer.&lt;BR /&gt;But I have Problems with it since there a lot of strings in the values.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PHO_0-1728231899455.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1178579i51604DA755C0E396/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PHO_0-1728231899455.png" alt="PHO_0-1728231899455.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 06 Oct 2024 16:26:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Ranked-Slicer/m-p/4230770#M57704</guid>
      <dc:creator>PHO</dc:creator>
      <dc:date>2024-10-06T16:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ranked Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Ranked-Slicer/m-p/4230882#M57707</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question. &lt;BR /&gt;&lt;BR /&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Oct 2024 23:48:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Ranked-Slicer/m-p/4230882#M57707</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-10-06T23:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Ranked Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Ranked-Slicer/m-p/4232963#M57738</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/720848"&gt;@PHO&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created a sample pbix file(see &lt;EM&gt;&lt;STRONG&gt;the attachment&lt;/STRONG&gt;&lt;/EM&gt;), please check if that is what you want.&lt;/P&gt;
&lt;P&gt;1. Create the &lt;STRONG&gt;measures&lt;/STRONG&gt; as below(it seems what you are trying to create is a calculated column to get the rank)&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DocumentCount = CALCULATE(COUNT('Data'[NUMBER]),ALLEXCEPT('Data','Data'[Category]))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Rank = RANKX(ALLSELECTED(Data ), [DocumentCount],,DESC,Dense)&lt;/LI-CODE&gt;
&lt;P&gt;2. Create a table visual&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_0-1728367052588.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1179379i7D32B8984B0FE589/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_0-1728367052588.png" alt="vyiruanmsft_0-1728367052588.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If the above one can't help you get the solution, please provide the required&amp;nbsp;info just as suggested&amp;nbsp;by Ibendlin. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-provide-sample-data-in-the-Power-BI-Forum%2Fba-p%2F963216&amp;amp;data=05%7C02%7Cv-yiruan%40microsoft.com%7C53fc6c10cb1b4eb7674a08dcbb706f15%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638591338796956339%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&amp;amp;sdata=ch1lYvp%2FLCdQ3b%2B7X%2BIVvRJvmkHiOxXDbPRDD98PQBM%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 06:07:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Ranked-Slicer/m-p/4232963#M57738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-08T06:07:13Z</dc:date>
    </item>
  </channel>
</rss>

