<?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 Max in measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-in-measure/m-p/3691400#M143441</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have 6 measures in DAX, and I'm trying to write a measure that will show which of the measures below has the highest result.&lt;/P&gt;&lt;P&gt;In the measures, there are numbers. Here are the 6 measures, can you help me?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Green NB&lt;BR /&gt;Grey NB&lt;BR /&gt;Orange NB&lt;BR /&gt;Yellow NB&lt;BR /&gt;Red NB&lt;BR /&gt;High Red NB&lt;/P&gt;</description>
    <pubDate>Fri, 09 Feb 2024 15:50:01 GMT</pubDate>
    <dc:creator>Vanessa250919</dc:creator>
    <dc:date>2024-02-09T15:50:01Z</dc:date>
    <item>
      <title>Max in measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-in-measure/m-p/3691400#M143441</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have 6 measures in DAX, and I'm trying to write a measure that will show which of the measures below has the highest result.&lt;/P&gt;&lt;P&gt;In the measures, there are numbers. Here are the 6 measures, can you help me?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Green NB&lt;BR /&gt;Grey NB&lt;BR /&gt;Orange NB&lt;BR /&gt;Yellow NB&lt;BR /&gt;Red NB&lt;BR /&gt;High Red NB&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 15:50:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-in-measure/m-p/3691400#M143441</guid>
      <dc:creator>Vanessa250919</dc:creator>
      <dc:date>2024-02-09T15:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Max in measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-in-measure/m-p/3691432#M143442</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need to have an other column : If the max number is Green, I need to see Green&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 16:06:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-in-measure/m-p/3691432#M143442</guid>
      <dc:creator>Vanessa250919</dc:creator>
      <dc:date>2024-02-09T16:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Max in measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-in-measure/m-p/3693143#M143569</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try using the dax below to get the maximum value for each row&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MaxValue11 = 
MAXX(
    UNION(
        SUMMARIZE('Table', "Value", 'Table'[Green]),
        SUMMARIZE('Table', "Value", 'Table'[Grey]),
        SUMMARIZE('Table', "Value", 'Table'[Orange])
    ),
    [Value]
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the result you want&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since there is no function in DAX that can be used to get the column names in a table, it is not possible to use DAX to change the color of a value based on the column where the maximum value is located.&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 02:13:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-in-measure/m-p/3693143#M143569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-12T02:13:10Z</dc:date>
    </item>
  </channel>
</rss>

