<?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: How to get a value of the last date? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-a-value-of-the-last-date/m-p/2764944#M85854</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;for the answer. I'll try those articles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2022 16:17:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-13T16:17:56Z</dc:date>
    <item>
      <title>How to get a value of the last date?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-a-value-of-the-last-date/m-p/2764690#M85830</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a database that has the following colunms: Product, Date and value. I need to get the value of the last date per product, to put in a card. How can I do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 14:24:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-a-value-of-the-last-date/m-p/2764690#M85830</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-13T14:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a value of the last date?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-a-value-of-the-last-date/m-p/2764737#M85840</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , Refer my these two blogs&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A href="https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0" target="_blank"&gt;https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://amitchandak.medium.com/power-bi-get-the-sum-of-the-last-latest-value-of-a-category-f1c839ee884e" target="_blank"&gt;https://amitchandak.medium.com/power-bi-get-the-sum-of-the-last-latest-value-of-a-category-f1c839ee884e&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 14:43:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-a-value-of-the-last-date/m-p/2764737#M85840</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-09-13T14:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a value of the last date?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-a-value-of-the-last-date/m-p/2764944#M85854</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;for the answer. I'll try those articles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 16:17:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-a-value-of-the-last-date/m-p/2764944#M85854</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-13T16:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a value of the last date?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-a-value-of-the-last-date/m-p/2765019#M85857</link>
      <description>&lt;P&gt;Why can't we just use LASTNONBLANK/LASTNONBLANKVALUE here?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 17:11:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-a-value-of-the-last-date/m-p/2765019#M85857</guid>
      <dc:creator>DmitryKo</dc:creator>
      <dc:date>2022-09-13T17:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a value of the last date?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-a-value-of-the-last-date/m-p/2769308#M86126</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try the following methods.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my test table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Max date =

CALCULATE (

    MAX ( 'Product'[Date] ),

    FILTER ( 'Product', [Product] = SELECTEDVALUE ( 'Product'[Product] ) )

)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Max date value =

CALCULATE (

    MAX ( 'Product'[Value] ),

    FILTER (

        'Product',

        [Date] = [Max date]

            &amp;amp;&amp;amp; [Product] = SELECTEDVALUE ( 'Product'[Product] )

    )

)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result is:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this the result you expect?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Yinliw&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 07:00:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-a-value-of-the-last-date/m-p/2769308#M86126</guid>
      <dc:creator>v-yinliw-msft</dc:creator>
      <dc:date>2022-09-15T07:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a value of the last date?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-a-value-of-the-last-date/m-p/2778212#M86829</link>
      <description>&lt;P&gt;Why is this accepted as solution when SELECTEDVALUE would only work when there's exactly one value selected for a given dimension? There could easily me more than one or none Product(s) selected at all...&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 16:13:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-a-value-of-the-last-date/m-p/2778212#M86829</guid>
      <dc:creator>DmitryKo</dc:creator>
      <dc:date>2022-09-19T16:13:26Z</dc:date>
    </item>
  </channel>
</rss>

