<?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(MyMeasure) doesnt work... in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/max-MyMeasure-doesnt-work/m-p/3535189#M135840</link>
    <description>&lt;P&gt;I have a fake "Measures" table where I store all my measures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(I created it using DATATABLE, this approach was recommended from sqlbi website)&lt;/P&gt;</description>
    <pubDate>Wed, 15 Nov 2023 13:48:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-11-15T13:48:30Z</dc:date>
    <item>
      <title>max(MyMeasure) doesnt work...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/max-MyMeasure-doesnt-work/m-p/3534994#M135825</link>
      <description>&lt;P&gt;I have my measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DIVIDE&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SUM(Fact[Hours])&amp;nbsp; -&amp;nbsp; &amp;nbsp;CALCULATE (SUM( Fact[Hours2]) ,&amp;nbsp; ALL(Fact) ,&amp;nbsp; Fact[Type]="D" ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SUM(Fact[Hours])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But now I want to use it in another measure to do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUM(Fact[Hours])&amp;nbsp; &amp;nbsp;* MAX(MyMeasure)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And it doesn’t work…&amp;nbsp; Why can't I do&lt;STRONG&gt;&amp;nbsp;MAX(MyMeasure)?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 12:05:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/max-MyMeasure-doesnt-work/m-p/3534994#M135825</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-15T12:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: max(MyMeasure) doesnt work...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/max-MyMeasure-doesnt-work/m-p/3535068#M135830</link>
      <description>&lt;P&gt;MAX of mymeasure in which dimension?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 12:44:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/max-MyMeasure-doesnt-work/m-p/3535068#M135830</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-11-15T12:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: max(MyMeasure) doesnt work...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/max-MyMeasure-doesnt-work/m-p/3535189#M135840</link>
      <description>&lt;P&gt;I have a fake "Measures" table where I store all my measures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(I created it using DATATABLE, this approach was recommended from sqlbi website)&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 13:48:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/max-MyMeasure-doesnt-work/m-p/3535189#M135840</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-15T13:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: max(MyMeasure) doesnt work...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/max-MyMeasure-doesnt-work/m-p/3543818#M136245</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I know, you don't need to use MAX() to use a measure, you can use it directly in your code.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/max-function-dax" target="_self"&gt;MAX()&lt;/A&gt; only support to use a column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
SUM(Fact[Hours])   * [MyMeasure]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to get MAX from the measure, you can try &lt;A href="https://learn.microsoft.com/en-us/dax/maxx-function-dax" target="_self"&gt;MAXX()&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
SUM ( Fact[Hours] ) * MAXX ( VALUES ( 'TableName'[KeyColumn] ), [MyMeasure] )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 06:06:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/max-MyMeasure-doesnt-work/m-p/3543818#M136245</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-21T06:06:39Z</dc:date>
    </item>
  </channel>
</rss>

