<?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: Get Value from second highest rank per multiple dimensions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-Value-from-second-highest-rank-per-multiple-dimensions/m-p/2409314#M63377</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.&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;LI-CODE lang="markup"&gt;Value total: = 
SUM( Data[Value] )&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Rank two value: = 
VAR ranktwotable =
    FILTER (
        ADDCOLUMNS (
            ALLSELECTED ( Data ),
            "@ranking", CALCULATE ( RANKX ( ALLSELECTED ( Data ), [Value total:],, DESC ) )
        ),
        [@ranking] = 2
    )
RETURN
    SUMX ( ranktwotable, Data[Value] )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2022 11:43:47 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2022-03-22T11:43:47Z</dc:date>
    <item>
      <title>Get Value from second highest rank per multiple dimensions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-Value-from-second-highest-rank-per-multiple-dimensions/m-p/2409231#M63373</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am struggeling using Rank function with multiple dimensions.&lt;BR /&gt;&lt;BR /&gt;I've got three dimensions and one measure.&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;&lt;P&gt;All I want to do is to get the second highest value (Rank = 2) grouped by all three dimensions.&amp;nbsp;&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;&lt;P&gt;It is also very unfortunate that I can't use MAXX function as it is required to be the second highest value.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 11:08:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-Value-from-second-highest-rank-per-multiple-dimensions/m-p/2409231#M63373</guid>
      <dc:creator>TOK</dc:creator>
      <dc:date>2022-03-22T11:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get Value from second highest rank per multiple dimensions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-Value-from-second-highest-rank-per-multiple-dimensions/m-p/2409314#M63377</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.&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;LI-CODE lang="markup"&gt;Value total: = 
SUM( Data[Value] )&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Rank two value: = 
VAR ranktwotable =
    FILTER (
        ADDCOLUMNS (
            ALLSELECTED ( Data ),
            "@ranking", CALCULATE ( RANKX ( ALLSELECTED ( Data ), [Value total:],, DESC ) )
        ),
        [@ranking] = 2
    )
RETURN
    SUMX ( ranktwotable, Data[Value] )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 11:43:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-Value-from-second-highest-rank-per-multiple-dimensions/m-p/2409314#M63377</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-03-22T11:43:47Z</dc:date>
    </item>
  </channel>
</rss>

