<?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: Value from last day (calendar date) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Value-from-last-day-calendar-date/m-p/2301749#M56865</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240828" data-lia-user-login="pedroccamaraDBI" class="lia-mention lia-mention-user"&gt;pedroccamaraDBI&lt;/a&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Give this a try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure =
VAR MaxDate =
    CALCULATE ( MAX ( 'Date'[Date] ), ALLSELECTED ( 'Date'[Date] ) )
VAR Result =
    CALCULATE ( MAX ( Sales[Qty Day] ), 'Date'[Date] = MaxDate )
RETURN
    Result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jan 2022 19:04:54 GMT</pubDate>
    <dc:creator>SteveHailey</dc:creator>
    <dc:date>2022-01-25T19:04:54Z</dc:date>
    <item>
      <title>Value from last day (calendar date)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Value-from-last-day-calendar-date/m-p/2301411#M56847</link>
      <description>&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;I have this table and a date filter from calendar table.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;The date filter is from 5 oct till 11 oct . I want that my measure shows the unit stocks for that last day 11/10 which would be 106 for each SKU column.&lt;BR /&gt;Thank you all very much&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 15:39:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Value-from-last-day-calendar-date/m-p/2301411#M56847</guid>
      <dc:creator>pedroccamaraDBI</dc:creator>
      <dc:date>2022-01-25T15:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Value from last day (calendar date)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Value-from-last-day-calendar-date/m-p/2301535#M56852</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240828" data-lia-user-login="pedroccamaraDBI" class="lia-mention lia-mention-user"&gt;pedroccamaraDBI&lt;/a&gt; ,Try measure liek &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;calculate(lastnonblankvalue('Date'[Date], sum(Table[Unit stock])&amp;nbsp; )&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 16:26:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Value-from-last-day-calendar-date/m-p/2301535#M56852</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-01-25T16:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Value from last day (calendar date)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Value-from-last-day-calendar-date/m-p/2301633#M56859</link>
      <description>&lt;P&gt;Hello&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;&lt;BR /&gt;Many thanks for your answer.&lt;BR /&gt;Let me explain you what is my data:&lt;BR /&gt;For each day, i have the product code (SKU) the movement id (ID Mov) and the Qty mov, which is how many products were moved and the Qty day which is the balance. I need to know, according with date filter (from dates) the Qty Day of the MAX date on the filter. Which means in this case, it should be 106. Notice that if i may choose 2 or 3 product codes (SKU).&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;My measure should show 106 in this case because it's the value from the last date chosen.&lt;BR /&gt;I'm not sure and even don't know how to, where to do it, but i believe we should have some kind of this: ALL (Products) in that measure, right?&lt;BR /&gt;Thanks a lot for your help&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 17:22:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Value-from-last-day-calendar-date/m-p/2301633#M56859</guid>
      <dc:creator>pedroccamaraDBI</dc:creator>
      <dc:date>2022-01-25T17:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Value from last day (calendar date)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Value-from-last-day-calendar-date/m-p/2301749#M56865</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240828" data-lia-user-login="pedroccamaraDBI" class="lia-mention lia-mention-user"&gt;pedroccamaraDBI&lt;/a&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Give this a try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure =
VAR MaxDate =
    CALCULATE ( MAX ( 'Date'[Date] ), ALLSELECTED ( 'Date'[Date] ) )
VAR Result =
    CALCULATE ( MAX ( Sales[Qty Day] ), 'Date'[Date] = MaxDate )
RETURN
    Result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 19:04:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Value-from-last-day-calendar-date/m-p/2301749#M56865</guid>
      <dc:creator>SteveHailey</dc:creator>
      <dc:date>2022-01-25T19:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Value from last day (calendar date)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Value-from-last-day-calendar-date/m-p/2301770#M56867</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="284031" data-lia-user-login="SteveHailey" class="lia-mention lia-mention-user"&gt;SteveHailey&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you so much for your help. You're the 7th person that i asked for help.&lt;BR /&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 19:23:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Value-from-last-day-calendar-date/m-p/2301770#M56867</guid>
      <dc:creator>pedroccamaraDBI</dc:creator>
      <dc:date>2022-01-25T19:23:42Z</dc:date>
    </item>
  </channel>
</rss>

