<?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 to show colour grades dependant on a changing measure outcome in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-to-show-colour-grades-dependant-on-a/m-p/4072995#M161701</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="581863" data-lia-user-login="Amy-Marriott" class="lia-mention lia-mention-user"&gt;Amy-Marriott&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Try below measure for conditional formating&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Conditional_measure=
var a = calculate([% meausre],removefilter('table'[Team column]))
switch(true(),
ISINSCOPE('table'[Team column]) &amp;amp;&amp;amp; [% meausre]&amp;lt;=a,"Green",
ISINSCOPE('table'[Team column]) &amp;amp;&amp;amp; [% meausre]&amp;gt;=a,"red"
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;For know how to use measure as&amp;nbsp; conditional formatting&amp;nbsp;refer&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-for-a-measure-values/m-p/3143993" target="_blank" rel="noopener"&gt;LINK.&lt;/A&gt;&lt;BR /&gt;you can also refer Microsoft&amp;nbsp; documents for Conditional formatting&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting" target="_blank" rel="noopener"&gt;LINK&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Dangar&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2024 07:31:27 GMT</pubDate>
    <dc:creator>Dangar332</dc:creator>
    <dc:date>2024-08-01T07:31:27Z</dc:date>
    <item>
      <title>Conditional Formatting to show colour grades dependant on a changing measure outcome</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-to-show-colour-grades-dependant-on-a/m-p/4069574#M161564</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a measure that is dividing the number of absent employees over the past year by the average headcount providing me an overall % of absent vs headcount.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have then added this % into a table and added in Teams where it then shows the % of absent employees by team.&lt;/P&gt;&lt;P&gt;What I would like to format is the colour of the Team level % by the overall measure outcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, lets say the companywide % of absent employees is 10%. Team X has a value of 5% in the table therefore can be coloured green as it is below the companywide overall number or 10%. Team Y has 20% so should be red. This format should change depending on the overall firm % so if it drops to 4% companywide, Team X would then turn red too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I do this please? I have been trying for a few days now to no avail!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 16:27:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-to-show-colour-grades-dependant-on-a/m-p/4069574#M161564</guid>
      <dc:creator>Amy-Marriott</dc:creator>
      <dc:date>2024-07-30T16:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting to show colour grades dependant on a changing measure outcome</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-to-show-colour-grades-dependant-on-a/m-p/4069709#M161573</link>
      <description>&lt;P&gt;Source Data and total employee calculation&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Team Absent %&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Overall Company Absent% calculation&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Absent% Comparison Calculation&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Conditional format setting and visualization&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 17:58:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-to-show-colour-grades-dependant-on-a/m-p/4069709#M161573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-30T17:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting to show colour grades dependant on a changing measure outcome</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-to-show-colour-grades-dependant-on-a/m-p/4070763#M161606</link>
      <description>&lt;P&gt;Hi Rakesh, really appreciate your response thank you!&lt;/P&gt;&lt;P&gt;I note though on the conditional formatting screenshot that you are still putting in a figure of 0 and 100. I need the conditional formatting to be flexible with the outcome of the companywide figure on an ongoing basis not static numbers. Is this possible?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 07:57:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-to-show-colour-grades-dependant-on-a/m-p/4070763#M161606</guid>
      <dc:creator>Amy-Marriott</dc:creator>
      <dc:date>2024-07-31T07:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting to show colour grades dependant on a changing measure outcome</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-to-show-colour-grades-dependant-on-a/m-p/4070861#M161610</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="581863" data-lia-user-login="Amy-Marriott" class="lia-mention lia-mention-user"&gt;Amy-Marriott&lt;/a&gt;&amp;nbsp;in any situation your percentages will not go beyond 100. Hence it is no harm to use this range.&lt;/P&gt;&lt;P&gt;Still as per your request i have given a try. In your situation what I am understanding is that if the comparison value become negative then it will be red and and if its positive then its green. So its better to take atleast 0 in the comparison.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If you think the logic is going with your requirement then please accept the same as your solution.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 08:33:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-to-show-colour-grades-dependant-on-a/m-p/4070861#M161610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-31T08:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting to show colour grades dependant on a changing measure outcome</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-to-show-colour-grades-dependant-on-a/m-p/4072995#M161701</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="581863" data-lia-user-login="Amy-Marriott" class="lia-mention lia-mention-user"&gt;Amy-Marriott&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Try below measure for conditional formating&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Conditional_measure=
var a = calculate([% meausre],removefilter('table'[Team column]))
switch(true(),
ISINSCOPE('table'[Team column]) &amp;amp;&amp;amp; [% meausre]&amp;lt;=a,"Green",
ISINSCOPE('table'[Team column]) &amp;amp;&amp;amp; [% meausre]&amp;gt;=a,"red"
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;For know how to use measure as&amp;nbsp; conditional formatting&amp;nbsp;refer&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-for-a-measure-values/m-p/3143993" target="_blank" rel="noopener"&gt;LINK.&lt;/A&gt;&lt;BR /&gt;you can also refer Microsoft&amp;nbsp; documents for Conditional formatting&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting" target="_blank" rel="noopener"&gt;LINK&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Dangar&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 07:31:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-to-show-colour-grades-dependant-on-a/m-p/4072995#M161701</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-08-01T07:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting to show colour grades dependant on a changing measure outcome</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-to-show-colour-grades-dependant-on-a/m-p/4073259#M161718</link>
      <description>&lt;P&gt;Thank you Dangar! The switch isn't working without an = before it and when this is placed in the variable isn't pulling through for the &amp;lt;= X. Is there something I'm missing here?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 09:30:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-to-show-colour-grades-dependant-on-a/m-p/4073259#M161718</guid>
      <dc:creator>Amy-Marriott</dc:creator>
      <dc:date>2024-08-01T09:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting to show colour grades dependant on a changing measure outcome</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-to-show-colour-grades-dependant-on-a/m-p/4073376#M161723</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="581863" data-lia-user-login="Amy-Marriott" class="lia-mention lia-mention-user"&gt;Amy-Marriott&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try below measure it gives error because it not find value for Columns&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Conditional_measure=
var a = calculate([% meausre],removefilter('table'[Team column]))
switch(true(),
ISINSCOPE(min('table'[Team column])) &amp;amp;&amp;amp; [% meausre]&amp;lt;=a,"Green",
ISINSCOPE(min('table'[Team column])) &amp;amp;&amp;amp; [% meausre]&amp;gt;=a,"red"
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Dangar&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 10:54:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-to-show-colour-grades-dependant-on-a/m-p/4073376#M161723</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-08-01T10:54:03Z</dc:date>
    </item>
  </channel>
</rss>

