<?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: Using RANKX with filter for max Year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RANKX-with-filter-for-max-Year/m-p/905143#M8465</link>
    <description>&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sorry&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;update it Like this CALCULATE(MAX(Table[Skill]),(ALL(Table[Skill])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 20 Jan 2020 11:35:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-01-20T11:35:49Z</dc:date>
    <item>
      <title>Using RANKX with filter for max Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RANKX-with-filter-for-max-Year/m-p/903284#M8334</link>
      <description>&lt;P&gt;Hey Guys,&lt;/P&gt;&lt;P&gt;I am ranking my clients based on two measures one is the client score and second is total revenue.&lt;BR /&gt;Since i have many clients some clients have the same client score hence the ranking based on total revenue.&lt;/P&gt;&lt;P&gt;Now the issue here is that i want the measure to be filtered by the maximum Financial Year.&lt;BR /&gt;So i wrote the below code:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Ranking_Clients = 
Var MaxYear=MAX('Fiscal Years'[FY])
Return
IF(ISFILTERED('Fiscal Years'[FY]),
 RANKX (
    ALL ( 'Responses received' ),
    RANKX ( ALL ( 'Responses received' ),[Client Score],, DESC )
        + DIVIDE (
            RANKX ( ALL ( 'Responses received' ),[Total Revenue] ,, DESC ),
            ( COUNTROWS ( ALL ( 'Responses received' ) ) + 1 )
        )
),
CALCULATE(
     RANKX (
    ALL ( 'Responses received' ),
    RANKX ( ALL ( 'Responses received' ),[Client Score],, DESC )
        + DIVIDE (
            RANKX ( ALL ( 'Responses received' ),[Total Revenue] ,, DESC ),
            ( COUNTROWS ( ALL ( 'Responses received' ) ) + 1 )
        )
),'Fiscal Years'[FY]=MaxYear))&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;But its not affecting the results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 10:22:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RANKX-with-filter-for-max-Year/m-p/903284#M8334</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-17T10:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using RANKX with filter for max Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RANKX-with-filter-for-max-Year/m-p/903694#M8361</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 could have to do with the cross filter direction of the relationship with your 'Fiscal Years' table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 17:59:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RANKX-with-filter-for-max-Year/m-p/903694#M8361</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-17T17:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using RANKX with filter for max Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RANKX-with-filter-for-max-Year/m-p/904604#M8432</link>
      <description>&lt;P&gt;Hey&amp;nbsp;Anonymous&lt;/LI-USER&gt; I have many measures with the same dax to show the measure for latest fiscal year and they are working fine.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 05:33:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RANKX-with-filter-for-max-Year/m-p/904604#M8432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-20T05:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using RANKX with filter for max Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RANKX-with-filter-for-max-Year/m-p/905130#M8460</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think your max year changing to same value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you update variable and check&lt;/P&gt;&lt;P&gt;var max_year=calculate(max(table[year_column]),filter(all(table[year_column]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;BR /&gt;Pravin Wattamwar&lt;BR /&gt;&lt;A href="http://www.linkedin.com/in/pravin-p-wattamwar" target="_blank"&gt;www.linkedin.com/in/pravin-p-wattamwar&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;If I resolve your problem Mark it as a solution and give kudos.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 11:14:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RANKX-with-filter-for-max-Year/m-p/905130#M8460</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-20T11:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using RANKX with filter for max Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RANKX-with-filter-for-max-Year/m-p/905134#M8462</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;I guess there is something wrong with your measure.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 11:21:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RANKX-with-filter-for-max-Year/m-p/905134#M8462</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-20T11:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using RANKX with filter for max Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RANKX-with-filter-for-max-Year/m-p/905137#M8463</link>
      <description>&lt;P&gt;use your measure only just update your first line which var max_year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Ranking_Clients = 
Var MaxYear=Calculate(MAX('Fiscal Years'[FY],filter(all('fiscal Years')))
Return
IF(ISFILTERED('Fiscal Years'[FY]),
 RANKX (
    ALL ( 'Responses received' ),
    RANKX ( ALL ( 'Responses received' ),[Client Score],, DESC )
        + DIVIDE (
            RANKX ( ALL ( 'Responses received' ),[Total Revenue] ,, DESC ),
            ( COUNTROWS ( ALL ( 'Responses received' ) ) + 1 )
        )
),
CALCULATE(
     RANKX (
    ALL ( 'Responses received' ),
    RANKX ( ALL ( 'Responses received' ),[Client Score],, DESC )
        + DIVIDE (
            RANKX ( ALL ( 'Responses received' ),[Total Revenue] ,, DESC ),
            ( COUNTROWS ( ALL ( 'Responses received' ) ) + 1 )
        )
),'Fiscal Years'[FY]=MaxYear))&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 20 Jan 2020 11:25:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RANKX-with-filter-for-max-Year/m-p/905137#M8463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-20T11:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using RANKX with filter for max Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RANKX-with-filter-for-max-Year/m-p/905138#M8464</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;SPAN&gt;Var MaxYear=Calculate(MAX('Fiscal Years'[FY],filter(all('fiscal Years')))&lt;/SPAN&gt;&lt;BR /&gt;Your Filter function is missing an argument, even if i use this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var MaxYear=calculate(max('Fiscal Years'[FY]),FILTER('Fiscal Years',all('Fiscal Years'[FY])))&lt;BR /&gt;Its not working.And i am using my measure with your max year variable&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Jan 2020 11:29:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RANKX-with-filter-for-max-Year/m-p/905138#M8464</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-20T11:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using RANKX with filter for max Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RANKX-with-filter-for-max-Year/m-p/905143#M8465</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sorry&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;update it Like this CALCULATE(MAX(Table[Skill]),(ALL(Table[Skill])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Jan 2020 11:35:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RANKX-with-filter-for-max-Year/m-p/905143#M8465</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-20T11:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using RANKX with filter for max Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RANKX-with-filter-for-max-Year/m-p/907851#M8571</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;Im sorry but its not working&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 11:27:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-RANKX-with-filter-for-max-Year/m-p/907851#M8571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-22T11:27:35Z</dc:date>
    </item>
  </channel>
</rss>

