<?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: Returning a separate planned date field based off the associated MAXX trend date in the same row in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-separate-planned-date-field-based-off-the-associated/m-p/3551174#M136609</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="403667" data-lia-user-login="123abc" class="lia-mention lia-mention-user"&gt;123abc&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your time responding to my DAX problem. I received the error in the image below when inputting your recommended DAX formula.&amp;nbsp;&lt;BR /&gt;&lt;EM&gt;"Column 'MAXX Trend Date' in table 'Sample Data' cannot be found or may not be used in this expression."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I tried creating both a measure and a column with the DAX formula and have received errors.&lt;BR /&gt;I have been exploring numerous combinations of SELECTEDVALUE, CALCULATE, &amp;amp; FILTER functions to retrieve the correct associated Planned &amp;amp; Requested End Dates relative to the MAXX Trend Date in the same data row, but have failed to successfully to do so.&lt;BR /&gt;&lt;BR /&gt;Any further DAX assistance on this topic would be greatly appreciated, thanks again for the effort!&lt;/P&gt;</description>
    <pubDate>Fri, 24 Nov 2023 16:00:55 GMT</pubDate>
    <dc:creator>passerf</dc:creator>
    <dc:date>2023-11-24T16:00:55Z</dc:date>
    <item>
      <title>Returning a separate planned date field based off the associated MAXX trend date in the same row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-separate-planned-date-field-based-off-the-associated/m-p/3543257#M136208</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello Power BI Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This may be a simple fix, but let me elaborate on the challenge encountered and what I am trying to achieve.&lt;/P&gt;&lt;P&gt;I have searched other Max Date problem statements, but haven't found an exact use case similar to my desired intent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt; I am creating a conditional table based off multiple different date values, but most importantly the max pull of a Trend Date. I have data in one Table called 'Sample Data', I have 5 concatenated data values in a calculated column - Product, Customer, Type, Phase, and Status. Here is a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;A title="Sample Data PBIX File" href="https://drive.google.com/file/d/1zPpwipy2aGmDJ65s1ucA6lIUfV9oj4qn/view?usp=drive_link" target="_self"&gt;Sample Data PBIX File&lt;/A&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;to visualize what I am trying to achieve with the desired DAX formula.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;STRONG&gt;DAX Intent:&lt;/STRONG&gt; I am trying to populate both the Planned &amp;amp; Requested Dates (which can be located in the 'Drill-Through Metadata' page when selected) of the associated "MAXX Trend Date" data row.&lt;/P&gt;&lt;P&gt;All rows have multiple Trend Dates, the MAXX Trend Date is correctly returning the max trend date for the concatenated fields in the logic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here are the steps of my current progress:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 1. I created a calculated column called "Concatenated Fields" using the Product, Customer, Type, Phase, &amp;amp; Status fields from the Sample Data table.&lt;/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;))))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Step 2. I created a measure called "MAXX Trend Date" involving the "Concatenated Fields" column to show the long pole of each max Trend Date of the unique rows separated into the 3 phase pages - First Phase, Second Phase, Third Phase.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;U&gt;&lt;STRONG&gt;DAX&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MAXX Trend Date = &lt;/SPAN&gt;&lt;SPAN&gt;Var&lt;/SPAN&gt;&lt;SPAN&gt; _Datavalues = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;('Sample Data'[Concatenated Fields])&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&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;ALL&lt;/SPAN&gt;&lt;SPAN&gt;('Sample Data'),'Sample Data'[Concatenated Fields] = _Datavalues),'Sample Data'[Trend Date])&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;Step 3. I created another calculated column called "Concated Fields with MAXX Trend Date" to use the unique rows of the MAXX Trend Date and attempt to return the associated Planned &amp;amp; Requested Dates of the MAXX Trend Date&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;U&gt;&lt;STRONG&gt;DAX&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Concatenated Fields with MAXX Trend Date = &lt;/SPAN&gt;&lt;SPAN&gt;CONCATENATE&lt;/SPAN&gt;&lt;SPAN&gt;('Sample Data'[MAXX Trend Date], [Concatenated Fields])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Step 4. &lt;STRONG&gt;[&lt;/STRONG&gt;&lt;U&gt;&lt;STRONG&gt;DAX HELP REQUESTED&lt;/STRONG&gt;&lt;/U&gt;&lt;STRONG&gt;]&lt;/STRONG&gt; In this step I am trying to find the correct DAX logic to return the selected value of each of the Planned and Request Dates that are associated to the MAXX Trend Date value.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;U&gt;&lt;STRONG&gt;INCORRECT DAX&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;INCORRECT DAX - Selected Value Planned Date = &lt;/SPAN&gt;&lt;SPAN&gt;Var&lt;/SPAN&gt; &lt;SPAN&gt;_SelectedValuePlannedDate&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Sample Data'&lt;/SPAN&gt;&lt;SPAN&gt;[Concatenated Fields with MAXX Trend Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&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&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;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Sample Data'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'Sample Data'&lt;/SPAN&gt;&lt;SPAN&gt;[Concatenated Fields with MAXX Trend Date]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;_SelectedValuePlannedDate&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;'Sample Data'&lt;/SPAN&gt;&lt;SPAN&gt;[Planned Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I understand in Step 4 the DAX is incorrect because the formula does not return the correct Planned Date value as all values are blank.&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;Example Screenshots&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;As I select the first row in the "First Phase" page, the MAXX Trend Date = 2023-12-27, which is correctly represented for the concatenated criteria.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I Drill Through the selected first row to the metadata, I see multiple rows containing dates, but the MAXX Trend Date logic is correctly returning the max Trend Date value of 2023-12-27.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;I want to find the DAX logic to also return the associated Requested (2023-11-10) and Planned (2023-11-11) Dates of the max Trend Date value, to include those calculated columns on the "First Phase" report page.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any DAX assistance with the desired objective would be greatly appreciated! Please advise if I have not articulated the DAX issue well enough and I will further elaborate, thank you in advance.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;&lt;A title="Sample Data PBIX File" href="https://drive.google.com/file/d/1zPpwipy2aGmDJ65s1ucA6lIUfV9oj4qn/view?usp=drive_link" target="_self"&gt;Sample Data PBIX File&lt;/A&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Nov 2023 22:52:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-separate-planned-date-field-based-off-the-associated/m-p/3543257#M136208</guid>
      <dc:creator>passerf</dc:creator>
      <dc:date>2023-11-27T22:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a separate planned date field based off the associated MAXX trend date in the same row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-separate-planned-date-field-based-off-the-associated/m-p/3543794#M136241</link>
      <description>&lt;P&gt;&lt;SPAN&gt;It looks like you're trying to retrieve the Planned and Requested Dates associated with the MAX Trend Date for each row in your data. The key here is to use the MAXX Trend Date as a filter to identify the corresponding Planned and Requested Dates. Below is the corrected DAX for your Step 4:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Selected Value Planned Date =&lt;BR /&gt;VAR _SelectedValuePlannedDate = SELECTEDVALUE('Sample Data'[MAXX Trend Date])&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;MAX('Sample Data'[Planned Date]),&lt;BR /&gt;'Sample Data'[MAXX Trend Date] = _SelectedValuePlannedDate&lt;BR /&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Similarly, you can create a measure for the Requested Date:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Selected Value Requested Date =&lt;BR /&gt;VAR _SelectedValuePlannedDate = SELECTEDVALUE('Sample Data'[MAXX Trend Date])&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;MAX('Sample Data'[Requested Date]),&lt;BR /&gt;'Sample Data'[MAXX Trend Date] = _SelectedValuePlannedDate&lt;BR /&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This DAX code uses the CALCULATE function to apply a filter on the 'Sample Data' table, specifying that the 'MAXX Trend Date' should be equal to the selected MAX Trend Date. This way, you get the Planned and Requested Dates corresponding to the MAX Trend Date.&lt;/P&gt;&lt;P&gt;Make sure to replace 'Requested Date' and 'Planned Date' with your actual column names if they are different in your dataset.&lt;/P&gt;&lt;P&gt;Remember to also consider scenarios where there might be multiple rows with the same MAX Trend Date. In such cases, the MAX function used in the 'MAXX Trend Date' measure will return a single value, but you should still make sure that the logic fits your specific use case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In case there is still a problem, please feel free and explain your issue in detail,&amp;nbsp;It will be my pleasure to assist you in any way I can.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 05:42:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-separate-planned-date-field-based-off-the-associated/m-p/3543794#M136241</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2023-11-21T05:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a separate planned date field based off the associated MAXX trend date in the same row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-separate-planned-date-field-based-off-the-associated/m-p/3551174#M136609</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="403667" data-lia-user-login="123abc" class="lia-mention lia-mention-user"&gt;123abc&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your time responding to my DAX problem. I received the error in the image below when inputting your recommended DAX formula.&amp;nbsp;&lt;BR /&gt;&lt;EM&gt;"Column 'MAXX Trend Date' in table 'Sample Data' cannot be found or may not be used in this expression."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I tried creating both a measure and a column with the DAX formula and have received errors.&lt;BR /&gt;I have been exploring numerous combinations of SELECTEDVALUE, CALCULATE, &amp;amp; FILTER functions to retrieve the correct associated Planned &amp;amp; Requested End Dates relative to the MAXX Trend Date in the same data row, but have failed to successfully to do so.&lt;BR /&gt;&lt;BR /&gt;Any further DAX assistance on this topic would be greatly appreciated, thanks again for the effort!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 16:00:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-separate-planned-date-field-based-off-the-associated/m-p/3551174#M136609</guid>
      <dc:creator>passerf</dc:creator>
      <dc:date>2023-11-24T16:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a separate planned date field based off the associated MAXX trend date in the same row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-separate-planned-date-field-based-off-the-associated/m-p/3555225#M136828</link>
      <description>&lt;P&gt;Any other DAX function recommendations to achieve the desired date value result? Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 22:53:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-separate-planned-date-field-based-off-the-associated/m-p/3555225#M136828</guid>
      <dc:creator>passerf</dc:creator>
      <dc:date>2023-11-27T22:53:04Z</dc:date>
    </item>
  </channel>
</rss>

