<?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 Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Format-Measure/m-p/2959621#M98488</link>
    <description>&lt;P&gt;check this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Conditional-Formatting-Using-Custom-Measure/ba-p/1399855" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Conditional-Formatting-Using-Custom-Measure/ba-p/1399855&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Dec 2022 17:25:32 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2022-12-09T17:25:32Z</dc:date>
    <item>
      <title>Conditional Format Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Format-Measure/m-p/2959423#M98465</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table in PowerBi which has fields as below. I would like to conditionally format the response from the table to show the 'good' values as green and 'bad' values as red. The issue is that these vary dependent on value - 9 sleep is very good, whereas 9 stress is very bad. Is there a way to apply specific conditional formats to specific rows in PowerBi using a measure?&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;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Day 1&lt;/TD&gt;&lt;TD&gt;Day 2&lt;/TD&gt;&lt;TD&gt;Day 3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sleep&lt;/TD&gt;&lt;TD&gt;User 1&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Stress&lt;/TD&gt;&lt;TD&gt;User 1&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sleep&lt;/TD&gt;&lt;TD&gt;User 2&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Stress&lt;/TD&gt;&lt;TD&gt;User 2&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 09 Dec 2022 15:32:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Format-Measure/m-p/2959423#M98465</guid>
      <dc:creator>tomshaw83</dc:creator>
      <dc:date>2022-12-09T15:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Format Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Format-Measure/m-p/2959621#M98488</link>
      <description>&lt;P&gt;check this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Conditional-Formatting-Using-Custom-Measure/ba-p/1399855" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Conditional-Formatting-Using-Custom-Measure/ba-p/1399855&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 17:25:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Format-Measure/m-p/2959621#M98488</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-12-09T17:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Format Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Format-Measure/m-p/2962071#M98704</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;You can refer the following links to get it:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting#color-by-rules-for-percentages" target="_self"&gt;Apply conditional formatting in tables and matrixes&lt;/A&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;A href="https://xyloslearning.com/en/power-bi-using-a-measure-to-set-up-conditional-formatting/" target="_self"&gt;Power BI: Using a measure to set up conditional formatting&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Conditional-Formatting-based-on-calculated-measure/m-p/640345" target="_self"&gt;Conditional Formatting based on calculated measure&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = var V=CALCULATE(SUM('Table'[Value]))
return IF(V&amp;gt;R[R Value],"#FD625E",
            IF(V&amp;gt;[A Value]&amp;amp;&amp;amp;V&amp;lt;R[R Value],"#F2C80F",
                IF(V&amp;gt;G[G Value]&amp;amp;&amp;amp;V&amp;lt;R[R Value],"#01B8AA")))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the above ones can't help you,&amp;nbsp;please provide some&amp;nbsp;&lt;STRONG&gt;raw data&amp;nbsp;&lt;/STRONG&gt;in your tables&lt;STRONG&gt;&amp;nbsp;(&lt;EM&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;with&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;Text&amp;nbsp;&lt;/FONT&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;format and your&amp;nbsp;&lt;STRONG&gt;expected result&amp;nbsp;&lt;/STRONG&gt;with backend logic and special examples.&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;simplified&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;pbix file. You can refer the following link to upload the file to the community. Thank you.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FDesktop%2FHow-to-upload-PBI-in-Community%2Fm-p%2F1672886&amp;amp;data=04%7C01%7Cv-yiruan%40microsoft.com%7C4f580813734d4a8355b008da16f6e91a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637847547341062885%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=YJvujige2YITXKbKED9JieQm5LBdf%2F3IYPM4ggdiijQ%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;How to upload PBI in Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 09:38:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Format-Measure/m-p/2962071#M98704</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-12T09:38:47Z</dc:date>
    </item>
  </channel>
</rss>

