<?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 of a table by colour for whole row in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-of-a-table-by-colour-for-whole-row/m-p/2768063#M86045</link>
    <description>&lt;P&gt;Hi there!&lt;/P&gt;
&lt;P&gt;It is still not possible to apply conditional formatting to row, therefore you have to apply it to each column of the table. It might help you speed up the process creating a measure like this (color can also be a Hex Code):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Country Matrix Conditional Formatting = 
SWITCH(
    SELECTEDVALUE( YourTable[Country] ),
    "France", "Green",
    "UK", "Blue",
    BLANK()
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;You can vote for the feature on going to this link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=229a6a2b-f26c-4afd-b1af-8cf3cbc9810f" target="_blank"&gt;https://ideas.powerbi.com/ideas/idea/?ideaid=229a6a2b-f26c-4afd-b1af-8cf3cbc9810f&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if that helps!&lt;/P&gt;</description>
    <pubDate>Wed, 14 Sep 2022 18:29:30 GMT</pubDate>
    <dc:creator>PabloDeheza</dc:creator>
    <dc:date>2022-09-14T18:29:30Z</dc:date>
    <item>
      <title>Conditional formatting of a table by colour for whole row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-of-a-table-by-colour-for-whole-row/m-p/2767882#M86028</link>
      <description>&lt;P&gt;Hi, I know how to conditional format a column, but how can one apply the background conditional formatting to one whole row. For instance, I would have this table:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Country&lt;/TD&gt;&lt;TD&gt;Sales&lt;/TD&gt;&lt;TD&gt;City&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;UK&lt;/TD&gt;&lt;TD&gt;105&lt;/TD&gt;&lt;TD&gt;London&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;France&lt;/TD&gt;&lt;TD&gt;92&lt;/TD&gt;&lt;TD&gt;Paris&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;UK&lt;/TD&gt;&lt;TD&gt;84&lt;/TD&gt;&lt;TD&gt;Manchester&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I would want to make the UK rows blue and the French rows green for instance, almost conditional formating based upon values in the Country column, but I don't want to have to go into each column and do this, how can I do this immediately for a whole row? Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 16:14:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-of-a-table-by-colour-for-whole-row/m-p/2767882#M86028</guid>
      <dc:creator>ompowerbi</dc:creator>
      <dc:date>2022-09-14T16:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting of a table by colour for whole row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-of-a-table-by-colour-for-whole-row/m-p/2768063#M86045</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;
&lt;P&gt;It is still not possible to apply conditional formatting to row, therefore you have to apply it to each column of the table. It might help you speed up the process creating a measure like this (color can also be a Hex Code):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Country Matrix Conditional Formatting = 
SWITCH(
    SELECTEDVALUE( YourTable[Country] ),
    "France", "Green",
    "UK", "Blue",
    BLANK()
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;You can vote for the feature on going to this link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=229a6a2b-f26c-4afd-b1af-8cf3cbc9810f" target="_blank"&gt;https://ideas.powerbi.com/ideas/idea/?ideaid=229a6a2b-f26c-4afd-b1af-8cf3cbc9810f&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if that helps!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 18:29:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-of-a-table-by-colour-for-whole-row/m-p/2768063#M86045</guid>
      <dc:creator>PabloDeheza</dc:creator>
      <dc:date>2022-09-14T18:29:30Z</dc:date>
    </item>
  </channel>
</rss>

