<?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: Help needed with Dynamic Filtering for RANKX Function in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-with-Dynamic-Filtering-for-RANKX-Function/m-p/2266289#M54940</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="108403" data-lia-user-login="BICrazy" class="lia-mention lia-mention-user"&gt;BICrazy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to use calculated columns rather than measures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;accepting&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it as the solution&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank" rel="noopener"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;New Year Power BI eCard:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Data-Stories-Gallery/Happy-New-Year/td-p/2266398" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Data-Stories-Gallery/Happy-New-Year/td-p/2266398&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper lia-message-image-actions-narrow lia-message-image-actions-below"&gt;&lt;IMG src="https://ip1.i.lithium.com/4571cc918310a7366e2437530aee077af5dfd14a/68747470733a2f2f636f6d6d756e6974792e706f77657262692e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f36353132323969454538434143394544333230304533352f696d6167652d64696d656e73696f6e732f343330783235373f763d7632" border="0" alt="eb50dd_d85fbe053af7491e915ca41732d978a7~mv2" title="eb50dd_d85fbe053af7491e915ca41732d978a7~mv2" width="430" height="257" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jan 2022 01:47:51 GMT</pubDate>
    <dc:creator>VahidDM</dc:creator>
    <dc:date>2022-01-05T01:47:51Z</dc:date>
    <item>
      <title>Help needed with Dynamic Filtering for RANKX Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-with-Dynamic-Filtering-for-RANKX-Function/m-p/2266123#M54928</link>
      <description>&lt;P&gt;Hi there Power BI Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've hit a roadblock with regards to filtering whilst ranking a column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 3 Columns i.e. Countries, Region and Sub-Region which are each ranked by a value, which is working fine and gives me the ranking of the country:&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;However, when I filter the countries, what I'd like is for the region and sub-region not to default to 1.&lt;BR /&gt;Here is an example of the problem: I chose South Africa and region and Sub Region default to 1.&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;What I would like to ideally see when filtering by country e.g. if I choose South Africa, the Region should display Africa as 6 and Sub-Region as 3.&amp;nbsp; Note that in the below image, I did not select South Africa.&amp;nbsp; If I do select it, then the Region and Sub-Region change to 1.&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;Here are the measure's that I am using to perform the ranking of the 2 columns:&lt;BR /&gt;Sub-Region Ranking:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sub Region Ranking = 
RANKX( 
    ALLSELECTED( Country_Name[Sub-Region] ), 
    CALCULATE( [Average Values WB])
    ,,desc, Dense)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Region Ranking:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Region Ranking = 
RANKX( 
    ALLSELECTED(Country_Name[Region] ),
    CALCULATE( [Average Values WB])
    ,,DESC, Dense
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Country Ranking:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Country Ranking = 
RANKX( 
    ALLSELECTED( Correct_Country_Spell[Country_Name]), 
    CALCULATE([YoY% Change since 2010])
    ,,desc, Dense 
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope that I've provided sufficient information for assistance and thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;BICrazy&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 19:56:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-with-Dynamic-Filtering-for-RANKX-Function/m-p/2266123#M54928</guid>
      <dc:creator>BICrazy</dc:creator>
      <dc:date>2022-01-04T19:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with Dynamic Filtering for RANKX Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-with-Dynamic-Filtering-for-RANKX-Function/m-p/2266279#M54938</link>
      <description>&lt;P&gt;If you don't want the rank to change in response to filters, then it sounds like you want static ranking rather than dynamic ranking, in which case you may want to define rank via calculated columns rather than measures.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 21:41:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-with-Dynamic-Filtering-for-RANKX-Function/m-p/2266279#M54938</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2022-01-04T21:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with Dynamic Filtering for RANKX Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-with-Dynamic-Filtering-for-RANKX-Function/m-p/2266289#M54940</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="108403" data-lia-user-login="BICrazy" class="lia-mention lia-mention-user"&gt;BICrazy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to use calculated columns rather than measures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;accepting&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it as the solution&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank" rel="noopener"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;New Year Power BI eCard:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Data-Stories-Gallery/Happy-New-Year/td-p/2266398" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Data-Stories-Gallery/Happy-New-Year/td-p/2266398&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper lia-message-image-actions-narrow lia-message-image-actions-below"&gt;&lt;IMG src="https://ip1.i.lithium.com/4571cc918310a7366e2437530aee077af5dfd14a/68747470733a2f2f636f6d6d756e6974792e706f77657262692e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f36353132323969454538434143394544333230304533352f696d6167652d64696d656e73696f6e732f343330783235373f763d7632" border="0" alt="eb50dd_d85fbe053af7491e915ca41732d978a7~mv2" title="eb50dd_d85fbe053af7491e915ca41732d978a7~mv2" width="430" height="257" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 01:47:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-with-Dynamic-Filtering-for-RANKX-Function/m-p/2266289#M54940</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2022-01-05T01:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with Dynamic Filtering for RANKX Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-with-Dynamic-Filtering-for-RANKX-Function/m-p/2274605#M55465</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="108403" data-lia-user-login="BICrazy" class="lia-mention lia-mention-user"&gt;BICrazy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree with them, but here I see that you haven't replied.&amp;nbsp;Have you solved the problem? If not, please share&amp;nbsp;&lt;SPAN&gt;some insensitive data samples and expected output. In addition,&amp;nbsp;&lt;/SPAN&gt;we don't know the codes of these two measures:&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;[YoY% Change since 2010] and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;[Average Values WB],&amp;nbsp;you also need to explain.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="" data-block="true" data-editor="6ku13" data-offset-key="6hahu06b-0-0"&gt;
&lt;DIV class="public-DraftStyleDefault-block public-DraftStyleDefault-ltr" data-offset-key="6hahu06b-0-0"&gt;&lt;SPAN data-offset-key="6hahu06b-0-0"&gt;Best Regards,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="" data-block="true" data-editor="6ku13" data-offset-key="dnr5l5ef-0-0"&gt;
&lt;DIV class="public-DraftStyleDefault-block public-DraftStyleDefault-ltr" data-offset-key="dnr5l5ef-0-0"&gt;&lt;SPAN data-offset-key="dnr5l5ef-0-0"&gt;Community Support Team _ Janey&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 05:50:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-with-Dynamic-Filtering-for-RANKX-Function/m-p/2274605#M55465</guid>
      <dc:creator>v-janeyg-msft</dc:creator>
      <dc:date>2022-01-10T05:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with Dynamic Filtering for RANKX Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-with-Dynamic-Filtering-for-RANKX-Function/m-p/2301108#M56830</link>
      <description>&lt;P&gt;Hi there all,&lt;BR /&gt;&lt;BR /&gt;Apologies for the delayed response.&amp;nbsp; It's been a busy few weeks to the start of 2022...all Power BI related though&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I tried using calculated columns for this exercise but the model became too slow as the fact table contains approximately 13M row's and I had to create 3 columns, 1 for the country, 1 for the region, and another for subregion.&amp;nbsp; These +/- 40 M iterations were causing the Power BI Desktop refreshes to timeout.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I then proceeded to build a model with measures using sample data which I tested and ended up working.&amp;nbsp; I will post the solution shortly.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 13:36:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-with-Dynamic-Filtering-for-RANKX-Function/m-p/2301108#M56830</guid>
      <dc:creator>BICrazy</dc:creator>
      <dc:date>2022-01-25T13:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with Dynamic Filtering for RANKX Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-with-Dynamic-Filtering-for-RANKX-Function/m-p/2327373#M58322</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="108403" data-lia-user-login="BICrazy" class="lia-mention lia-mention-user"&gt;BICrazy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are welcome to share your solution, then you can accept it as solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Janey&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 06:37:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-with-Dynamic-Filtering-for-RANKX-Function/m-p/2327373#M58322</guid>
      <dc:creator>v-janeyg-msft</dc:creator>
      <dc:date>2022-02-09T06:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with Dynamic Filtering for RANKX Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-with-Dynamic-Filtering-for-RANKX-Function/m-p/2527366#M70724</link>
      <description>&lt;P&gt;Hi there all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies for the delay in my post.&amp;nbsp; Here is the link to the pbix file which contains the solution.&lt;BR /&gt;&lt;A title="Solution" href="https://bidashboards12-my.sharepoint.com/personal/rakesh_bidashboards_co_za1/_layouts/15/onedrive.aspx?id=%2Fpersonal%2Frakesh%5Fbidashboards%5Fco%5Fza1%2FDocuments%2FPowerBI%20Community&amp;amp;ga=1" target="_self"&gt;Test_RankX using Measure&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Kind regards&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 18:24:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-with-Dynamic-Filtering-for-RANKX-Function/m-p/2527366#M70724</guid>
      <dc:creator>BICrazy</dc:creator>
      <dc:date>2022-05-19T18:24:54Z</dc:date>
    </item>
  </channel>
</rss>

