<?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 format date based on another date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-format-date-based-on-another-date/m-p/5115511#M187247</link>
    <description>&lt;P&gt;Hello, I've found some similar suggestions to my issue, but nothing yet that has solved it. My appologies if I'm just missing something, but I have a table with a 2026 Due Date and 2026 Completion Date column. Both have dates listed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to have cells with a 2026 Due Date that is within the next 30 days to show up with a yellow back ground, or if it the 2026 Due date is past due then give it a light red background; only if the 2026 Completion Date is cell is blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if the 2026 Completion Date is filled out I would like it to ignore the color rules in the 2026 Due Date column and have no background color since it is completed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The format of the table columns are as follows:&amp;nbsp;&lt;SPAN&gt;'API Worksafe'&lt;/SPAN&gt;&lt;SPAN&gt;[2026 Due Date] and&lt;/SPAN&gt;&amp;nbsp;'&lt;SPAN&gt;API Worksafe'&lt;/SPAN&gt;&lt;SPAN&gt;[2026 Completion Date]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached a screenshot of the current table for a visual and marked the 2 columns that I'm working with in this question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Feb 2026 15:13:30 GMT</pubDate>
    <dc:creator>Gandarthvader</dc:creator>
    <dc:date>2026-02-23T15:13:30Z</dc:date>
    <item>
      <title>Conditional format date based on another date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-format-date-based-on-another-date/m-p/5115511#M187247</link>
      <description>&lt;P&gt;Hello, I've found some similar suggestions to my issue, but nothing yet that has solved it. My appologies if I'm just missing something, but I have a table with a 2026 Due Date and 2026 Completion Date column. Both have dates listed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to have cells with a 2026 Due Date that is within the next 30 days to show up with a yellow back ground, or if it the 2026 Due date is past due then give it a light red background; only if the 2026 Completion Date is cell is blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if the 2026 Completion Date is filled out I would like it to ignore the color rules in the 2026 Due Date column and have no background color since it is completed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The format of the table columns are as follows:&amp;nbsp;&lt;SPAN&gt;'API Worksafe'&lt;/SPAN&gt;&lt;SPAN&gt;[2026 Due Date] and&lt;/SPAN&gt;&amp;nbsp;'&lt;SPAN&gt;API Worksafe'&lt;/SPAN&gt;&lt;SPAN&gt;[2026 Completion Date]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached a screenshot of the current table for a visual and marked the 2 columns that I'm working with in this question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2026 15:13:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-format-date-based-on-another-date/m-p/5115511#M187247</guid>
      <dc:creator>Gandarthvader</dc:creator>
      <dc:date>2026-02-23T15:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional format date based on another date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-format-date-based-on-another-date/m-p/5115573#M187248</link>
      <description>&lt;P&gt;You can use a measure like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cond formatting = IF(
    ISBLANK( SELECTEDVALUE( 'Table'[Completion Date] ) ),
    VAR CurrentDueDate = SELECTEDVALUE( 'Table'[Due Date] )
    VAR InNext30Days = CurrentDueDate &amp;gt;= TODAY() &amp;amp;&amp;amp; CurrentDueDate &amp;lt;= TODAY() + 30
    VAR PastDue = CurrentDueDate &amp;lt; TODAY()
    VAR Result = SWITCH( TRUE(),
        PastDue, "red",
        InNext30Days, "yellow"
    )
    RETURN Result
)&lt;/LI-CODE&gt;
&lt;P&gt;and apply that as conditional formatting for the background for the due date.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2026 16:11:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-format-date-based-on-another-date/m-p/5115573#M187248</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2026-02-23T16:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional format date based on another date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-format-date-based-on-another-date/m-p/5115578#M187249</link>
      <description>&lt;P&gt;You are awesome! That worked like a charm. Thank you so much!!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2026 16:30:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-format-date-based-on-another-date/m-p/5115578#M187249</guid>
      <dc:creator>Gandarthvader</dc:creator>
      <dc:date>2026-02-23T16:30:45Z</dc:date>
    </item>
  </channel>
</rss>

