<?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 Highlighting the min &amp;amp; max values in a Power BI column chart in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highlighting-the-min-amp-max-values-in-a-Power-BI-column-chart/m-p/3348853#M125745</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to highlight the max and min value from this chart:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;To this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I tryed using formating colors based on DAX measures like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Weekday = FORMAT([Date],"ddd")&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Gold Meals Served Average = [Gold Meals Served] / DISTINCTCOUNT('Date'[Date])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;!Max_Min Color = 
VAR GetAllDays = ALLSELECTED('Date'[Weekday])
VAR GetMaxValue= MAXX(GetAllDays, CALCULATE([Gold Meals Served Average]))
VAR GetMinValue= MINX(GetAllDays, CALCULATE([Gold Meals Served Average]))
RETURN
IF(
    [Gold Meals Served Average] = GetMaxValue,"#000e2f",
    IF([Gold Meals Served Average] = GetMinValue, "#ffda30","#b3b3b3")
)&lt;/LI-CODE&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But getting not expected result:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any idea of what could be the problem?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;</description>
    <pubDate>Tue, 25 Jul 2023 13:33:17 GMT</pubDate>
    <dc:creator>carlosgeovany</dc:creator>
    <dc:date>2023-07-25T13:33:17Z</dc:date>
    <item>
      <title>Highlighting the min &amp; max values in a Power BI column chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highlighting-the-min-amp-max-values-in-a-Power-BI-column-chart/m-p/3348853#M125745</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to highlight the max and min value from this chart:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;To this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I tryed using formating colors based on DAX measures like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Weekday = FORMAT([Date],"ddd")&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Gold Meals Served Average = [Gold Meals Served] / DISTINCTCOUNT('Date'[Date])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;!Max_Min Color = 
VAR GetAllDays = ALLSELECTED('Date'[Weekday])
VAR GetMaxValue= MAXX(GetAllDays, CALCULATE([Gold Meals Served Average]))
VAR GetMinValue= MINX(GetAllDays, CALCULATE([Gold Meals Served Average]))
RETURN
IF(
    [Gold Meals Served Average] = GetMaxValue,"#000e2f",
    IF([Gold Meals Served Average] = GetMinValue, "#ffda30","#b3b3b3")
)&lt;/LI-CODE&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But getting not expected result:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any idea of what could be the problem?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jul 2023 13:33:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highlighting-the-min-amp-max-values-in-a-Power-BI-column-chart/m-p/3348853#M125745</guid>
      <dc:creator>carlosgeovany</dc:creator>
      <dc:date>2023-07-25T13:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Highlighting the min &amp; max values in a Power BI column chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highlighting-the-min-amp-max-values-in-a-Power-BI-column-chart/m-p/3352468#M125899</link>
      <description>&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="593980" data-lia-user-login="carlosgeovany" class="lia-mention lia-mention-user"&gt;carlosgeovany&lt;/a&gt;,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 06:15:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highlighting-the-min-amp-max-values-in-a-Power-BI-column-chart/m-p/3352468#M125899</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-27T06:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Highlighting the min &amp; max values in a Power BI column chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highlighting-the-min-amp-max-values-in-a-Power-BI-column-chart/m-p/3352585#M125906</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="593980" data-lia-user-login="carlosgeovany" class="lia-mention lia-mention-user"&gt;carlosgeovany&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Your approach should work, but you need to check several things:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;No need to put CALCULATE here:&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR GetMaxValue= MAXX(GetAllDays, [Gold Meals Served Average])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Check that&amp;nbsp;GetMaxValue and&amp;nbsp;GetMinValue return the values you expect&lt;/LI&gt;&lt;LI&gt;Make sure your measure returns the value of the Text format&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 07:04:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highlighting-the-min-amp-max-values-in-a-Power-BI-column-chart/m-p/3352585#M125906</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2023-07-27T07:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Highlighting the min &amp; max values in a Power BI column chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highlighting-the-min-amp-max-values-in-a-Power-BI-column-chart/m-p/3362462#M126428</link>
      <description>&lt;P&gt;Hi, I made some progres but still no the desired output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem is when I sort the column Weekday by the column WeekdayNum so I can see the days in order&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;As you can see above, now the colors are as spected, but when I try to sort it, the colors change to the same&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 20:57:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highlighting-the-min-amp-max-values-in-a-Power-BI-column-chart/m-p/3362462#M126428</guid>
      <dc:creator>carlosgeovany</dc:creator>
      <dc:date>2023-08-02T20:57:13Z</dc:date>
    </item>
  </channel>
</rss>

