<?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: Highest monthly value and date from a measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highest-monthly-value-and-date-from-a-measure/m-p/2902040#M94553</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="471143" data-lia-user-login="meg222" class="lia-mention lia-mention-user"&gt;meg222&lt;/a&gt;&amp;nbsp;Try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Max month name = 
  VAR __Table = SUMMARIZE('Sheet1',[Period - month],"__Aware",[% Aware])
  VAR __MaxAware = [Max Month]
  VAR __Result = MAXX(FILTER(__Table,[__Aware] = __MaxAware),[Period - month])
RETURN
  __Result&lt;/LI-CODE&gt;</description>
    <pubDate>Sun, 13 Nov 2022 14:13:14 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2022-11-13T14:13:14Z</dc:date>
    <item>
      <title>Highest monthly value and date from a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highest-monthly-value-and-date-from-a-measure/m-p/2902019#M94552</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a measure to return the month with the highest awareness. The monthly period column is a date column in the data and "% Aware" is a measure I created.&lt;/P&gt;&lt;P&gt;&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;I've created a measure which returns the highest monthly value which works and returns 56%. The DAX code is:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max month =&amp;nbsp;MAXX&amp;nbsp;(VALUES(&amp;nbsp;Sheet1[Period - month]),&amp;nbsp;Sheet2[% Aware]&amp;nbsp;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I also need to get the &lt;U&gt;name of the month&lt;/U&gt; with the highest % of awareness so that ultimately I can show something like "Highest month to date: Jul-20 56%" in a card or text box.&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;Any ideas on how to get the max date as well? I think it will need to be a separate measure to get the date but I just can't work it out.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 13 Nov 2022 13:57:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highest-monthly-value-and-date-from-a-measure/m-p/2902019#M94552</guid>
      <dc:creator>meg222</dc:creator>
      <dc:date>2022-11-13T13:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Highest monthly value and date from a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highest-monthly-value-and-date-from-a-measure/m-p/2902040#M94553</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="471143" data-lia-user-login="meg222" class="lia-mention lia-mention-user"&gt;meg222&lt;/a&gt;&amp;nbsp;Try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Max month name = 
  VAR __Table = SUMMARIZE('Sheet1',[Period - month],"__Aware",[% Aware])
  VAR __MaxAware = [Max Month]
  VAR __Result = MAXX(FILTER(__Table,[__Aware] = __MaxAware),[Period - month])
RETURN
  __Result&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 13 Nov 2022 14:13:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highest-monthly-value-and-date-from-a-measure/m-p/2902040#M94553</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-11-13T14:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Highest monthly value and date from a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highest-monthly-value-and-date-from-a-measure/m-p/2902047#M94554</link>
      <description>&lt;P&gt;How&amp;nbsp;are sheet1 and sheet2 related?&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 14:18:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highest-monthly-value-and-date-from-a-measure/m-p/2902047#M94554</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-13T14:18:34Z</dc:date>
    </item>
  </channel>
</rss>

