<?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: DAX Formula to find latest date value in a group-GROUP BY in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-find-latest-date-value-in-a-group-GROUP-BY/m-p/3652251#M141491</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This helps but I need to use Group by&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jan 2024 17:35:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-01-22T17:35:55Z</dc:date>
    <item>
      <title>DAX Formula to find latest date value in a group-GROUP BY</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-find-latest-date-value-in-a-group-GROUP-BY/m-p/3636520#M140686</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have four dates. I need to compare ship date to the latter of the three using GROUP BY. A product ships(Ship date) and it goes into one of three dates depending on it's workflow. These are the three dates that need to be grouped: Submission Date, Price Approved Date and Terms Approved date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;A product either goes to automatic approval(submission date) or a special price or term was requested for the product(Price Approved or Terms Approved date). Once it goes to one of those three dates it then needs to be pushed to invoicing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to figure out the days between the ship date and whichever of the three dates is the "last" one. I need to group by the three dates and compare them to the ship date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 17:34:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-find-latest-date-value-in-a-group-GROUP-BY/m-p/3636520#M140686</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-22T17:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula to find latest date value in a group-GROUP BY</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-find-latest-date-value-in-a-group-GROUP-BY/m-p/3636530#M140687</link>
      <description>&lt;P&gt;hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;what's with blank value&amp;nbsp;&lt;/P&gt;&lt;P&gt;means how&amp;nbsp; to compare date with blank value&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 18:28:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-find-latest-date-value-in-a-group-GROUP-BY/m-p/3636530#M140687</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-01-12T18:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula to find latest date value in a group-GROUP BY</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-find-latest-date-value-in-a-group-GROUP-BY/m-p/3636543#M140689</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;There's multiple physical dates(Basically Order Start Date) where they each have a unique identifier, but each unique identifier with its own physical date has multiple dates(the three other date columns I have) that we would say it's completed.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;And it's the Max of those three dates that tells us when the order was completed.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Basically I need to know the number of days from start(physical date) to Finish.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Jan 2024 18:42:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-find-latest-date-value-in-a-group-GROUP-BY/m-p/3636543#M140689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-12T18:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula to find latest date value in a group-GROUP BY</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-find-latest-date-value-in-a-group-GROUP-BY/m-p/3636598#M140695</link>
      <description>&lt;P&gt;hi,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;as understood your problem&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;measure =
var a = calculate(min(tablename[physicaldate]),allexcept(tablename,tablename[uniqueidentifiercolumn]))
var b = calculate(max(tablename[physicaldate]),allexcept(tablename,tablename[uniqueidentifiercolumn]))
return
datediff(a,b,day)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 12 Jan 2024 19:24:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-find-latest-date-value-in-a-group-GROUP-BY/m-p/3636598#M140695</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-01-12T19:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula to find latest date value in a group-GROUP BY</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-find-latest-date-value-in-a-group-GROUP-BY/m-p/3647514#M141269</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, here are my steps you can follow as a solution.&lt;/P&gt;
&lt;P&gt;(1) This is my test data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(2) We can create calculated columns.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;max date = 
var _a=IF([Price Approved Date]&amp;gt;=[Terms Approved Date], [Price Approved Date],[Terms Approved Date])
return IF(_a&amp;gt;= [Submission Date],_a,[Submission Date])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;the number of days between = DATEDIFF([Physical Date],[max date],DAY)&lt;/LI-CODE&gt;
&lt;P&gt;(3) Then the result is as follows.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 07:33:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-find-latest-date-value-in-a-group-GROUP-BY/m-p/3647514#M141269</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-19T07:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula to find latest date value in a group-GROUP BY</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-find-latest-date-value-in-a-group-GROUP-BY/m-p/3652250#M141490</link>
      <description>&lt;P&gt;Hi, this helps but I need to use Group By&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 17:35:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-find-latest-date-value-in-a-group-GROUP-BY/m-p/3652250#M141490</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-22T17:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula to find latest date value in a group-GROUP BY</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-find-latest-date-value-in-a-group-GROUP-BY/m-p/3652251#M141491</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This helps but I need to use Group by&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 17:35:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-find-latest-date-value-in-a-group-GROUP-BY/m-p/3652251#M141491</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-22T17:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula to find latest date value in a group-GROUP BY</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-find-latest-date-value-in-a-group-GROUP-BY/m-p/3653388#M141539</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can create calculated columns.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;max date = 
var _a=IF([Price Approved Date]&amp;gt;=[Terms Approved Date], [Price Approved Date],[Terms Approved Date])
return IF(_a&amp;gt;= [Submission Date],_a,[Submission Date])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;the number of days between = DATEDIFF([Physical Date],[max date],DAY)&lt;/LI-CODE&gt;
&lt;P&gt;Then we can create a table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 3 = GROUPBY('Table',[Price Approved Date],[Submission Date],[Terms Approved Date],[max date],[the number of days between])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If the above one can't help you get the desired result, please provide your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples.&amp;nbsp;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;pbix file.&amp;nbsp;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 07:43:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-find-latest-date-value-in-a-group-GROUP-BY/m-p/3653388#M141539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-23T07:43:30Z</dc:date>
    </item>
  </channel>
</rss>

