<?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: Conditional formatting highlighting selected value in slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-highlighting-selected-value-in-slicer/m-p/4341072#M172391</link>
    <description>&lt;P&gt;Please check my proposed solution again. The tables need to be disconnected.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Dec 2024 19:08:53 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-12-23T19:08:53Z</dc:date>
    <item>
      <title>Conditional formatting highlighting selected value in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-highlighting-selected-value-in-slicer/m-p/4339845#M172312</link>
      <description>&lt;P&gt;I would like to use conditional formatting to highlight a specific bar in my bar chart, based on the value I have selected in my slicer. All over the internet, I find the same DAX formula which is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;HighlightCompany =&lt;BR /&gt;IF(&lt;BR /&gt;SELECTEDVALUE(Company[CompanyName]) = MAX(Company[CompanyName]),&lt;BR /&gt;1, // This means the company is selected, and it will be highlighted&lt;BR /&gt;0 // This means the company is not selected&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although, when I do this DAX formula, all bars are highlighted. I thought it might've been because my slicer is not filtering the bar chart, although when I choose to filter the bar chart, it only shows the selected company in the bar chart, without all the other companies. Here are some pictures:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this one, the selected company (on the left) only returns that company in the bar chart (on the right).&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In this one, the selected company (on the left) returns all companies on the right, without highlighting the selected company.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use a dax formula, either one of both pops up, and not a combination of both. Does anyone have the same issue or have a solution for this problem? Thank you in advance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2024 16:36:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-highlighting-selected-value-in-slicer/m-p/4339845#M172312</guid>
      <dc:creator>vbthomass</dc:creator>
      <dc:date>2024-12-22T16:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting highlighting selected value in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-highlighting-selected-value-in-slicer/m-p/4339865#M172314</link>
      <description>&lt;P&gt;Should work. Make sure your slicer is fed from a disconnected table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question. &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2024 17:41:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-highlighting-selected-value-in-slicer/m-p/4339865#M172314</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-12-22T17:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting highlighting selected value in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-highlighting-selected-value-in-slicer/m-p/4339918#M172317</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;Thank you for getting back with me. It does not seem to work when the table is by itself as well (I made a single table with the competitor names as well). Here is the link to the dummy report:&amp;nbsp;&lt;A href="https://we.tl/t-DkLKoSzetb" target="_blank"&gt;https://we.tl/t-DkLKoSzetb&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So what I would like is to have the company selected in the slicer on the left, to be either white or black on the right bar chart (I don't really care about the color at this point).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2024 21:00:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-highlighting-selected-value-in-slicer/m-p/4339918#M172317</guid>
      <dc:creator>vbthomass</dc:creator>
      <dc:date>2024-12-22T21:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting highlighting selected value in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-highlighting-selected-value-in-slicer/m-p/4339934#M172320</link>
      <description>&lt;P&gt;You had disabled visual interactions.&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>Sun, 22 Dec 2024 23:20:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-highlighting-selected-value-in-slicer/m-p/4339934#M172320</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-12-22T23:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting highlighting selected value in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-highlighting-selected-value-in-slicer/m-p/4341043#M172386</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you for getting back with me. That's what I thought as well, but in your report, it doesn't delete all the other companies. In my report it does (first picture of the original post). I feel it has something to do with the settings of the slicer, although I can't seem to figure out what it is. If this is not what you mean with 'you had disabled visual interaction', could you please specify where I can find this?&lt;BR /&gt;&lt;BR /&gt;This is what I get when I enable visual interaction:&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;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You also seem to have the second option, which I think could be the issue. Any idea how I can add this option to my report:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance already!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 17:59:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-highlighting-selected-value-in-slicer/m-p/4341043#M172386</guid>
      <dc:creator>vbthomass</dc:creator>
      <dc:date>2024-12-23T17:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting highlighting selected value in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-highlighting-selected-value-in-slicer/m-p/4341072#M172391</link>
      <description>&lt;P&gt;Please check my proposed solution again. The tables need to be disconnected.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 19:08:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-highlighting-selected-value-in-slicer/m-p/4341072#M172391</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-12-23T19:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting highlighting selected value in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-highlighting-selected-value-in-slicer/m-p/4341114#M172393</link>
      <description>&lt;P&gt;Thanks! I think I found the solution.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This was as active, but needed to be 'inactive':&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 20:27:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-highlighting-selected-value-in-slicer/m-p/4341114#M172393</guid>
      <dc:creator>vbthomass</dc:creator>
      <dc:date>2024-12-23T20:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting highlighting selected value in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-highlighting-selected-value-in-slicer/m-p/4341429#M172404</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="904595" data-lia-user-login="vbthomass" class="lia-mention lia-mention-user"&gt;vbthomass&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the feedback, the solution you provided is valuable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Adamk Kong&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 03:12:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-highlighting-selected-value-in-slicer/m-p/4341429#M172404</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-24T03:12:07Z</dc:date>
    </item>
  </channel>
</rss>

