<?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 activity end date as the latest end date of the resources performing the activity in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-activity-end-date-as-the-latest-end-date-of-the-resources/m-p/3849060#M150397</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625628" data-lia-user-login="qqqqqwwwweeerrr" class="lia-mention lia-mention-user"&gt;qqqqqwwwweeerrr&lt;/a&gt;&amp;nbsp;. Thank you for&amp;nbsp; your help. I really appreciate it.&lt;BR /&gt;If possible, can you give me a further assistance? I thought I didn´t need to include the other piece (to not further complicate the problem) but I was mistaken. I want to use that new column in a matrix; so that if a resource is selected, the end date of the resource is selected; otherwise, the end date of the activity (the one we just got) is selected. Adding the resource column to your sample, I have the image below. I don´t know why it doesn´t work. Is there an alternative?&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ActivityEndDate = 
IF( 
    NOT HASONEVALUE(Table_1[ResourceId]);
    CALCULATE(
        MAX(Table_1[ResourceEndDate]);
            FILTER(
                'table_1';
                table_1[ID] = EARLIER(table_1[ID])
            )
    );
    Table_1[ResourceEndDate]
)
//Note: my system uses semi-colon as separator; so that isn´t a source of error&lt;/LI-CODE&gt;&lt;P&gt;Thank you again for you help&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625628" data-lia-user-login="qqqqqwwwweeerrr" class="lia-mention lia-mention-user"&gt;qqqqqwwwweeerrr&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2024 09:38:40 GMT</pubDate>
    <dc:creator>David_Rolcy</dc:creator>
    <dc:date>2024-04-18T09:38:40Z</dc:date>
    <item>
      <title>Get activity end date as the latest end date of the resources performing the activity</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-activity-end-date-as-the-latest-end-date-of-the-resources/m-p/3845331#M150298</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I need assistance with a DAX expression for Power BI. I've attached a picture illustrating the Current State (in green) and the Desired State (in green and orange). In the Current State, I have the start and end dates of resources performing certain activities. I want to add a column that displays the end date of each activity as the maximum end date of the employees performing that activity.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;I've attempted to use the following DAX expression (employing ALLEXCEPT to avoid circular errors), but it hasn't produced the desired outcome:&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ActivityEndDate = 

CALCULATE(
    MAXX(
        FILTER(
            Activities,
            Activities[idActivity] = SELECTEDVALUE(Activities[idActivity])
        ),
        Activities[ResourceEndDate]
    ),
    ALLEXCEPT(Activities, Activities[Resource])
)&lt;/LI-CODE&gt;&lt;P&gt;I've also included a link to a sample Excel file for reference.&lt;/P&gt;&lt;P&gt;&lt;A title="Activities Data Sample " href="https://docs.google.com/spreadsheets/d/1ertMCCWGi1800o52P46qQXk_9blFN1eG/edit?usp=drive_link&amp;amp;ouid=114096237014930195748&amp;amp;rtpof=true&amp;amp;sd=true" target="_self"&gt;https://docs.google.com/spreadsheets/d/1ertMCCWGi1800o52P46qQXk_9blFN1eG/edit?usp=drive_link&amp;amp;ouid=114096237014930195748&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your assistance with this matter would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 10:58:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-activity-end-date-as-the-latest-end-date-of-the-resources/m-p/3845331#M150298</guid>
      <dc:creator>David_Rolcy</dc:creator>
      <dc:date>2024-04-17T10:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get activity end date as the latest end date of the resources performing the activity</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-activity-end-date-as-the-latest-end-date-of-the-resources/m-p/3846095#M150319</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="726409" data-lia-user-login="David_Rolcy" class="lia-mention lia-mention-user"&gt;David_Rolcy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not able to access your excel for some reason. I have taken sample data like below&lt;BR /&gt;you can create new column by this formula:&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;Column =&lt;/SPAN&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;table_1&lt;/SPAN&gt;&lt;SPAN&gt;[EndDate]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'table_1'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;table_1&lt;/SPAN&gt;&lt;SPAN&gt;[ID]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;EARLIER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;table_1&lt;/SPAN&gt;&lt;SPAN&gt;[ID]&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;)))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want dat fir the same here is the dax&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;maxenddate = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(table_1[EndDate]),&lt;/SPAN&gt;&lt;SPAN&gt;REMOVEFILTERS&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;(table_1[EndDate]))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!&lt;BR /&gt;Check for more intersing solution here: &lt;A class="" href="http://www.youtube.com/@Howtosolveprobem" target="_blank" rel="noopener nofollow noreferrer"&gt;www.youtube.com/@Howtosolveprobem&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sat, 22 Jun 2024 05:54:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-activity-end-date-as-the-latest-end-date-of-the-resources/m-p/3846095#M150319</guid>
      <dc:creator>qqqqqwwwweeerrr</dc:creator>
      <dc:date>2024-06-22T05:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get activity end date as the latest end date of the resources performing the activity</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-activity-end-date-as-the-latest-end-date-of-the-resources/m-p/3849060#M150397</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625628" data-lia-user-login="qqqqqwwwweeerrr" class="lia-mention lia-mention-user"&gt;qqqqqwwwweeerrr&lt;/a&gt;&amp;nbsp;. Thank you for&amp;nbsp; your help. I really appreciate it.&lt;BR /&gt;If possible, can you give me a further assistance? I thought I didn´t need to include the other piece (to not further complicate the problem) but I was mistaken. I want to use that new column in a matrix; so that if a resource is selected, the end date of the resource is selected; otherwise, the end date of the activity (the one we just got) is selected. Adding the resource column to your sample, I have the image below. I don´t know why it doesn´t work. Is there an alternative?&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ActivityEndDate = 
IF( 
    NOT HASONEVALUE(Table_1[ResourceId]);
    CALCULATE(
        MAX(Table_1[ResourceEndDate]);
            FILTER(
                'table_1';
                table_1[ID] = EARLIER(table_1[ID])
            )
    );
    Table_1[ResourceEndDate]
)
//Note: my system uses semi-colon as separator; so that isn´t a source of error&lt;/LI-CODE&gt;&lt;P&gt;Thank you again for you help&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625628" data-lia-user-login="qqqqqwwwweeerrr" class="lia-mention lia-mention-user"&gt;qqqqqwwwweeerrr&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 09:38:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-activity-end-date-as-the-latest-end-date-of-the-resources/m-p/3849060#M150397</guid>
      <dc:creator>David_Rolcy</dc:creator>
      <dc:date>2024-04-18T09:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get activity end date as the latest end date of the resources performing the activity</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-activity-end-date-as-the-latest-end-date-of-the-resources/m-p/3850025#M150432</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="726409" data-lia-user-login="David_Rolcy" class="lia-mention lia-mention-user"&gt;David_Rolcy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apologies I am a bit confused. Here is my take if you want to use it in matrix&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;The use the measure not custom column reason being measure will be caluclated at run time (like if you have filter also it will work)&lt;BR /&gt;&lt;BR /&gt;Second thing when you say resource is selected means in filter? or in row say if two resource is selected in filter then it should be activity date should be dislayed or if say only one selected then dispaly end of date like it will swtich between both based on resouce filter?&lt;BR /&gt;For that you can create swtich statment that will helfull&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;if this even does not helps please raise a new question in which please provide sample data in table form so that once can use direclty second expected output image, i will try to resolve coz it will be new learning to other as well and there might be chances that someon will give you better approach with solution&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 13:00:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-activity-end-date-as-the-latest-end-date-of-the-resources/m-p/3850025#M150432</guid>
      <dc:creator>qqqqqwwwweeerrr</dc:creator>
      <dc:date>2024-04-18T13:00:44Z</dc:date>
    </item>
  </channel>
</rss>

