<?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 in Table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-in-Table/m-p/2288206#M56185</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="268073" data-lia-user-login="tomshaw83" class="lia-mention lia-mention-user"&gt;tomshaw83&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has my reply helped you to find the solution to this problem? If so, would you like to mark my reply as the solution?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this result is not what you want, you can post the download link of your data file and your expected result.&lt;/P&gt;
&lt;P&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;&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Robert Qin&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jan 2022 06:56:02 GMT</pubDate>
    <dc:creator>v-robertq-msft</dc:creator>
    <dc:date>2022-01-18T06:56:02Z</dc:date>
    <item>
      <title>Conditional Formatting in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-in-Table/m-p/2277431#M55624</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a set of data similar to the table below that I am looking to provide conditional formatting on. However I would like this to be linked to the Region, so for example the conditional formatting for North only looks at 34.2, 33.8, 32.7 and applies the colour gradient to those values. The same conditional formatting is then applied for East, West, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible whilst keeping all the percentages in the same column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Region&lt;/TD&gt;&lt;TD&gt;% From World Average&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;North&lt;/TD&gt;&lt;TD&gt;34.2%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;North&lt;/TD&gt;&lt;TD&gt;33.8%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;North&lt;/TD&gt;&lt;TD&gt;32.7%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;East&lt;/TD&gt;&lt;TD&gt;12.1%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;East&lt;/TD&gt;&lt;TD&gt;16.5%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;East&lt;/TD&gt;&lt;TD&gt;8.4%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;West&lt;/TD&gt;&lt;TD&gt;66.1%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;West&lt;/TD&gt;&lt;TD&gt;62.9%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 11 Jan 2022 11:48:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-in-Table/m-p/2277431#M55624</guid>
      <dc:creator>tomshaw83</dc:creator>
      <dc:date>2022-01-11T11:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-in-Table/m-p/2277478#M55629</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="268073" data-lia-user-login="tomshaw83" class="lia-mention lia-mention-user"&gt;tomshaw83&lt;/a&gt; , With gradient , you can use a measure that can give region &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you can create a color measure like and use that in conditional formatting using field value option&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;color = Switch( True() ,&lt;/P&gt;
&lt;P&gt;max(Table[Region]) = "Region 1" &amp;amp;&amp;amp; [% From World Average] &amp;lt;.30 , "Red",&lt;/P&gt;
&lt;P&gt;max(Table[Region]) = "Region 1" &amp;amp;&amp;amp; [% From World Average] &amp;lt;.50 , "Yellow",&lt;/P&gt;
&lt;P&gt;max(Table[Region]) = "Region 2" &amp;amp;&amp;amp; [% From World Average] &amp;lt;.50 , "Red",&lt;/P&gt;
&lt;P&gt;max(Table[Region]) = "Region 2" &amp;amp;&amp;amp; [% From World Average] &amp;lt;.50 , "Yellow",&lt;/P&gt;
&lt;P&gt;// add other conditions&lt;/P&gt;
&lt;P&gt;"Green"&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to do conditional formatting by measure and apply it on pie?: &lt;A href="https://youtu.be/RqBb5eBf_I4" target="_blank"&gt;https://youtu.be/RqBb5eBf_I4&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 12:09:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-in-Table/m-p/2277478#M55629</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-01-11T12:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-in-Table/m-p/2277531#M55634</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;This can be accomplished by using measures for conditional formatting:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Dax example:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Conditional Formatting measure example = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;_selected&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;YearlyOrders[Year]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;_rank&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;filter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;all&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;YearlyOrders&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;YearlyOrders[Year]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;_selected&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;[OrderValue]&lt;/SPAN&gt;&lt;SPAN&gt;,,&lt;/SPAN&gt;&lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;switch&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;SPAN&gt;_rank&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"Light Blue"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;_rank&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"Blue"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;STRONG&gt;Format here:&lt;BR /&gt;&lt;/STRONG&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;STRONG&gt;End result and explanation:&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;So here I am ranking [ordervalue] based on selected year (in your example region and % measure). Then I use switch + true to give these ranks colors -&amp;gt; you can use text or hexacodes. These colors then work as a gradient.&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 12:34:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-in-Table/m-p/2277531#M55634</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-11T12:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-in-Table/m-p/2277677#M55647</link>
      <description>&lt;P&gt;Thank you, this is really helpful. I've implemented and tried to understand the code. I believe I have 2 problems that you may be able to help&lt;/P&gt;&lt;P&gt;1) you use max on the variable _selected, as dealing in years. As I have text is there something else I can use, at present it seems to return everything as Rank 1 - light blue&lt;/P&gt;&lt;P&gt;2) I've followed the implementation of the colour format, but these don't update the % world average column as in your example. If I add in the 'conditional formatting' as a new column it then updates the world average data colour (as in pic below). I'm not sure how to get this to be the background of the % values.&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>Tue, 11 Jan 2022 14:01:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-in-Table/m-p/2277677#M55647</guid>
      <dc:creator>tomshaw83</dc:creator>
      <dc:date>2022-01-11T14:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-in-Table/m-p/2283296#M55906</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, I can roughly understand your requirement, you want to apply the color gradient on the conditional formatting for each region within your dataset, right? I think you can try this method:&lt;/P&gt;
&lt;P&gt;First, create a calculated column in the table like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Rank = RANKX(FILTER(ALL('Table'),[Region]=EARLIER('Table'[Region])),[% From World Average],,ASC,Dense)&lt;/LI-CODE&gt;
&lt;P&gt;Then you can create a measure like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Color =

SWITCH(

    MAX('Table'[Rank]),

    1,"White",

    2,"Light Blue",

    3,"Blue")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then go to the conditional formatting setting of this chart and set it like this:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;And you can get what you want, like this:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can download my test pbix file below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.&lt;/P&gt;
&lt;P&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;&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Robert Qin&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 08:12:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-in-Table/m-p/2283296#M55906</guid>
      <dc:creator>v-robertq-msft</dc:creator>
      <dc:date>2022-01-14T08:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-in-Table/m-p/2286593#M56095</link>
      <description>&lt;P&gt;Thank you, I am just looking into transposing this onto my datafile&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 11:51:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-in-Table/m-p/2286593#M56095</guid>
      <dc:creator>tomshaw83</dc:creator>
      <dc:date>2022-01-17T11:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-in-Table/m-p/2288206#M56185</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="268073" data-lia-user-login="tomshaw83" class="lia-mention lia-mention-user"&gt;tomshaw83&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has my reply helped you to find the solution to this problem? If so, would you like to mark my reply as the solution?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this result is not what you want, you can post the download link of your data file and your expected result.&lt;/P&gt;
&lt;P&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;&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Robert Qin&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 06:56:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-in-Table/m-p/2288206#M56185</guid>
      <dc:creator>v-robertq-msft</dc:creator>
      <dc:date>2022-01-18T06:56:02Z</dc:date>
    </item>
  </channel>
</rss>

