<?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: MAX Dax in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Dax/m-p/3080573#M107341</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="465993" data-lia-user-login="EMSSS22" class="lia-mention lia-mention-user"&gt;EMSSS22&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;. IF [Miles] is a measure.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = IF(HASONEVALUE('Table'[VehicleNumber]),[Miles],MAXX('Table',[Miles]))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&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 _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2023 02:22:02 GMT</pubDate>
    <dc:creator>v-zhangti</dc:creator>
    <dc:date>2023-02-15T02:22:02Z</dc:date>
    <item>
      <title>MAX Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Dax/m-p/3079567#M107246</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to show the MAX value from this column which is made up from a measure&lt;/P&gt;&lt;P&gt;The first picture displays a when i drill down I see all the milages but when i drill back up I get a random number (235,729) when I want to be seeing the MAX value (175,884).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 16:10:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Dax/m-p/3079567#M107246</guid>
      <dc:creator>EMSSS22</dc:creator>
      <dc:date>2023-02-16T16:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Dax/m-p/3079611#M107254</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="465993" data-lia-user-login="EMSSS22" class="lia-mention lia-mention-user"&gt;EMSSS22&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I understand, you want to get maximum value based on unitnumber, for this you should write a dax code like in the example below.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MAXMiles = CALCULATE(MAX('Table (3)'[Miles]),ALLEXCEPT('Table (3)','Table (3)'[unitNumber]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the value you get in the matrix is a numerical value, it will automatically enter the sum operation, so you should choose max instead of sum in the field you are calculating, as I show in the screenshot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ezgi Naz Aslankara&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 13:53:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Dax/m-p/3079611#M107254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-14T13:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Dax/m-p/3079663#M107263</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="465993" data-lia-user-login="EMSSS22" class="lia-mention lia-mention-user"&gt;EMSSS22&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;Miles (in selected date range) 2 =&lt;BR /&gt;MAXX ( VALUES ( 'Table'[VehicleNumber] ), [Miles (in selected date range)] )&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 14:16:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Dax/m-p/3079663#M107263</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-14T14:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Dax/m-p/3080573#M107341</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="465993" data-lia-user-login="EMSSS22" class="lia-mention lia-mention-user"&gt;EMSSS22&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;. IF [Miles] is a measure.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = IF(HASONEVALUE('Table'[VehicleNumber]),[Miles],MAXX('Table',[Miles]))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&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 _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 02:22:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Dax/m-p/3080573#M107341</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-02-15T02:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Dax/m-p/3081900#M107465</link>
      <description>&lt;P&gt;Thank you for your response - the issue is when I drill back up on the matrix it's still giving me a random number&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 16:10:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Dax/m-p/3081900#M107465</guid>
      <dc:creator>EMSSS22</dc:creator>
      <dc:date>2023-02-16T16:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Dax/m-p/3081914#M107467</link>
      <description>&lt;P&gt;Thank you this worked!!!!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 17:10:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Dax/m-p/3081914#M107467</guid>
      <dc:creator>EMSSS22</dc:creator>
      <dc:date>2023-02-15T17:10:49Z</dc:date>
    </item>
  </channel>
</rss>

