<?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 based on two other columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-based-on-two-other-columns/m-p/1744412#M36262</link>
    <description>&lt;P&gt;If possible then could you please share the pbix file so that I can look into it..?&lt;/P&gt;</description>
    <pubDate>Thu, 25 Mar 2021 04:45:47 GMT</pubDate>
    <dc:creator>Angith_Nair</dc:creator>
    <dc:date>2021-03-25T04:45:47Z</dc:date>
    <item>
      <title>Conditional formatting based on two other columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-based-on-two-other-columns/m-p/1740354#M36159</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a data table containing numbers. These correspond to some SQL that works out how days have passed from another date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a calculated column that shows how many days have passed since the orginal date until today.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to highlight a cell in red if two criteria are met&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The column is a zero 0 (no date entered).&lt;/LI&gt;&lt;LI&gt;The elapsed time from the original date is 2 or above.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I want to highlight the same cell in green if the following criteria are met&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The column is a zero&lt;/LI&gt;&lt;LI&gt;The elapsed time is less than 2.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have tried to create a measure bbut with no luck, any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 17:40:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-based-on-two-other-columns/m-p/1740354#M36159</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-23T17:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting based on two other columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-based-on-two-other-columns/m-p/1741188#M36190</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Create a new column like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;New column = &lt;BR /&gt;var _diff = datediff([orginal date], today(), day)&lt;BR /&gt;return &lt;BR /&gt;Switch ( True(),&lt;BR /&gt;isblank([orginal date]) &amp;amp;&amp;amp; [column] =0 , "Red",&lt;BR /&gt;[column] =0 , "Green"&lt;BR /&gt;_diff &amp;gt; 2, "Red" ,&lt;BR /&gt;"Green"&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use in conditional formatting with "Field Value" Option with Max aggregation&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer video for steps : &lt;A href="https://www.youtube.com/watch?v=RqBb5eBf_I4" target="_blank"&gt;https://www.youtube.com/watch?v=RqBb5eBf_I4&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 04:23:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-based-on-two-other-columns/m-p/1741188#M36190</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-03-24T04:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting based on two other columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-based-on-two-other-columns/m-p/1741973#M36198</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Let's say the new calculated column name is Column1. You have to create a measure like this..&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure =
VAR diff =
    DATEDIFF ( Table[orginal date], TODAY (), DAY )
RETURN
    IF (
        OR ( ISBLANK ( Table[Column1] ), diff &amp;gt;= 2 ),
        "#bf212e",
        IF ( OR ( Table[Column1] = 0, diff &amp;lt; 2 ), "#18a845" )
    )&lt;/LI-CODE&gt;&lt;P&gt;Use this measure in conditional formatting as a field value option.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 09:25:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-based-on-two-other-columns/m-p/1741973#M36198</guid>
      <dc:creator>Angith_Nair</dc:creator>
      <dc:date>2021-03-24T09:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting based on two other columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-based-on-two-other-columns/m-p/1742845#M36217</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;im getting a an error "failed to resolve name 'diff. It is not a valid table, variable or fuction name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Colour Instruction to first site visit = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;var _diff = datediff(Query1[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;Switch ( True(),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;isblank(Query1[Instruction]) &amp;amp;&amp;amp; Query1[KPI_1_Working_Days_from_Instruction_to_First Site_Visit] =0 , "Red",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Query1[KPI_1_Working_Days_from_Instruction_to_First Site_Visit] =0 , "Green",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;diff &amp;gt; 2, "Red" ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"Green"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks very much&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Mar 2021 14:19:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-based-on-two-other-columns/m-p/1742845#M36217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-24T14:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting based on two other columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-based-on-two-other-columns/m-p/1742857#M36218</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;all of the fields are now red.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Colour Instruction to first site visit = &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[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 (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;OR ( ISBLANK ( Query1[KPI_1_Working_Days_from_Instruction_to_First Site_Visit] ), diff &amp;gt;= 2 ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"#bf212e",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF ( OR ( Query1[KPI_1_Working_Days_from_Instruction_to_First Site_Visit] = 0.00, diff &amp;lt; 2 ), "#18a845" )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I only want it to colour if it is greater than 2 from the orginal date and contains 0.00&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks very much&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Mar 2021 14:19:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-based-on-two-other-columns/m-p/1742857#M36218</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-24T14:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting based on two other columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-based-on-two-other-columns/m-p/1744412#M36262</link>
      <description>&lt;P&gt;If possible then could you please share the pbix file so that I can look into it..?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 04:45:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-based-on-two-other-columns/m-p/1744412#M36262</guid>
      <dc:creator>Angith_Nair</dc:creator>
      <dc:date>2021-03-25T04:45:47Z</dc:date>
    </item>
  </channel>
</rss>

