<?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 Conditional Formatting (2 Rules for same column) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-2-Rules-for-same-column/m-p/1933499#M42003</link>
    <description>&lt;P&gt;Hello All&lt;BR /&gt;&lt;BR /&gt;I have these two DAX measures. I basically need to color one column two different colors (Red if date in other column is within 45 days and Yellow if within 60 days. I will need the 45 day rule to have higher precedent so that it overrides the 60 day Yellow when the appropriate time comes.&lt;BR /&gt;&lt;BR /&gt;Does anyone know how to nest these two statements together and give the 45 day higher precedent?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;45_Day_Color = if(FIRSTNONBLANK(Elig_List[45_Day_Alert],TODAY()) &amp;lt;today(),"red","white")&lt;/P&gt;&lt;P&gt;60_Day_Color = if(FIRSTNONBLANK(Elig_List[60_Day_Alert],TODAY()) &amp;lt;today(),"yellow","white")&lt;BR /&gt;&lt;BR /&gt;I appreciate any help!&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jul 2021 15:01:54 GMT</pubDate>
    <dc:creator>Userpath77</dc:creator>
    <dc:date>2021-07-01T15:01:54Z</dc:date>
    <item>
      <title>Conditional Formatting (2 Rules for same column)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-2-Rules-for-same-column/m-p/1933499#M42003</link>
      <description>&lt;P&gt;Hello All&lt;BR /&gt;&lt;BR /&gt;I have these two DAX measures. I basically need to color one column two different colors (Red if date in other column is within 45 days and Yellow if within 60 days. I will need the 45 day rule to have higher precedent so that it overrides the 60 day Yellow when the appropriate time comes.&lt;BR /&gt;&lt;BR /&gt;Does anyone know how to nest these two statements together and give the 45 day higher precedent?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;45_Day_Color = if(FIRSTNONBLANK(Elig_List[45_Day_Alert],TODAY()) &amp;lt;today(),"red","white")&lt;/P&gt;&lt;P&gt;60_Day_Color = if(FIRSTNONBLANK(Elig_List[60_Day_Alert],TODAY()) &amp;lt;today(),"yellow","white")&lt;BR /&gt;&lt;BR /&gt;I appreciate any help!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 15:01:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-2-Rules-for-same-column/m-p/1933499#M42003</guid>
      <dc:creator>Userpath77</dc:creator>
      <dc:date>2021-07-01T15:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting (2 Rules for same column)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-2-Rules-for-same-column/m-p/1933613#M42013</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="310802" data-lia-user-login="Userpath77" class="lia-mention lia-mention-user"&gt;Userpath77&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I believe SWITCH would help here.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MEASURE = 
SWITCH(
    TRUE(),
    SELECTEDVALUE('Table'[ColumnWithDate])-TODAY()&amp;lt;45,
    "RED",
    SELECTEDVALUE('Table'[ColumnWithDate])-TODAY()&amp;lt;60,
    "YELLOW",
    "WHITE"
)

&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 15:50:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-2-Rules-for-same-column/m-p/1933613#M42013</guid>
      <dc:creator>Payeras_BI</dc:creator>
      <dc:date>2021-07-01T15:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting (2 Rules for same column)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-2-Rules-for-same-column/m-p/1933813#M42032</link>
      <description>&lt;P&gt;Thanks Payeras-----I had to adjust it a little, but worked perfect! Thanks again.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 18:45:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-2-Rules-for-same-column/m-p/1933813#M42032</guid>
      <dc:creator>Userpath77</dc:creator>
      <dc:date>2021-07-01T18:45:29Z</dc:date>
    </item>
  </channel>
</rss>

