<?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 Showing Earliest Date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-Earliest-Date/m-p/2141228#M49218</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have a report pulling from our database regarding purchase orders and when they are received. Since a purchase order can contain many items that get received on different days, I'd like to have a way to only pull the latest day. Right now, It's showing each receipt on its' own line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Oct 2021 16:56:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-10-18T16:56:52Z</dc:date>
    <item>
      <title>Showing Earliest Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-Earliest-Date/m-p/2141228#M49218</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have a report pulling from our database regarding purchase orders and when they are received. Since a purchase order can contain many items that get received on different days, I'd like to have a way to only pull the latest day. Right now, It's showing each receipt on its' own line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 16:56:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-Earliest-Date/m-p/2141228#M49218</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-18T16:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Showing Earliest Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-Earliest-Date/m-p/2141729#M49238</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can &lt;A href="https://docs.microsoft.com/en-us/dax/summarize-function-dax" target="_self"&gt;summarize&lt;/A&gt; your table to show the latest day for each PO, or you can use &lt;A href="https://docs.microsoft.com/en-us/dax/max-function-dax" target="_self"&gt;MAX&lt;/A&gt; or &lt;A href="https://docs.microsoft.com/en-us/dax/lastdate-function-dax" target="_self"&gt;LASTDATE&lt;/A&gt; to find that. It depends on your data model and the result you are looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share a sample of your data and result?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 01:08:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-Earliest-Date/m-p/2141729#M49238</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-10-19T01:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Showing Earliest Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-Earliest-Date/m-p/2143175#M49273</link>
      <description>&lt;P&gt;Below is a screenshot of what I'm looking at. Each Job has multiple items that have to be received. Instead of showing me all of the dates where the job was received, I just want the last one.&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;When I use the LASTDATE function, it gives me the same result:&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;When I use the MAX function, it shows me this, which doesn't make sense because nothing can be recieved in the future:&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;</description>
      <pubDate>Tue, 19 Oct 2021 12:31:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-Earliest-Date/m-p/2143175#M49273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-19T12:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Showing Earliest Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-Earliest-Date/m-p/2149332#M49496</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Try to disable 'Show data with no item' and use LastDate()&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = LASTDATE('Table'[PurchRec.Date])&lt;/LI-CODE&gt;
&lt;P&gt;Or&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 2 = 
CALCULATE(
    MAX('Table'[PurchRec.Date]),
    ALLEXCEPT('Table','Table'[PurchRec.Date])
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Yingjie Li&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 02:23:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-Earliest-Date/m-p/2149332#M49496</guid>
      <dc:creator>v-yingjl</dc:creator>
      <dc:date>2021-10-22T02:23:36Z</dc:date>
    </item>
  </channel>
</rss>

