<?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 How to I enable conditional formatting on a Power BI ribbon chart? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-I-enable-conditional-formatting-on-a-Power-BI-ribbon/m-p/4121719#M163657</link>
    <description>&lt;P&gt;I have a PowerBI project where I am using a ribbon chart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The X- axis field contains the subjects (English, Science and Mathematics)&lt;/P&gt;&lt;P&gt;The Y-axis field contains the average scores&lt;/P&gt;&lt;P&gt;The Legend field contains the Name of Students&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a sample Image:&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to implement is, I want to include a slicer where if I select the name of a Student, the color of the corresponding student ribbon turns to red, else it remains grey.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Power BI is not allowing me to apply conditional formatting and therefore, I am forced to use the manual color selection for every ribbon. &lt;STRONG&gt;How can I achieve the functionality?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2024 02:13:30 GMT</pubDate>
    <dc:creator>Anish7117</dc:creator>
    <dc:date>2024-08-28T02:13:30Z</dc:date>
    <item>
      <title>How to I enable conditional formatting on a Power BI ribbon chart?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-I-enable-conditional-formatting-on-a-Power-BI-ribbon/m-p/4121719#M163657</link>
      <description>&lt;P&gt;I have a PowerBI project where I am using a ribbon chart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The X- axis field contains the subjects (English, Science and Mathematics)&lt;/P&gt;&lt;P&gt;The Y-axis field contains the average scores&lt;/P&gt;&lt;P&gt;The Legend field contains the Name of Students&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a sample Image:&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to implement is, I want to include a slicer where if I select the name of a Student, the color of the corresponding student ribbon turns to red, else it remains grey.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Power BI is not allowing me to apply conditional formatting and therefore, I am forced to use the manual color selection for every ribbon. &lt;STRONG&gt;How can I achieve the functionality?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 02:13:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-I-enable-conditional-formatting-on-a-Power-BI-ribbon/m-p/4121719#M163657</guid>
      <dc:creator>Anish7117</dc:creator>
      <dc:date>2024-08-28T02:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to I enable conditional formatting on a Power BI ribbon chart?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-I-enable-conditional-formatting-on-a-Power-BI-ribbon/m-p/4122576#M163682</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="602340" data-lia-user-login="Anish7117" class="lia-mention lia-mention-user"&gt;Anish7117&lt;/a&gt;&amp;nbsp;- There is no easy way to do this in Power BI, but it is possible with a workaround.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most of the technique for this is shown in the video linked here:&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=_GOIflxSlYI" target="_blank"&gt;https://www.youtube.com/watch?v=_GOIflxSlYI&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I would not suggest you use two visuals for this, I would suggest you put both measures in the same chart so that the one you wish to colour is on top of the grey ribbons. There is a bit more about this process here:&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=rldduQrW83Q" target="_blank"&gt;https://www.youtube.com/watch?v=rldduQrW83Q&lt;/A&gt; - But again, you will not need to use this whole process, this will just be showing you how to add multiple measures.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both videos are for a line chart, but it will also work for a Ribbon chart.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If these ideas work for you, please accept this as a solution. It helps with visibility for others with the same challenge.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 10:40:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-I-enable-conditional-formatting-on-a-Power-BI-ribbon/m-p/4122576#M163682</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-08-28T10:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to I enable conditional formatting on a Power BI ribbon chart?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-I-enable-conditional-formatting-on-a-Power-BI-ribbon/m-p/4126674#M163870</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="602340" data-lia-user-login="Anish7117" class="lia-mention lia-mention-user"&gt;Anish7117&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I know, if you add column into Legend of visual, Power BI will give the color based on the Legend automaticlly. This is by desgin.&lt;/P&gt;
&lt;P&gt;If you still want to change the color dynamiclly, I suggest that you can add student into small multiple or X aixs instead of Legend.&lt;/P&gt;
&lt;P&gt;Create an unrelated Student Table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DimStudent = 
VALUES('Table'[Student])&lt;/LI-CODE&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
IF(ISFILTERED('Table 2'[Student]),IF(MAX('Table'[Student]) in VALUES('Table 2'[Student]),"Red","Gray"),"Gray")&lt;/LI-CODE&gt;
&lt;P&gt;Add this measure into columns color.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&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;</description>
      <pubDate>Fri, 30 Aug 2024 09:09:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-I-enable-conditional-formatting-on-a-Power-BI-ribbon/m-p/4126674#M163870</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-30T09:09:38Z</dc:date>
    </item>
  </channel>
</rss>

