<?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 formatting using two date columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-using-two-date-columns/m-p/4002724#M156070</link>
    <description>&lt;P&gt;Thank you so much, that works for me!&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jun 2024 19:30:59 GMT</pubDate>
    <dc:creator>hawkeye159</dc:creator>
    <dc:date>2024-06-20T19:30:59Z</dc:date>
    <item>
      <title>Conditional formatting using two date columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-using-two-date-columns/m-p/4000095#M155770</link>
      <description>&lt;P&gt;Hi all, I'm new here and quite new to Power BI, trying to learn as I go and using forums like this to pick up tips.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I'm struggling to find a solution that matches my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with two different target dates - a normal target date (Target Date) and an extended target date (EOT Date).&amp;nbsp; The EOT date won't always be populated but the Target Date will.&amp;nbsp; I'm wanting to add conditional formatting so that, if the target date has expired, it will show red, BUT, if the EOT date has not expired, it will still show green.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried adding a measure to show the Target Date as red where the date has passed and green if not:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure&lt;/SPAN&gt;&lt;SPAN&gt; - Over Target Date =&lt;/SPAN&gt; &lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DCAPPL&lt;/SPAN&gt;&lt;SPAN&gt;[TARGET DATE]&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Then added conditional formatting:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That seemed to work:&lt;/P&gt;&lt;img /&gt;&lt;P&gt;(Note: I added the same conditional formatting to the Application No. data too).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But am I able to highlight the columns if the EOT date was still in time?&amp;nbsp; So in the below screenshot, the application highlighted has a target date that has expired but the EOT date is still within time.&amp;nbsp; I would like this row to be showing as Green as it is still within time.&amp;nbsp; Likewise, the two applications below the highlighted one would show Red as their EOT date has expired.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My apologies if this post is too lengthy or not concise enough.&amp;nbsp; I hope it makes sense and someone out there is able to understand me and help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Jun 2024 12:04:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-using-two-date-columns/m-p/4000095#M155770</guid>
      <dc:creator>hawkeye159</dc:creator>
      <dc:date>2024-06-19T12:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting using two date columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-using-two-date-columns/m-p/4000241#M155793</link>
      <description>&lt;P&gt;Create a new calculated column or measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Status = 
IF(
    ISBLANK('Table'[EOT Date]),
    IF('Table'[Target Date] &amp;lt; TODAY(), "Expired", "Not Expired"),
    IF('Table'[EOT Date] &amp;lt; TODAY(), "Expired", "Not Expired")
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set the rules&lt;/STRONG&gt; for the conditional formatting:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If Status is "Expired", set the color to red.&lt;/LI&gt;&lt;LI&gt;If Status is "Not Expired", set the color to green.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 19 Jun 2024 13:39:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-using-two-date-columns/m-p/4000241#M155793</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-06-19T13:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting using two date columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-using-two-date-columns/m-p/4002724#M156070</link>
      <description>&lt;P&gt;Thank you so much, that works for me!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 19:30:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-using-two-date-columns/m-p/4002724#M156070</guid>
      <dc:creator>hawkeye159</dc:creator>
      <dc:date>2024-06-20T19:30:59Z</dc:date>
    </item>
  </channel>
</rss>

