<?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: Calculation revenue for the last date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-revenue-for-the-last-date/m-p/2737809#M84001</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="386899" data-lia-user-login="Berl21" class="lia-mention lia-mention-user"&gt;Berl21&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I made a sample file with the solution, please check the attached file,&lt;BR /&gt;The measure [Total Units by Max Date ] should work for you&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Unitd by Max Date = 

IF(
    ISINSCOPE('financials'[Date]),
    VAR __MAXDATE = CALCULATE( MAX('financials'[Date]) , ALLSELECTED(financials[Date] ))
    RETURN
    IF( MAX('financials'[Date]) = __MAXDATE , [Total Units] ),
    [Total Units]
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2022 10:44:46 GMT</pubDate>
    <dc:creator>Fowmy</dc:creator>
    <dc:date>2022-08-31T10:44:46Z</dc:date>
    <item>
      <title>Calculation revenue for the last date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-revenue-for-the-last-date/m-p/2737766#M83998</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am a bit lost concerning the use of MAX with dates. I thought it would be possible to use a dynamic max date and then combine it with a calculate revenue function.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Here is my issue:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I need a measure that takes into account only the freshest date in my data set. So in this case, for project release it needs to return only the revenue for the 2nd of December 2020. But filtering my revenue with the max date delivers an error.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am still new at DAX and getting confused by all the possibilities. How should I approach this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Pauline.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 10:22:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-revenue-for-the-last-date/m-p/2737766#M83998</guid>
      <dc:creator>Berl21</dc:creator>
      <dc:date>2022-08-31T10:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation revenue for the last date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-revenue-for-the-last-date/m-p/2737809#M84001</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="386899" data-lia-user-login="Berl21" class="lia-mention lia-mention-user"&gt;Berl21&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I made a sample file with the solution, please check the attached file,&lt;BR /&gt;The measure [Total Units by Max Date ] should work for you&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Unitd by Max Date = 

IF(
    ISINSCOPE('financials'[Date]),
    VAR __MAXDATE = CALCULATE( MAX('financials'[Date]) , ALLSELECTED(financials[Date] ))
    RETURN
    IF( MAX('financials'[Date]) = __MAXDATE , [Total Units] ),
    [Total Units]
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 10:44:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-revenue-for-the-last-date/m-p/2737809#M84001</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2022-08-31T10:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation revenue for the last date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-revenue-for-the-last-date/m-p/2746638#M84609</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="386899" data-lia-user-login="Berl21" class="lia-mention lia-mention-user"&gt;Berl21&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Is your problem solved? If so, would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirment will find the solution quickly and benefit here, thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ kalyj&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 02:20:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-revenue-for-the-last-date/m-p/2746638#M84609</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2022-09-05T02:20:26Z</dc:date>
    </item>
  </channel>
</rss>

