<?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 in column chart in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-max-value-in-column-chart/m-p/3444635#M131001</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="404599" data-lia-user-login="TomasAndersson" class="lia-mention lia-mention-user"&gt;TomasAndersson&lt;/a&gt;&amp;nbsp;thnx for helping. It works. I made a mistake in thinking :(.&lt;BR /&gt;Still learning DAX, bit by bit. Once again, thnx&lt;/P&gt;</description>
    <pubDate>Sun, 24 Sep 2023 09:29:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-09-24T09:29:52Z</dc:date>
    <item>
      <title>How to get max value in column chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-max-value-in-column-chart/m-p/3444369#M130931</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I uploaded a file to dropbox&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/scl/fi/bjq8hmi01cumhcr151b0l/test.pbix?rlkey=zlp36uco7jc8mth4417b38p4b&amp;amp;dl=0" target="_self"&gt;https://www.dropbox.com/scl/fi/bjq8hmi01cumhcr151b0l/test.pbix?rlkey=zlp36uco7jc8mth4417b38p4b&amp;amp;dl=0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here you see a colum chart, with 2 slicers : Region and Shipmode&lt;BR /&gt;There is a filter on the visual, Year = 2016 (to simplify it)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a measure 'Max Orders 3' which I refer to in measure 'Dynamic Display Max'&lt;/P&gt;&lt;P&gt;'Dynamic Display Max' is used in conditional formatting of the columns of the column chart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to give the column chart with the highest value another color, blue.&lt;/P&gt;&lt;P&gt;But this only works if I select one item from slicer Region and one from slicer Shipmode.&lt;/P&gt;&lt;P&gt;But I also want it to work when I select mulitple items from the slicers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I get it working?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thnx for the help&lt;/P&gt;&lt;P&gt;Ron&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. When you use the Legend in the column chart, you can't conditional format the columns anymore. That's a pity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="315278" data-lia-user-login="VahidDM" class="lia-mention lia-mention-user"&gt;VahidDM&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="434309" data-lia-user-login="eliasayyy" class="lia-mention lia-mention-user"&gt;eliasayyy&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2023 20:03:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-max-value-in-column-chart/m-p/3444369#M130931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-23T20:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get max value in column chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-max-value-in-column-chart/m-p/3444437#M130939</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;In your "&lt;SPAN&gt;Max Orders Europe &lt;/SPAN&gt;&lt;SPAN&gt;3", remove Orders[Region] and Orders[ShipMode] from summarize so that the table is only grouped by quarter and not by those columns as well. This allows mulitple items to be selected.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Max Orders Europe 3 modified = 
VAR _table = 
CALCULATETABLE(
    ADDCOLUMNS(
        SUMMARIZE(Orders,
        Dates[Year], Dates[QuarterOfYear]
        ),
        "Totaal",[Sum Orders]
    ),
    ALLSELECTED(Orders)
)
VAR MaxVal = MAXX(_table,[Totaal])
RETURN MaxVal&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;You should also be able to remove ADDCOLUMNS() and make the measure a bit shorter, but maybe you prefer it that way:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Max Orders Europe 3 short = 
VAR _table = 
CALCULATETABLE(
    SUMMARIZE(
        Orders,
        Dates[Year], Dates[QuarterOfYear],
        "Totaal",[Sum Orders]
        ),
    ALLSELECTED(Orders)
)
VAR MaxVal = MAXX(_table,[Totaal])
RETURN MaxVal&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2023 22:31:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-max-value-in-column-chart/m-p/3444437#M130939</guid>
      <dc:creator>TomasAndersson</dc:creator>
      <dc:date>2023-09-23T22:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get max value in column chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-max-value-in-column-chart/m-p/3444635#M131001</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="404599" data-lia-user-login="TomasAndersson" class="lia-mention lia-mention-user"&gt;TomasAndersson&lt;/a&gt;&amp;nbsp;thnx for helping. It works. I made a mistake in thinking :(.&lt;BR /&gt;Still learning DAX, bit by bit. Once again, thnx&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2023 09:29:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-max-value-in-column-chart/m-p/3444635#M131001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-24T09:29:52Z</dc:date>
    </item>
  </channel>
</rss>

