<?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: Measure : Calculate does not select right MAX ( date) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Calculate-does-not-select-right-MAX-date/m-p/4089335#M162303</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81736" data-lia-user-login="aduguid" class="lia-mention lia-mention-user"&gt;aduguid&lt;/a&gt;&amp;nbsp;Thanks for your help, but it does not work when I try the measure as you suggest.&amp;nbsp;&lt;BR /&gt;When I try to show the maxdate only i a card , ut shows correct. But when it is i the measure, it does not&amp;nbsp; works&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2024 13:35:39 GMT</pubDate>
    <dc:creator>HaiVN</dc:creator>
    <dc:date>2024-08-08T13:35:39Z</dc:date>
    <item>
      <title>Measure : Calculate does not select right MAX ( date)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Calculate-does-not-select-right-MAX-date/m-p/4089271#M162299</link>
      <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;BR /&gt;I need your help on my DAX&amp;nbsp;&lt;BR /&gt;I write a measure:&amp;nbsp;&lt;BR /&gt;----&lt;BR /&gt;Total persons =&lt;BR /&gt;Var&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Total = CALCULATE(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; SUM('data'[value]),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 'data'[Date]=MAX('data'[Date]))&lt;BR /&gt;return&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if(Total&amp;gt;4, Total, "&amp;lt; 5")&lt;/P&gt;&lt;P&gt;------&lt;BR /&gt;'data'[Date] has 4 dates:&lt;BR /&gt;&lt;BR /&gt;4. mars 2024&lt;BR /&gt;11. mars 2024&lt;BR /&gt;18. mars 2024&lt;BR /&gt;14. mai 2024&lt;/P&gt;&lt;P&gt;10. juni 2024&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is the measure choose " 4. mars 2024" for calculation , not "10. juni 2024" as I want! Can you help my to clarify what is problem with my measure ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 13:04:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Calculate-does-not-select-right-MAX-date/m-p/4089271#M162299</guid>
      <dc:creator>HaiVN</dc:creator>
      <dc:date>2024-08-08T13:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Measure : Calculate does not select right MAX ( date)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Calculate-does-not-select-right-MAX-date/m-p/4089292#M162301</link>
      <description>&lt;P&gt;Try this measure&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total persons =
VAR MaxDate = MAXX(ALL('data'[Date]), 'data'[Date])
VAR Total = CALCULATE(
    SUM('data'[value]),
    'data'[Date] = MaxDate
)
RETURN
    IF(Total &amp;gt; 4, Total, "&amp;lt; 5")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 08 Aug 2024 13:10:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Calculate-does-not-select-right-MAX-date/m-p/4089292#M162301</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-08-08T13:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Measure : Calculate does not select right MAX ( date)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Calculate-does-not-select-right-MAX-date/m-p/4089335#M162303</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81736" data-lia-user-login="aduguid" class="lia-mention lia-mention-user"&gt;aduguid&lt;/a&gt;&amp;nbsp;Thanks for your help, but it does not work when I try the measure as you suggest.&amp;nbsp;&lt;BR /&gt;When I try to show the maxdate only i a card , ut shows correct. But when it is i the measure, it does not&amp;nbsp; works&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 13:35:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Calculate-does-not-select-right-MAX-date/m-p/4089335#M162303</guid>
      <dc:creator>HaiVN</dc:creator>
      <dc:date>2024-08-08T13:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Measure : Calculate does not select right MAX ( date)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Calculate-does-not-select-right-MAX-date/m-p/4090777#M162355</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="433804" data-lia-user-login="HaiVN" class="lia-mention lia-mention-user"&gt;HaiVN&lt;/a&gt;&amp;nbsp;,&amp;nbsp;aduguid, thank you for your prompt reply!&lt;BR /&gt;This works on my sample data according to my tests, please upload your pbix file for further testing if possible.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Joyce&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 05:57:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Calculate-does-not-select-right-MAX-date/m-p/4090777#M162355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-09T05:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Measure : Calculate does not select right MAX ( date)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Calculate-does-not-select-right-MAX-date/m-p/4106170#M162949</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="433804" data-lia-user-login="HaiVN" class="lia-mention lia-mention-user"&gt;HaiVN&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am looking forward to your feedback if there is any update.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please remember to update this thread if you have any progress.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your understanding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Joyce&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 05:29:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Calculate-does-not-select-right-MAX-date/m-p/4106170#M162949</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-19T05:29:54Z</dc:date>
    </item>
  </channel>
</rss>

