<?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: Last estimate of latest date filtered by another colum in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4302809#M170848</link>
    <description>&lt;P&gt;Thanks! A new table was the best solution for me. This worked great &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Nov 2024 19:44:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-26T19:44:56Z</dc:date>
    <item>
      <title>Last estimate of latest date filtered by another colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4295602#M170507</link>
      <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset where users report on the same estimate over and over again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need my rapport to only show the latest estimate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So they will report estimated sales for July in April, May and June, resulting in three different estimates for July.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then want to filter out the latest estimate, for each user, for each month. As shown in the table below (Last est sales)&lt;/P&gt;&lt;P&gt;As this:&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to find a measure that fiters by month, but i need it to also filter by user.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&g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max&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[Month]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Nov 2024 15:38:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4295602#M170507</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-21T15:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Last estimate of latest date filtered by another colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4295838#M170515</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;Last est sales =&lt;BR /&gt;SUMX (&lt;BR /&gt;Vales ( 'Table'[User] ),&lt;BR /&gt;SUMX (&lt;BR /&gt;TOPN (&lt;BR /&gt;1,&lt;BR /&gt;FILTER ( ALLSELECTED ( 'Table' ), 'Table'[User] = EARLIER ( 'Table'[User] ) ),&lt;BR /&gt;'Table'[Month]&lt;BR /&gt;),&lt;BR /&gt;'Table'[Est sales]&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 18:24:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4295838#M170515</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-11-21T18:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Last estimate of latest date filtered by another colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4295972#M170525</link>
      <description>&lt;P&gt;hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try to add a calculated column like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;column=&lt;/P&gt;
&lt;P&gt;VAR _lastdate =&lt;/P&gt;
&lt;P&gt;CALCULATE(&lt;/P&gt;
&lt;P&gt;MAX(data[reporting date]),&lt;/P&gt;
&lt;P&gt;ALLEXCEPT(data, data[user], data[month])&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;RETURN&lt;/P&gt;
&lt;P&gt;IF(data[reporting date] = _lastdate, data[Est sales], BLANK())&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 21:07:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4295972#M170525</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2024-11-21T21:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Last estimate of latest date filtered by another colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4295975#M170527</link>
      <description>&lt;P&gt;hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if the screenshot is a visual, try like:&lt;/P&gt;
&lt;P&gt;measure =&lt;/P&gt;
&lt;P&gt;VAR _lastdate =&lt;/P&gt;
&lt;P&gt;CALCULATE(&lt;/P&gt;
&lt;P&gt;MAX(data[reporting date]),&lt;/P&gt;
&lt;P&gt;ALLEXCEPT(data, data[user], data[month])&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;RETURN&lt;/P&gt;
&lt;P&gt;IF(MAX(data[reporting date]) = _lastdate, SUM(data[Est sales]), BLANK())&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 21:13:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4295975#M170527</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2024-11-21T21:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Last estimate of latest date filtered by another colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4296775#M170576</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The column would work perfectly but the measure would produce wrong total.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 08:11:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4296775#M170576</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-11-22T08:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Last estimate of latest date filtered by another colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4296811#M170578</link>
      <description>&lt;P&gt;yes, indeed SUMX(VALUES(), ) is much safer and more robust to ensure a consistent total.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 08:28:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4296811#M170578</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2024-11-22T08:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Last estimate of latest date filtered by another colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4297463#M170620</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 14:19:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4297463#M170620</guid>
      <dc:creator>ThxAlot</dc:creator>
      <dc:date>2024-11-22T14:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Last estimate of latest date filtered by another colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4299672#M170742</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;How is the situation now? If the problem has been solved,&amp;nbsp;please accept the answers you find helpful as solutions.&lt;/P&gt;
&lt;P&gt;You can also try this.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;VAR filtered = FILTER(ALLSELECTED('Table'),'Table'[Month]=MAX('Table'[Month])&amp;amp;&amp;amp;'Table'[User]=MAX('Table'[User]))
VAR last_date = MAXX(filtered,'Table'[Reporting date])
RETURN IF(MAX('Table'[Reporting date])=last_date,MAX('Table'[est sales]),"")&lt;/LI-CODE&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Mengmeng Li&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 09:42:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4299672#M170742</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-25T09:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Last estimate of latest date filtered by another colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4302809#M170848</link>
      <description>&lt;P&gt;Thanks! A new table was the best solution for me. This worked great &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 19:44:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4302809#M170848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-26T19:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Last estimate of latest date filtered by another colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4302811#M170849</link>
      <description>&lt;P&gt;Thanks! This worked, but the table-solution was easier for continued use of the data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 19:46:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4302811#M170849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-26T19:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Last estimate of latest date filtered by another colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4302812#M170850</link>
      <description>&lt;P&gt;Couldn't get this to work properly, and there was another reply with the new table that worked perfectly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks anyway &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 19:47:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4302812#M170850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-26T19:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Last estimate of latest date filtered by another colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4302813#M170851</link>
      <description>&lt;P&gt;Thanks for following up :).&amp;nbsp;&lt;/P&gt;&lt;P&gt;After trying several of the solutions, and using the results in new measures and visuales I ended up with a good solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will look into this solution as well, as it might simplyfy the report. Thanks for the reply.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 19:50:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4302813#M170851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-26T19:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Last estimate of latest date filtered by another colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4302814#M170852</link>
      <description>&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will test this as well, but everything worked great with the table-solution from tamerj1&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 19:52:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-estimate-of-latest-date-filtered-by-another-colum/m-p/4302814#M170852</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-26T19:52:03Z</dc:date>
    </item>
  </channel>
</rss>

