<?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: Color Formatting in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Color-Formatting/m-p/2497499#M68948</link>
    <description>&lt;P&gt;I got it by adding a third condition, as it is technically correct at the moment becuase it changing values below 50 as these aren't 50 to 75.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Color Measure =&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;VAR _per = [Learning Percentage Completed]*100&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;RETURN&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;IF(_per &amp;gt;50 &amp;amp;&amp;amp; _per &amp;lt; 75, "Red",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IF(_per &amp;gt; 75, "Orange",""))&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2022 04:35:24 GMT</pubDate>
    <dc:creator>ringovski</dc:creator>
    <dc:date>2022-05-06T04:35:24Z</dc:date>
    <item>
      <title>Color Formatting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Color-Formatting/m-p/2497256#M68937</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to format a % measure called "Learning Percentage Completed" with red when it's &amp;gt;50 and &amp;lt;75 then with orange when its greater than 75. I've created a new measure called "color measure" and have tried using a IF statement ( I need to additional conditions later on).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I just return the number from the IF it returns the correct number;&lt;/P&gt;&lt;P&gt;Color Measure =&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;VAR _per = [Learning Percentage Completed]*100&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;RETURN&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;_per&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I try comparing the numbers they are all orange when only 84.59 should be orange.&lt;/P&gt;&lt;P&gt;Color Measure =&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;VAR _per = [Learning Percentage Completed]*100&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;RETURN&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;IF(_per &amp;gt;50 &amp;amp;&amp;amp; _per &amp;lt; 75, "Red","Orange")&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This should be pretty simple but what am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 02:00:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Color-Formatting/m-p/2497256#M68937</guid>
      <dc:creator>ringovski</dc:creator>
      <dc:date>2022-05-06T02:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Color Formatting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Color-Formatting/m-p/2497444#M68941</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="342511" data-lia-user-login="ringovski" class="lia-mention lia-mention-user"&gt;ringovski&lt;/a&gt; , This seems fine .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Color Measure = Switch( True() , &lt;/P&gt;
&lt;P&gt;[Learning Percentage Completed] &amp;gt;.5 &amp;amp;&amp;amp; [Learning Percentage Completed]&amp;nbsp; &amp;lt;.75, "Red",&lt;/P&gt;
&lt;P&gt;"Orange"&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this does not help&lt;BR /&gt;Can you share a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 03:37:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Color-Formatting/m-p/2497444#M68941</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-05-06T03:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Color Formatting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Color-Formatting/m-p/2497499#M68948</link>
      <description>&lt;P&gt;I got it by adding a third condition, as it is technically correct at the moment becuase it changing values below 50 as these aren't 50 to 75.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Color Measure =&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;VAR _per = [Learning Percentage Completed]*100&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;RETURN&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;IF(_per &amp;gt;50 &amp;amp;&amp;amp; _per &amp;lt; 75, "Red",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IF(_per &amp;gt; 75, "Orange",""))&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 04:35:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Color-Formatting/m-p/2497499#M68948</guid>
      <dc:creator>ringovski</dc:creator>
      <dc:date>2022-05-06T04:35:24Z</dc:date>
    </item>
  </channel>
</rss>

