<?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 Issue with conditional formatting on a new column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-conditional-formatting-on-a-new-column/m-p/1743408#M36231</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moving on from an issue i had before i have created a new column, i only want the column to register&amp;nbsp;&lt;SPAN&gt;"#F68D39" if the number of days from Query1[SI Instruction] until today are over 15 days and there is a zero in the KPI_3 field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There may not be a date yet so as a consequence i think i need to add an extra function to check if a date is present in the SI instruction field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the below but i cant figure out how to get it to look at a third field to see if the date is present first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Colour KPI3 =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR diff =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DATEDIFF ( Query1[SI Instruction],TODAY () , DAY )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF ( AND ( Query1[KPI_3] = 0.00, diff &amp;lt; 15 ), "#F68D39" )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 24 Mar 2021 17:26:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-03-24T17:26:13Z</dc:date>
    <item>
      <title>Issue with conditional formatting on a new column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-conditional-formatting-on-a-new-column/m-p/1743408#M36231</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moving on from an issue i had before i have created a new column, i only want the column to register&amp;nbsp;&lt;SPAN&gt;"#F68D39" if the number of days from Query1[SI Instruction] until today are over 15 days and there is a zero in the KPI_3 field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There may not be a date yet so as a consequence i think i need to add an extra function to check if a date is present in the SI instruction field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the below but i cant figure out how to get it to look at a third field to see if the date is present first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Colour KPI3 =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR diff =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DATEDIFF ( Query1[SI Instruction],TODAY () , DAY )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF ( AND ( Query1[KPI_3] = 0.00, diff &amp;lt; 15 ), "#F68D39" )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Mar 2021 17:26:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-conditional-formatting-on-a-new-column/m-p/1743408#M36231</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-24T17:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with conditional formatting on a new column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-conditional-formatting-on-a-new-column/m-p/1743488#M36234</link>
      <description>&lt;P&gt;You can handle the diff separately for blank values like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Colour KPI3 =
VAR diff =
    IF (
        ISBLANK ( Query1[SI Instruction] ),
        0,
        DATEDIFF ( Query1[SI Instruction], TODAY (), DAY )
    )
RETURN
    IF ( AND ( Query1[KPI_3] = 0.00, diff &amp;lt; 15 ), "#F68D39" )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or you could add another condition to your IF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Colour KPI3 =
VAR diff =
    DATEDIFF ( Query1[SI Instruction], TODAY (), DAY )
RETURN
    IF (
        NOT ( ISBLANK ( Query1[SI Instruction] ) )
            &amp;amp;&amp;amp; Query1[KPI_3] = 0.00
            &amp;amp;&amp;amp; diff &amp;lt; 15,
        "#F68D39"
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or you could nest IF functions... It really depends on what you're trying to do.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 17:54:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-conditional-formatting-on-a-new-column/m-p/1743488#M36234</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-03-24T17:54:58Z</dc:date>
    </item>
  </channel>
</rss>

