<?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: How to get max value of two colums? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-max-value-of-two-colums/m-p/4396538#M174554</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, Try using&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;_Max X = &lt;BR /&gt;MAXX(&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;'YourTable',&lt;BR /&gt;'Date'[Year],&lt;BR /&gt;'Country'[Region],&lt;BR /&gt;"SumQuantity", [Sum Quantity]&lt;BR /&gt;),&lt;BR /&gt;[SumQuantity]&lt;BR /&gt;) * 1.2&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2025 14:35:27 GMT</pubDate>
    <dc:creator>bhanu_gautam</dc:creator>
    <dc:date>2025-02-05T14:35:27Z</dc:date>
    <item>
      <title>How to get max value of two colums?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-max-value-of-two-colums/m-p/4396532#M174553</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;This is my bar chart.&lt;BR /&gt;In the legend the 'Year' (column of Date table), the Y-axis 'Region' (column of Country table), the X-axis 'Sum Quantity'&lt;BR /&gt;The bar overlaps sometimes the labels. To prevent that I want to compute a MAX value and compute it with 1.2&lt;BR /&gt;This computed measure I will then put in X-axis / Range / Maximum&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If I wouldn't have a legend, the next measure would work&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;_Max X =&lt;/SPAN&gt; &lt;SPAN&gt;MAXX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Regions'&lt;/SPAN&gt;&lt;SPAN&gt;[Domestic]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;[Sum Quantity]&lt;/SPAN&gt;&lt;SPAN&gt;) * &lt;/SPAN&gt;&lt;SPAN&gt;1.2&lt;BR /&gt;&lt;BR /&gt;But if I use this measure with the legend, this happens&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;_Max X becomes (35K + 35K + 16K) * 1.2&lt;BR /&gt;But it should become 35K (being the highest value for a single bar) * 1.2&lt;BR /&gt;&lt;BR /&gt;Of course I have to embed the legend (Year) as well in my measure.&lt;BR /&gt;How do I do that?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Ron&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Feb 2025 14:31:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-max-value-of-two-colums/m-p/4396532#M174553</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-05T14:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to get max value of two colums?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-max-value-of-two-colums/m-p/4396538#M174554</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, Try using&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;_Max X = &lt;BR /&gt;MAXX(&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;'YourTable',&lt;BR /&gt;'Date'[Year],&lt;BR /&gt;'Country'[Region],&lt;BR /&gt;"SumQuantity", [Sum Quantity]&lt;BR /&gt;),&lt;BR /&gt;[SumQuantity]&lt;BR /&gt;) * 1.2&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 14:35:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-max-value-of-two-colums/m-p/4396538#M174554</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-02-05T14:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get max value of two colums?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-max-value-of-two-colums/m-p/4396616#M174557</link>
      <description>&lt;P&gt;Thnx&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625922" data-lia-user-login="bhanu_gautam" class="lia-mention lia-mention-user"&gt;bhanu_gautam&lt;/a&gt;&amp;nbsp;, it works&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 15:00:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-max-value-of-two-colums/m-p/4396616#M174557</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-05T15:00:45Z</dc:date>
    </item>
  </channel>
</rss>

