<?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: LOOKUPVALE from the same table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALE-from-the-same-table/m-p/1014649#M13011</link>
    <description>&lt;P&gt;I tried using the DAX :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Max Old Value = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR CurrentOppID = 'Krishna_Opp_Histrory_Forecast Category'[Max Date]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MAXX(FILTER(ALL('Krishna_Opp_Histrory_Forecast Category'), 'Krishna_Opp_Histrory_Forecast Category'[Max Date] = CurrentOppID),'Krishna_Opp_Histrory_Forecast Category'[Old Value])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But it is not giving me the desired result. Pls see below :&amp;nbsp; The actual Max Old Value is'Best Case' but it is giving me 'Pipeline'.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;All the below rows are from the Same Opportnity which got edited in different intervals.&lt;img /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 08 Apr 2020 09:06:47 GMT</pubDate>
    <dc:creator>KRISH80</dc:creator>
    <dc:date>2020-04-08T09:06:47Z</dc:date>
    <item>
      <title>LOOKUPVALE from the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALE-from-the-same-table/m-p/1014614#M13009</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I need hep to get the related value from the same table. I have a tabe below named Forecast Histroy and i need to find out the associated 'Old Value' for the 'Max Date' in the column 'Max-old-Forecast-Value'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Max date column is derived from the edited date column to identify the latest date and time an opportunity was edited. Now that i have the max date, i need to find out what is the associated latest 'old value'&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 08:47:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALE-from-the-same-table/m-p/1014614#M13009</guid>
      <dc:creator>KRISH80</dc:creator>
      <dc:date>2020-04-08T08:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: LOOKUPVALE from the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALE-from-the-same-table/m-p/1014649#M13011</link>
      <description>&lt;P&gt;I tried using the DAX :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Max Old Value = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR CurrentOppID = 'Krishna_Opp_Histrory_Forecast Category'[Max Date]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MAXX(FILTER(ALL('Krishna_Opp_Histrory_Forecast Category'), 'Krishna_Opp_Histrory_Forecast Category'[Max Date] = CurrentOppID),'Krishna_Opp_Histrory_Forecast Category'[Old Value])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But it is not giving me the desired result. Pls see below :&amp;nbsp; The actual Max Old Value is'Best Case' but it is giving me 'Pipeline'.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;All the below rows are from the Same Opportnity which got edited in different intervals.&lt;img /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Apr 2020 09:06:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALE-from-the-same-table/m-p/1014649#M13011</guid>
      <dc:creator>KRISH80</dc:creator>
      <dc:date>2020-04-08T09:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: LOOKUPVALE from the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALE-from-the-same-table/m-p/1014909#M13020</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="182953" data-lia-user-login="KRISH80" class="lia-mention lia-mention-user"&gt;KRISH80&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try modifying your DAX as follows:&lt;/P&gt;&lt;DIV&gt;&lt;EM&gt;Max Old Value =&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;MAXX(&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FILTER(ALL('Krishna_Opp_Histrory_Forecast Category'), '&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Krishna_Opp_Histrory_Forecast Category'[Max Date] = EARLIER('Krishna_Opp_Histrory_Forecast Category'[Max Date])),&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ' Krishna_Opp_Histrory_Forecast Category'[Old Value]&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If this doesn't work please attache some sample data to try on or .pbix file.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;EM&gt;If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Pragati&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Apr 2020 10:48:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALE-from-the-same-table/m-p/1014909#M13020</guid>
      <dc:creator>Pragati11</dc:creator>
      <dc:date>2020-04-08T10:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: LOOKUPVALE from the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALE-from-the-same-table/m-p/1015024#M13034</link>
      <description>&lt;P&gt;Thanks a lot Pragati.. butit is not helping with opportunities which have multiple entries. Can you help me with your email id pls ? such that i can share some&amp;nbsp; sample file with you ?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 11:26:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALE-from-the-same-table/m-p/1015024#M13034</guid>
      <dc:creator>KRISH80</dc:creator>
      <dc:date>2020-04-08T11:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: LOOKUPVALE from the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALE-from-the-same-table/m-p/1015053#M13037</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="182953" data-lia-user-login="KRISH80" class="lia-mention lia-mention-user"&gt;KRISH80&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can upload a sample file here or you can send a private message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pragati&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 11:44:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALE-from-the-same-table/m-p/1015053#M13037</guid>
      <dc:creator>Pragati11</dc:creator>
      <dc:date>2020-04-08T11:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: LOOKUPVALE from the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALE-from-the-same-table/m-p/1015454#M13044</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="182953" data-lia-user-login="KRISH80" class="lia-mention lia-mention-user"&gt;KRISH80&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was tricky thing to resolve, but I have got a way to do it.&lt;/P&gt;&lt;P&gt;You MAX DATE date is fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Maximum OLD Value, use the following DAX expression:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;EM&gt;Max old value = CALCULATE(MAX('Sheet1 (2)'[Old Value]), FILTER('Sheet1 (2)', 'Sheet1 (2)'[Max Date] = EARLIER('Sheet1 (2)'[Max Date]) &amp;amp;&amp;amp; 'Sheet1 (2)'[Opportunity ID] = EARLIER('Sheet1 (2)'[Opportunity ID]) &amp;amp;&amp;amp; 'Sheet1 (2)'[Edit Date] = 'Sheet1 (2)'[Max Date test]))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;NOTE: Replace &lt;STRONG&gt;'&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;Sheet1 (2)'&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt; --&amp;gt; Your table name&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have tested this in Power BI using the sample data that you shared and it works perfectly fine!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;EM&gt;If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Pragati&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Apr 2020 15:14:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALE-from-the-same-table/m-p/1015454#M13044</guid>
      <dc:creator>Pragati11</dc:creator>
      <dc:date>2020-04-08T15:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: LOOKUPVALE from the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALE-from-the-same-table/m-p/1015529#M13049</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="182953" data-lia-user-login="KRISH80" class="lia-mention lia-mention-user"&gt;KRISH80&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this solution works for you, please mark it as a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pragati&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 15:47:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALE-from-the-same-table/m-p/1015529#M13049</guid>
      <dc:creator>Pragati11</dc:creator>
      <dc:date>2020-04-08T15:47:46Z</dc:date>
    </item>
  </channel>
</rss>

