<?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 Second highest value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-Second-highest-value/m-p/2269612#M55195</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="321070" data-lia-user-login="yogeshk77" class="lia-mention lia-mention-user"&gt;yogeshk77&lt;/a&gt;&amp;nbsp; provide sample data in a tabke format/ create a sample pbi, upload in 1/g drive and share the link here&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jan 2022 14:39:39 GMT</pubDate>
    <dc:creator>smpa01</dc:creator>
    <dc:date>2022-01-06T14:39:39Z</dc:date>
    <item>
      <title>Get Second highest value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-Second-highest-value/m-p/2269123#M55159</link>
      <description>&lt;P&gt;I have following tables&lt;/P&gt;&lt;P&gt;Build table with Code Coverage&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mapping table - Work Item ID &amp;amp; Build ID&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And Work Item table&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;Now, I have a measure that gives me the latest Build ID (from that second table of Build ID &amp;amp; Work Item ID)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And with that I am fetching relevant Build Repo &amp;amp; Code Coverage in that third table&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hence in the third table as shown above, I am getting the latest Code Coverage against the work item &amp;amp; repo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, what I need is, to get the previous Code Coverage in that third table shown above.&lt;/P&gt;&lt;P&gt;For that I need a measure in this third table, to get the second highest 'build ID' from the build table (First Table), for that respective 'Build Repo' column value in the Third table.&lt;/P&gt;&lt;P&gt;How can I use Lookup to do that?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 09:47:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-Second-highest-value/m-p/2269123#M55159</guid>
      <dc:creator>yogeshk77</dc:creator>
      <dc:date>2022-01-06T09:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get Second highest value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-Second-highest-value/m-p/2269196#M55167</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;You can create a measure with the following logic:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Start data:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Dax:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Second latest build = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;latest&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Matrix example'[Company]&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Matrix example'[Company]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'Matrix example'[Company]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;latest&lt;/SPAN&gt;&lt;SPAN&gt;) //Exclude the latest from MAX&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;End result:&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;I hope this helps and if it does consider accepting this as a solutio nand giving the post a thumbs up!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Jan 2022 10:23:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-Second-highest-value/m-p/2269196#M55167</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-06T10:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get Second highest value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-Second-highest-value/m-p/2269612#M55195</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="321070" data-lia-user-login="yogeshk77" class="lia-mention lia-mention-user"&gt;yogeshk77&lt;/a&gt;&amp;nbsp; provide sample data in a tabke format/ create a sample pbi, upload in 1/g drive and share the link here&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 14:39:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-Second-highest-value/m-p/2269612#M55195</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2022-01-06T14:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get Second highest value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-Second-highest-value/m-p/3906617#M152180</link>
      <description>&lt;P&gt;I kept getting True/False errors with this solution&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 21:57:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-Second-highest-value/m-p/3906617#M152180</guid>
      <dc:creator>CQueen</dc:creator>
      <dc:date>2024-05-09T21:57:09Z</dc:date>
    </item>
  </channel>
</rss>

