<?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: Format background in a matrix table by row by higher than value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-in-a-matrix-table-by-row-by-higher-than-value/m-p/3823800#M149537</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a flag variable using the if condition you mentioned then use that flag to do condiotional formatting in matrix visual.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2024 13:06:10 GMT</pubDate>
    <dc:creator>Rupak_bi</dc:creator>
    <dc:date>2024-04-09T13:06:10Z</dc:date>
    <item>
      <title>Format background in a matrix table by row by higher than value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-in-a-matrix-table-by-row-by-higher-than-value/m-p/3823530#M149530</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cant find a good solution on this in the forum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Easy "if" function&lt;/P&gt;&lt;P&gt;IF row A has a value higher than 25000 then RED background&lt;/P&gt;&lt;P&gt;IF row B has a value higher than 40000 then RED background&amp;nbsp;&lt;/P&gt;&lt;P&gt;Else green background&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;Year&lt;/TD&gt;&lt;TD&gt;2024&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;5009&lt;/TD&gt;&lt;TD&gt;26000&lt;/TD&gt;&lt;TD&gt;20604&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;10438&lt;/TD&gt;&lt;TD&gt;18800&lt;/TD&gt;&lt;TD&gt;40507&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I write this in DAX?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 13:44:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-in-a-matrix-table-by-row-by-higher-than-value/m-p/3823530#M149530</guid>
      <dc:creator>Magnusnilsson</dc:creator>
      <dc:date>2024-04-09T13:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Format background in a matrix table by row by higher than value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-in-a-matrix-table-by-row-by-higher-than-value/m-p/3823800#M149537</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a flag variable using the if condition you mentioned then use that flag to do condiotional formatting in matrix visual.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 13:06:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-in-a-matrix-table-by-row-by-higher-than-value/m-p/3823800#M149537</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2024-04-09T13:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Format background in a matrix table by row by higher than value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-in-a-matrix-table-by-row-by-higher-than-value/m-p/3826902#M149627</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="664598" data-lia-user-login="Magnusnilsson" class="lia-mention lia-mention-user"&gt;Magnusnilsson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Select the table or matrix visual that you want to apply conditional formatting to.&lt;/LI&gt;&lt;LI&gt;Click on the ellipsis (...) in the visual's title bar to open the context menu.&lt;/LI&gt;&lt;LI&gt;Choose "Conditional formatting" from the menu.&lt;/LI&gt;&lt;LI&gt;In the conditional formatting pane, select the field (e.g., "A" or "B") for which you want to apply the formatting.&lt;/LI&gt;&lt;LI&gt;Choose "Background color" from the Format by dropdown menu.&lt;/LI&gt;&lt;LI&gt;Click on "Advanced controls" to open the advanced formatting options.&lt;/LI&gt;&lt;LI&gt;Enter the following DAX expression for the background color:&lt;BR /&gt;IF (&lt;BR /&gt;SELECTEDVALUE ( 'YourTableName'[YourColumnA] ) &amp;gt; 25000 ||&lt;BR /&gt;SELECTEDVALUE ( 'YourTableName'[YourColumnB] ) &amp;gt; 40000,&lt;BR /&gt;"Red",&lt;BR /&gt;"Green"&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 10 Apr 2024 11:05:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-in-a-matrix-table-by-row-by-higher-than-value/m-p/3826902#M149627</guid>
      <dc:creator>johnbasha33</dc:creator>
      <dc:date>2024-04-10T11:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Format background in a matrix table by row by higher than value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-in-a-matrix-table-by-row-by-higher-than-value/m-p/3878701#M151423</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="664598" data-lia-user-login="Magnusnilsson" class="lia-mention lia-mention-user"&gt;Magnusnilsson&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can refer to&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="585150" data-lia-user-login="johnbasha33" class="lia-mention lia-mention-user"&gt;johnbasha33&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="583487" data-lia-user-login="Rupak_bi" class="lia-mention lia-mention-user"&gt;Rupak_bi&lt;/a&gt;&amp;nbsp;reply, if it does not work, you can try following method.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Color = 
VAR _value =
    SELECTEDVALUE ( 'Table 3'[Value] )
VAR _category =
    SELECTEDVALUE ( 'Table 3'[Category] )
VAR _result =
    IF (
        _value &amp;gt; 25000
            &amp;amp;&amp;amp; _category = "A",
        "RED",
        IF ( _value &amp;gt; 40000 &amp;amp;&amp;amp; _category = "B", "RED" )
    )
RETURN
    _result
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&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;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C01%7Cv-yaningyang%40microsoft.com%7C326a6d727194478c197008dbefc04904%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638367381365912356%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=7IzyI2%2FMOAR%2FYCjWYSKCZL2VPmT4PsxuWBjdUdMWKzo%3D&amp;amp;reserved=0" target="_blank"&gt;How to get your questions answered quickly&lt;/A&gt;&amp;nbsp;--&amp;nbsp;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-provide-sample-data-in-the-Power-BI-Forum%2Fba-p%2F963216&amp;amp;data=05%7C01%7Cv-yaningyang%40microsoft.com%7C326a6d727194478c197008dbefc04904%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638367381365919045%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=VeafzdwAsrpisD8s261%2FdyOwJ1aCtBXS3bPA6NODOHY%3D&amp;amp;reserved=0" target="_blank"&gt;&amp;nbsp;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 09:19:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-in-a-matrix-table-by-row-by-higher-than-value/m-p/3878701#M151423</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-30T09:19:26Z</dc:date>
    </item>
  </channel>
</rss>

