<?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 Format a Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Format-a-Measure/m-p/2229112#M53153</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="340031" data-lia-user-login="natasha519" class="lia-mention lia-mention-user"&gt;natasha519&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Add a color measure .&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Y1SS Color = if(COUNTROWS(FILTER(od2a_SuccessStory,od2a_SuccessStory[Year]="Year 1")),"#24FF10 ", "#FF470F")&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;Then choose the measure [Y1SS] you created before , click the drop-down box and select &lt;STRONG&gt;Conditional formatting&lt;/STRONG&gt; =&amp;gt; &lt;STRONG&gt;Font color&lt;/STRONG&gt; , then in Font color pane , select &lt;STRONG&gt;Field value&lt;/STRONG&gt; in &lt;STRONG&gt;Format style&lt;/STRONG&gt; , &lt;STRONG&gt;Values only&lt;/STRONG&gt; in &lt;STRONG&gt;Apply to&lt;/STRONG&gt; , the measure which you want to apply color in &lt;STRONG&gt;What field should we base this on&lt;/STRONG&gt; . &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The final result is as shown :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have attached my pbix file , you can refer to it .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regard&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Community Support Team _ Ailsa Tao&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Dec 2021 02:31:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-12-09T02:31:33Z</dc:date>
    <item>
      <title>Conditional Format a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Format-a-Measure/m-p/2223186#M52839</link>
      <description>&lt;P&gt;I have a measure (&lt;SPAN&gt;Y1SS = &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&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;od2a_SuccessStory&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;od2a_SuccessStory[Year]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"Year 1"&lt;/SPAN&gt;&lt;SPAN&gt;)),&lt;/SPAN&gt;&lt;SPAN&gt;"Submitted"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Missing"&lt;/SPAN&gt;&lt;SPAN&gt;)), is there any way I can include in this DAX formula that if it's 'Submitted', I want the text to display as green and if it's 'Missing', then display as red?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried to color the data label, but since it's a measure I wasn't able to get it to work!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 15:14:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Format-a-Measure/m-p/2223186#M52839</guid>
      <dc:creator>natasha519</dc:creator>
      <dc:date>2021-12-06T15:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Format a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Format-a-Measure/m-p/2224224#M52910</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="340031" data-lia-user-login="natasha519" class="lia-mention lia-mention-user"&gt;natasha519&lt;/a&gt; , Create a color measure and use that in conditional formatting using field value option &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Y1SS Color = if(COUNTROWS(FILTER(od2a_SuccessStory,od2a_SuccessStory[Year]="Year 1")),"green", "red")&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;</description>
      <pubDate>Tue, 07 Dec 2021 03:03:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Format-a-Measure/m-p/2224224#M52910</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-12-07T03:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Format a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Format-a-Measure/m-p/2225734#M52986</link>
      <description>&lt;P&gt;Thank you! If I Know the hex code of the green color, how can I incorporate that into the formula? The green is much darker than I thought it would be&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 15:23:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Format-a-Measure/m-p/2225734#M52986</guid>
      <dc:creator>natasha519</dc:creator>
      <dc:date>2021-12-07T15:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Format a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Format-a-Measure/m-p/2227650#M53098</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;You can place the hex code where the "green" or "red" values would be so for example:&lt;BR /&gt;&lt;SPAN&gt;Y1SS Color = if(COUNTROWS(FILTER(od2a_SuccessStory,od2a_SuccessStory[Year]="Year 1")),"#24FF10", "#FF470F")&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 11:53:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Format-a-Measure/m-p/2227650#M53098</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2021-12-08T11:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Format a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Format-a-Measure/m-p/2227655#M53100</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="340031" data-lia-user-login="natasha519" class="lia-mention lia-mention-user"&gt;natasha519&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use this link to find the HEX code;&amp;nbsp;&lt;A href="https://htmlcolorcodes.com/" target="_blank"&gt;https://htmlcolorcodes.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;accepting&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it as the solution&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 11:55:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Format-a-Measure/m-p/2227655#M53100</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-12-08T11:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Format a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Format-a-Measure/m-p/2229112#M53153</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="340031" data-lia-user-login="natasha519" class="lia-mention lia-mention-user"&gt;natasha519&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Add a color measure .&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Y1SS Color = if(COUNTROWS(FILTER(od2a_SuccessStory,od2a_SuccessStory[Year]="Year 1")),"#24FF10 ", "#FF470F")&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;Then choose the measure [Y1SS] you created before , click the drop-down box and select &lt;STRONG&gt;Conditional formatting&lt;/STRONG&gt; =&amp;gt; &lt;STRONG&gt;Font color&lt;/STRONG&gt; , then in Font color pane , select &lt;STRONG&gt;Field value&lt;/STRONG&gt; in &lt;STRONG&gt;Format style&lt;/STRONG&gt; , &lt;STRONG&gt;Values only&lt;/STRONG&gt; in &lt;STRONG&gt;Apply to&lt;/STRONG&gt; , the measure which you want to apply color in &lt;STRONG&gt;What field should we base this on&lt;/STRONG&gt; . &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The final result is as shown :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have attached my pbix file , you can refer to it .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regard&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Community Support Team _ Ailsa Tao&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 02:31:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Format-a-Measure/m-p/2229112#M53153</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-09T02:31:33Z</dc:date>
    </item>
  </channel>
</rss>

