<?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 Use RANX with several filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-RANX-with-several-filters/m-p/3169682#M114212</link>
    <description>&lt;P&gt;Before the selection in segment (Marque commerciale)&amp;nbsp; : Top rank works :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And when i select one of "Group" in segment, it doesn't work :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i modify the formula RANKX with several filters (segment) ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;rang N TOP CA = RANKX(ALLSELECTED('Sectors[Sectors]),CALCULATE([CA N DATE (m)]),,DESC)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thank you in advance for your help !&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Léna&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Apr 2023 14:33:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-04-03T14:33:35Z</dc:date>
    <item>
      <title>Use RANX with several filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-RANX-with-several-filters/m-p/3169682#M114212</link>
      <description>&lt;P&gt;Before the selection in segment (Marque commerciale)&amp;nbsp; : Top rank works :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And when i select one of "Group" in segment, it doesn't work :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i modify the formula RANKX with several filters (segment) ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;rang N TOP CA = RANKX(ALLSELECTED('Sectors[Sectors]),CALCULATE([CA N DATE (m)]),,DESC)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thank you in advance for your help !&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Léna&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 14:33:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-RANX-with-several-filters/m-p/3169682#M114212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-03T14:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Use RANX with several filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-RANX-with-several-filters/m-p/3170052#M114235</link>
      <description>&lt;P&gt;In DAX&amp;nbsp;use group inside AllSelected.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 17:26:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-RANX-with-several-filters/m-p/3170052#M114235</guid>
      <dc:creator>rautaniket0077</dc:creator>
      <dc:date>2023-04-03T17:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Use RANX with several filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-RANX-with-several-filters/m-p/3170069#M114236</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I think your Group column is in a separated table (lets call it GroupTable) which is connected to Sectors Table. If Yes,&lt;/P&gt;&lt;P&gt;Follow steps below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1-Create a calculated column in your Sector Table:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RELATED('GroupTable'[Group])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2-Then Put the previous calculated column in your Slicer as your group filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then it works as you expect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this answer solves your problem, please mark it as an accepted solution and gives it a thumbs up so the others would find what they need easier.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Loran&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 17:36:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-RANX-with-several-filters/m-p/3170069#M114236</guid>
      <dc:creator>MohammadLoran25</dc:creator>
      <dc:date>2023-04-03T17:36:37Z</dc:date>
    </item>
  </channel>
</rss>

