<?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 A DAX Measure to flag the max value (best score) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-flag-the-max-value-best-score/m-p/2783089#M87133</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a measure that compares for every row in the table if Column2 = Max then 1 else 0.&amp;nbsp;&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;This is my try :&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;LI-CODE lang="markup"&gt;Best Score = 
VAR _Max = Max('Table'[Column2])
Return 
    Maxx(FILTER('Table','Table'[Column2] = _Max),1)&lt;/LI-CODE&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I should 0 for a, b and e and 1 for c and d.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated, thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Sep 2022 07:42:57 GMT</pubDate>
    <dc:creator>lazurens2</dc:creator>
    <dc:date>2022-09-21T07:42:57Z</dc:date>
    <item>
      <title>A DAX Measure to flag the max value (best score)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-flag-the-max-value-best-score/m-p/2783089#M87133</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a measure that compares for every row in the table if Column2 = Max then 1 else 0.&amp;nbsp;&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;This is my try :&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;LI-CODE lang="markup"&gt;Best Score = 
VAR _Max = Max('Table'[Column2])
Return 
    Maxx(FILTER('Table','Table'[Column2] = _Max),1)&lt;/LI-CODE&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I should 0 for a, b and e and 1 for c and d.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated, thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 07:42:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-flag-the-max-value-best-score/m-p/2783089#M87133</guid>
      <dc:creator>lazurens2</dc:creator>
      <dc:date>2022-09-21T07:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: A DAX Measure to flag the max value (best score)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-flag-the-max-value-best-score/m-p/2783211#M87139</link>
      <description>&lt;LI-CODE lang="markup"&gt;Best score =
VAR MaxValue =
    CALCULATE ( MAX ( 'Table'[Column2] ), REMOVEFILTERS ( 'Table' ) )
RETURN
    IF ( SELECTEDVALUE ( 'Table'[Column2] ) = MaxValue, 1, 0 )
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 21 Sep 2022 08:25:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-DAX-Measure-to-flag-the-max-value-best-score/m-p/2783211#M87139</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-09-21T08:25:57Z</dc:date>
    </item>
  </channel>
</rss>

