<?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 And, DateDiff in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/And-DateDiff/m-p/4269665#M169310</link>
    <description>&lt;DIV&gt;&lt;SPAN&gt;I need to determine which Expiration Date is 30 days out and highlight it. I was trying to write the formula below and then use "1", "0" in the conditional formatting. My formula doesn't work. Can anyone help please?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ApproachingDate = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;( AND ( NOT ISBLANK (( [Expiration Date] )), DATEDIFF (TODAY (),crcc5_permitcoordination[Expiration Date], DAY ) = 30, "1", "0" ))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 04 Nov 2024 20:36:52 GMT</pubDate>
    <dc:creator>PC2022</dc:creator>
    <dc:date>2024-11-04T20:36:52Z</dc:date>
    <item>
      <title>And, DateDiff</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/And-DateDiff/m-p/4269665#M169310</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;I need to determine which Expiration Date is 30 days out and highlight it. I was trying to write the formula below and then use "1", "0" in the conditional formatting. My formula doesn't work. Can anyone help please?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ApproachingDate = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;( AND ( NOT ISBLANK (( [Expiration Date] )), DATEDIFF (TODAY (),crcc5_permitcoordination[Expiration Date], DAY ) = 30, "1", "0" ))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Nov 2024 20:36:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/And-DateDiff/m-p/4269665#M169310</guid>
      <dc:creator>PC2022</dc:creator>
      <dc:date>2024-11-04T20:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: And, DateDiff</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/And-DateDiff/m-p/4269701#M169312</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="403139" data-lia-user-login="PC2022" class="lia-mention lia-mention-user"&gt;PC2022&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try to apply the following measure as the conditional background color to&amp;nbsp; [Expiration Date] field of your visual:&lt;/P&gt;
&lt;P&gt;ApproachingDate = IF&lt;/P&gt;
&lt;P&gt;( AND ( NOT ISBLANK (( [Expiration Date] )), DATEDIFF (TODAY (),crcc5_permitcoordination[Expiration Date], DAY ) = 30, "red" )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;like this:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt; &lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 21:16:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/And-DateDiff/m-p/4269701#M169312</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2024-11-04T21:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: And, DateDiff</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/And-DateDiff/m-p/4270793#M169365</link>
      <description>&lt;P&gt;DAX didn't work, gave this error: too many arguements were passed to the AND function, The max argument count for the function is 2.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 13:40:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/And-DateDiff/m-p/4270793#M169365</guid>
      <dc:creator>PC2022</dc:creator>
      <dc:date>2024-11-05T13:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: And, DateDiff</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/And-DateDiff/m-p/4270817#M169366</link>
      <description>&lt;P&gt;I changed DAX and it gave me no errors:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ApproachingDate =&lt;/SPAN&gt; &lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;( &lt;/SPAN&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt; &lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt; (( &lt;/SPAN&gt;&lt;SPAN&gt;crcc5_permitcoordination&lt;/SPAN&gt;&lt;SPAN&gt;[Expiration Date]&lt;/SPAN&gt;&lt;SPAN&gt; )) || &lt;/SPAN&gt;&lt;SPAN&gt;DATEDIFF&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt; (),&lt;/SPAN&gt;&lt;SPAN&gt;crcc5_permitcoordination&lt;/SPAN&gt;&lt;SPAN&gt;[Expiration Date]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;DAY&lt;/SPAN&gt;&lt;SPAN&gt; ) = &lt;/SPAN&gt;&lt;SPAN&gt;180&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"red"&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;But when i applied conditional formatting it highlighted all rows except for blanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Nov 2024 13:52:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/And-DateDiff/m-p/4270817#M169366</guid>
      <dc:creator>PC2022</dc:creator>
      <dc:date>2024-11-05T13:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: And, DateDiff</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/And-DateDiff/m-p/4270826#M169367</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="403139" data-lia-user-login="PC2022" class="lia-mention lia-mention-user"&gt;PC2022&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;depending on your business logic, you need to change it to:&lt;/P&gt;
&lt;P&gt;ApproachingDate = IF&lt;/P&gt;
&lt;P&gt;&amp;nbsp;( NOT ISBLANK (( crcc5_permitcoordination[Expiration Date] )) &lt;STRONG&gt;&amp;amp;&amp;amp;&lt;/STRONG&gt; DATEDIFF (TODAY (),crcc5_permitcoordination[Expiration Date], DAY ) &amp;gt;=30, "red" )&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 13:58:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/And-DateDiff/m-p/4270826#M169367</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2024-11-05T13:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: And, DateDiff</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/And-DateDiff/m-p/4270883#M169374</link>
      <description>&lt;P&gt;I added one more &amp;amp;&amp;amp; and it worked! Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 14:50:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/And-DateDiff/m-p/4270883#M169374</guid>
      <dc:creator>PC2022</dc:creator>
      <dc:date>2024-11-05T14:50:50Z</dc:date>
    </item>
  </channel>
</rss>

