<?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: MAX Date for Row in Table but only for certain columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-for-Row-in-Table-but-only-for-certain-columns/m-p/2869441#M92549</link>
    <description>&lt;P&gt;Thanks for you help here, it wasnt the solution I was looking for in this example, but I had another issue I was working on where this worked great! Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 28 Oct 2022 02:46:56 GMT</pubDate>
    <dc:creator>amart</dc:creator>
    <dc:date>2022-10-28T02:46:56Z</dc:date>
    <item>
      <title>MAX Date for Row in Table but only for certain columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-for-Row-in-Table-but-only-for-certain-columns/m-p/2868083#M92469</link>
      <description>&lt;P&gt;Hey guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been working on this for a while and my gut feeling is that i'm missing something&amp;nbsp; obvious here. Relatively knew to DAX but have experience in other programming languages.&amp;nbsp; I'm only working in excel at this point through PowerPivot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got a table with rows of data that that is updated each year. I'm trying to find the last row in each year to display to my user how much time we have until the licnese needs to be renewed. I've gotten close with both the MAX(date) and LASTDATE() function but keep running into an issue.&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I want to display the MAX date in the table only in context for certain columns. The issue is when the contractor changes it&amp;nbsp;interprets it as a new row context and gives a new row in the Pivot Table. So in this case I want to ignore the Contractor context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the ideal result.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated. Also,&amp;nbsp; the other help i've gotten from reading other posts has been great, so thanks for everyone's help direct or indirect!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 12:54:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-for-Row-in-Table-but-only-for-certain-columns/m-p/2868083#M92469</guid>
      <dc:creator>amart</dc:creator>
      <dc:date>2022-10-27T12:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Date for Row in Table but only for certain columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-for-Row-in-Table-but-only-for-certain-columns/m-p/2868094#M92472</link>
      <description>&lt;P&gt;Hello you could try&lt;/P&gt;&lt;P&gt;if([license type]= Blank(),Blank(),max([date]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then use filter panel to filter out blank values&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 12:58:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-for-Row-in-Table-but-only-for-certain-columns/m-p/2868094#M92472</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-27T12:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Date for Row in Table but only for certain columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-for-Row-in-Table-but-only-for-certain-columns/m-p/2868167#M92474</link>
      <description>&lt;P&gt;Thank you for your response. I had do not repeat on the pivot table settings so it didn't show property. Below is what the actual values are.&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;So its pulling in the entire row for the prior year date because the contract has changed. In reality I just want the latest row in the table for only Holding, License Type and Entity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 13:22:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-for-Row-in-Table-but-only-for-certain-columns/m-p/2868167#M92474</guid>
      <dc:creator>amart</dc:creator>
      <dc:date>2022-10-27T13:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Date for Row in Table but only for certain columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-for-Row-in-Table-but-only-for-certain-columns/m-p/2868173#M92475</link>
      <description>&lt;P&gt;This is the full data from the tables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 1&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Table 2&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 13:23:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-for-Row-in-Table-but-only-for-certain-columns/m-p/2868173#M92475</guid>
      <dc:creator>amart</dc:creator>
      <dc:date>2022-10-27T13:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Date for Row in Table but only for certain columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-for-Row-in-Table-but-only-for-certain-columns/m-p/2868319#M92482</link>
      <description>&lt;P&gt;oh ok i created a sample of your data:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;is this the result you want below?"&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if yes then this is the formula i used:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Latest Date = CALCULATE(MAX(Amart[Exp. Date]),ALLEXCEPT(Amart,Amart[Contractor]))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 27 Oct 2022 14:17:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-for-Row-in-Table-but-only-for-certain-columns/m-p/2868319#M92482</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-27T14:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Date for Row in Table but only for certain columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-for-Row-in-Table-but-only-for-certain-columns/m-p/2868346#M92484</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="454948" data-lia-user-login="amart" class="lia-mention lia-mention-user"&gt;amart&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please refer to attached sample file with the solution&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Exp_Date :=
VAR CurrentIDTable =
    CALCULATETABLE (
        Table1,
        ALL ( Table1 ),
        ALL ( Table2 ),
        VALUES ( Table1[Holding_ID] )
    )
VAR LastRecord =
    TOPN ( 1, CurrentIDTable, Table1[Date] )
VAR LastContractor =
    MAXX ( LastRecord, Table1[Contractor] )
VAR CurrentContractor =
    MAX ( Table1[Contractor] )
RETURN
    IF ( CurrentContractor = LastContractor, MAX ( Table1[Date] ) )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 27 Oct 2022 14:24:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-for-Row-in-Table-but-only-for-certain-columns/m-p/2868346#M92484</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-27T14:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Date for Row in Table but only for certain columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-for-Row-in-Table-but-only-for-certain-columns/m-p/2869438#M92548</link>
      <description>&lt;P&gt;That worked! I have a bunch of other tables i'm going to build using the same format! Thanks so much! This community is awesome!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 02:45:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-for-Row-in-Table-but-only-for-certain-columns/m-p/2869438#M92548</guid>
      <dc:creator>amart</dc:creator>
      <dc:date>2022-10-28T02:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Date for Row in Table but only for certain columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-for-Row-in-Table-but-only-for-certain-columns/m-p/2869441#M92549</link>
      <description>&lt;P&gt;Thanks for you help here, it wasnt the solution I was looking for in this example, but I had another issue I was working on where this worked great! Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 02:46:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-for-Row-in-Table-but-only-for-certain-columns/m-p/2869441#M92549</guid>
      <dc:creator>amart</dc:creator>
      <dc:date>2022-10-28T02:46:56Z</dc:date>
    </item>
  </channel>
</rss>

