<?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: RankX- user to enter desired number to filter the RankX results of matrix is not working in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-user-to-enter-desired-number-to-filter-the-RankX-results/m-p/4698629#M179978</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1249533" data-lia-user-login="v-sdhruv" class="lia-mention lia-mention-user"&gt;v-sdhruv&lt;/a&gt;&amp;nbsp;Thank you so much! This solution is close enough to my requirement. I'll try to find a workaround as the RankX disappears when I drilldrown the visual to view one or all the customer number.&lt;/P&gt;</description>
    <pubDate>Mon, 19 May 2025 13:43:35 GMT</pubDate>
    <dc:creator>ribs</dc:creator>
    <dc:date>2025-05-19T13:43:35Z</dc:date>
    <item>
      <title>RankX- user to enter desired number to filter the RankX results of matrix is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-user-to-enter-desired-number-to-filter-the-RankX-results/m-p/4689301#M179587</link>
      <description>&lt;P&gt;&amp;nbsp;&amp;nbsp;I have a matrix in Power BI and&lt;BR /&gt;measures for&amp;nbsp;&lt;SPAN&gt;Revenue Year 1; Revenues Year 2; RankX&lt;BR /&gt;parameters for Revenue Year 1;&amp;nbsp; Revenue Year 2 ; TopN- for the users to choose the top count where I have a Rankif function&lt;BR /&gt;in the filter pane&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RankIf =&lt;/SPAN&gt; &lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[RankX]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;'TopN'&lt;/SPAN&gt;&lt;SPAN&gt;[TopN Value]&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;) set to 1 to limit the results to be displayed, which is not working because I have added customer No under the customer name to the rows pane of the matrix.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Customer&lt;/TD&gt;&lt;TD&gt;2024&lt;/TD&gt;&lt;TD&gt;2025&lt;/TD&gt;&lt;TD&gt;Dynamic Rank Compare 2024 -&amp;gt; 2025 or 2025-&amp;gt;2024&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;90&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Everything is working except the RankIf in filterpane so that user cannot enter manually how many top rows to display. I don't know where exactly I am going wrong. I tried to replicate the same in the attcahed below&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 14:08:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-user-to-enter-desired-number-to-filter-the-RankX-results/m-p/4689301#M179587</guid>
      <dc:creator>ribs</dc:creator>
      <dc:date>2025-05-12T14:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: RankX- user to enter desired number to filter the RankX results of matrix is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-user-to-enter-desired-number-to-filter-the-RankX-results/m-p/4690088#M179607</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1232552" data-lia-user-login="ribs" class="lia-mention lia-mention-user"&gt;ribs&lt;/a&gt;&amp;nbsp;Try using&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RankX Measure: RankX = RANKX(ALL('Customer'), [Revenue Year 1], , DESC, DENSE)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RankIf Measure: RankIf = IF([RankX] &amp;lt;= SELECTEDVALUE('TopN'[TopN Value]), 1, 0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TopN Parameter Table: TopN = GENERATESERIES(1, 10, 1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Go to the matrix visual.&lt;BR /&gt;Drag the RankIf measure to the Visual Level Filters pane.&lt;BR /&gt;Set the filter to show only rows where RankIf equals 1.&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 05:44:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-user-to-enter-desired-number-to-filter-the-RankX-results/m-p/4690088#M179607</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-05-13T05:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: RankX- user to enter desired number to filter the RankX results of matrix is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-user-to-enter-desired-number-to-filter-the-RankX-results/m-p/4690321#M179619</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625922" data-lia-user-login="bhanu_gautam" class="lia-mention lia-mention-user"&gt;bhanu_gautam&lt;/a&gt;&amp;nbsp;I have tried this already it is not working.In the matrix rows pane I have two columns- Customer and Customer No like the image below. Because of the subategory Customer No, the RankIf is not working. Is it possible to not to apply ranking to the subcategory? Or if at all applied, not to cosnider in RankIf()?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 08:22:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-user-to-enter-desired-number-to-filter-the-RankX-results/m-p/4690321#M179619</guid>
      <dc:creator>ribs</dc:creator>
      <dc:date>2025-05-13T08:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: RankX- user to enter desired number to filter the RankX results of matrix is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-user-to-enter-desired-number-to-filter-the-RankX-results/m-p/4695802#M179841</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1232552" data-lia-user-login="ribs" class="lia-mention lia-mention-user"&gt;ribs&lt;/a&gt;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revenue Change]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DENSE&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;P class="" data-start="993" data-end="1103"&gt;This makes Rankx&amp;nbsp;return blank at the Customer No. level, so it doesn’t affect or show on subcategories.&lt;/P&gt;
&lt;img /&gt;&lt;BR /&gt;&lt;img /&gt;
&lt;P class="" data-start="993" data-end="1103"&gt;Attached file for reference.&lt;BR /&gt;&lt;SPAN data-teams="true"&gt;Hope this helps!&lt;BR /&gt;If the response has addressed your query, please&amp;nbsp;&lt;STRONG&gt;accept it as a solution&lt;/STRONG&gt;&amp;nbsp;and give a&amp;nbsp;&lt;STRONG&gt;'Kudos'&lt;/STRONG&gt;&amp;nbsp;so other members can easily find it.&lt;BR /&gt;Thank You!&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 May 2025 10:58:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-user-to-enter-desired-number-to-filter-the-RankX-results/m-p/4695802#M179841</guid>
      <dc:creator>v-sdhruv</dc:creator>
      <dc:date>2025-05-16T10:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: RankX- user to enter desired number to filter the RankX results of matrix is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-user-to-enter-desired-number-to-filter-the-RankX-results/m-p/4698629#M179978</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1249533" data-lia-user-login="v-sdhruv" class="lia-mention lia-mention-user"&gt;v-sdhruv&lt;/a&gt;&amp;nbsp;Thank you so much! This solution is close enough to my requirement. I'll try to find a workaround as the RankX disappears when I drilldrown the visual to view one or all the customer number.&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 13:43:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-user-to-enter-desired-number-to-filter-the-RankX-results/m-p/4698629#M179978</guid>
      <dc:creator>ribs</dc:creator>
      <dc:date>2025-05-19T13:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: RankX- user to enter desired number to filter the RankX results of matrix is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-user-to-enter-desired-number-to-filter-the-RankX-results/m-p/4699428#M180013</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1232552" data-lia-user-login="ribs" class="lia-mention lia-mention-user"&gt;ribs&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Good to know you were able to arrive at the solution.&lt;BR /&gt;&lt;SPAN&gt;If the response has addressed your query, please&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;accept it as a solution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;and give a&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;'Kudos'&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;so other members can easily find it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank You!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 06:40:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-user-to-enter-desired-number-to-filter-the-RankX-results/m-p/4699428#M180013</guid>
      <dc:creator>v-sdhruv</dc:creator>
      <dc:date>2025-05-20T06:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: RankX- user to enter desired number to filter the RankX results of matrix is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-user-to-enter-desired-number-to-filter-the-RankX-results/m-p/4701458#M180080</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1232552" target="_blank"&gt;@ribs&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Good to know you were able to arrive at the solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the response has addressed your query, please&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;accept it as a solution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;so other members can easily find it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank You!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 10:44:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-user-to-enter-desired-number-to-filter-the-RankX-results/m-p/4701458#M180080</guid>
      <dc:creator>v-sdhruv</dc:creator>
      <dc:date>2025-05-21T10:44:59Z</dc:date>
    </item>
  </channel>
</rss>

