<?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: Dax for Dates RAG Status in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-Dates-RAG-Status/m-p/3476632#M132809</link>
    <description>&lt;P&gt;hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="593913" data-lia-user-login="AMBP1973" class="lia-mention lia-mention-user"&gt;AMBP1973&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please refer&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Conditional-formatting/m-p/3465274#M1148117" target="_blank" rel="noopener"&gt;Here&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you get idea how to do conditional formatting using DAX.&lt;/P&gt;&lt;P&gt;if still not get idea provide some data&lt;/P&gt;</description>
    <pubDate>Sat, 14 Oct 2023 07:59:17 GMT</pubDate>
    <dc:creator>Dangar332</dc:creator>
    <dc:date>2023-10-14T07:59:17Z</dc:date>
    <item>
      <title>Dax for Dates RAG Status</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-Dates-RAG-Status/m-p/3476624#M132808</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I am looking to add conditional formatting to a date column to highlight due dates using Red, Abber and Green.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My date column is called 'Cancellation Date'. I would like to highlight dates as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anything due before today = Red&lt;/P&gt;&lt;P&gt;Anything due in the next 6 months = Amber&lt;/P&gt;&lt;P&gt;Anything due in more than 6 months = Green&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance would be much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2023 07:24:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-Dates-RAG-Status/m-p/3476624#M132808</guid>
      <dc:creator>AMBP1973</dc:creator>
      <dc:date>2023-10-14T07:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dax for Dates RAG Status</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-Dates-RAG-Status/m-p/3476632#M132809</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="593913" data-lia-user-login="AMBP1973" class="lia-mention lia-mention-user"&gt;AMBP1973&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please refer&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Conditional-formatting/m-p/3465274#M1148117" target="_blank" rel="noopener"&gt;Here&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you get idea how to do conditional formatting using DAX.&lt;/P&gt;&lt;P&gt;if still not get idea provide some data&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2023 07:59:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-Dates-RAG-Status/m-p/3476632#M132809</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-10-14T07:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dax for Dates RAG Status</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-Dates-RAG-Status/m-p/3476647#M132810</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;. I just thought this could be acheived as I have seen it in a simular question before, but it wasn't quite what I was after. As listed in my question this would be based on a date column&amp;nbsp;called 'Cancellation Date'. I would like to highlight dates as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anything due before today = Red&lt;/P&gt;&lt;P&gt;Anything due in the next 6 months = Amber&lt;/P&gt;&lt;P&gt;Anything due in more than 6 months = Green&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thankyou in advance&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2023 08:34:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-Dates-RAG-Status/m-p/3476647#M132810</guid>
      <dc:creator>AMBP1973</dc:creator>
      <dc:date>2023-10-14T08:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dax for Dates RAG Status</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-Dates-RAG-Status/m-p/3476658#M132811</link>
      <description>&lt;P&gt;hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="593913" data-lia-user-login="AMBP1973" class="lia-mention lia-mention-user"&gt;AMBP1973&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try below Dax code&amp;nbsp; and adjust your table and column name&lt;BR /&gt;output =&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;a&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;DATEDIFF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt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gt;&lt;/DIV&gt;&lt;DIV&gt;follow below step&lt;BR /&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;chane gradient to field value&lt;/P&gt;&lt;img /&gt;&lt;P&gt;choose your measure name and press ok.&lt;/P&gt;&lt;P&gt;you get your result.&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;refer&amp;nbsp;&amp;nbsp;&lt;A href="https://drive.google.com/file/d/1JwHEFqLwrM_5FvTLzIbrEvjGmo_E9FXM/view?usp=sharing" target="_self"&gt;Here&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; to download pbix. file of your requirnment.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly. Appreciate your kudos.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 14 Oct 2023 08:55:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-Dates-RAG-Status/m-p/3476658#M132811</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-10-14T08:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dax for Dates RAG Status</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-Dates-RAG-Status/m-p/3480120#M133017</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;This is amazing, thankyou so much. It is mainly working well except the dates before today are highlighting yellow instead of red? Any suggestions please?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 03:48:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-Dates-RAG-Status/m-p/3480120#M133017</guid>
      <dc:creator>AMBP1973</dc:creator>
      <dc:date>2023-10-17T03:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dax for Dates RAG Status</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-Dates-RAG-Status/m-p/3480178#M133018</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="593913" data-lia-user-login="AMBP1973" class="lia-mention lia-mention-user"&gt;AMBP1973&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;check below it's correct&amp;nbsp; compare today date . i mention today date(to) in image&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;if you still not get your answer provide some data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 04:52:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-Dates-RAG-Status/m-p/3480178#M133018</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-10-17T04:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dax for Dates RAG Status</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-Dates-RAG-Status/m-p/3480198#M133019</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;, I have checked the DAX I input and it is exactly as you have stated. Here is a snapshot of the cancellation date colomun. Thankyou for your ongoing assistance.&amp;nbsp;&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>Tue, 17 Oct 2023 05:04:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-Dates-RAG-Status/m-p/3480198#M133019</guid>
      <dc:creator>AMBP1973</dc:creator>
      <dc:date>2023-10-17T05:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dax for Dates RAG Status</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-Dates-RAG-Status/m-p/3480244#M133026</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="593913" data-lia-user-login="AMBP1973" class="lia-mention lia-mention-user"&gt;AMBP1973&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;try below code&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT color="#339966"&gt;&lt;SPAN&gt;output =&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#339966"&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;a&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;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'rag'&lt;/SPAN&gt;&lt;SPAN&gt;[date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;MONTH&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&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ONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#339966"&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#339966"&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#339966"&gt;&lt;SPAN&gt;b&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#339966"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;Here you get only red and green combination becuase in your data which you provide none of date lies bw 0 to 6 month .&lt;/DIV&gt;&lt;DIV&gt;i already calculate measurte which indicate difference bw today and due date&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly. Appreciate your kudos&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Oct 2023 05:39:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-Dates-RAG-Status/m-p/3480244#M133026</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-10-17T05:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dax for Dates RAG Status</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-Dates-RAG-Status/m-p/3480307#M133028</link>
      <description>&lt;P&gt;is this solution or still not get answer ?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 06:13:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-Dates-RAG-Status/m-p/3480307#M133028</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-10-17T06:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dax for Dates RAG Status</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-Dates-RAG-Status/m-p/3480669#M133049</link>
      <description>&lt;P&gt;Amazing. Thankyou&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;, really appreciate your assistance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 08:46:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-Dates-RAG-Status/m-p/3480669#M133049</guid>
      <dc:creator>AMBP1973</dc:creator>
      <dc:date>2023-10-17T08:46:47Z</dc:date>
    </item>
  </channel>
</rss>

