<?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 DAX Date Filters based on two date columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Date-Filters-based-on-two-date-columns/m-p/3991686#M154877</link>
    <description>&lt;P&gt;Hi Brilliant folks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having trouble determining a correct conditional filter for two date filters for an Outstanding Balance:&amp;nbsp;&lt;/P&gt;&lt;P&gt;The two Date columns are:&lt;/P&gt;&lt;P&gt;1.) Month End Dates (April 30, May 31 etc...)&lt;/P&gt;&lt;P&gt;2.) Due Dates ; Ranges from 2020 to December 2024.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im working on a formula that calculates the Previous Months Outstanding Balance based on the following criteria:&lt;/P&gt;&lt;P&gt;The Due Date is less than or equal to the Current Month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is how do I accurately capture this criteria with two date fields?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; current_month = [Current Month]&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;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;([Prior_Outstanding], 'Table'[Month &amp;amp; Year (Due_Date)] &amp;lt;= current_month)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 13 Jun 2024 18:02:23 GMT</pubDate>
    <dc:creator>CracktheCode85</dc:creator>
    <dc:date>2024-06-13T18:02:23Z</dc:date>
    <item>
      <title>DAX Date Filters based on two date columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Date-Filters-based-on-two-date-columns/m-p/3991686#M154877</link>
      <description>&lt;P&gt;Hi Brilliant folks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having trouble determining a correct conditional filter for two date filters for an Outstanding Balance:&amp;nbsp;&lt;/P&gt;&lt;P&gt;The two Date columns are:&lt;/P&gt;&lt;P&gt;1.) Month End Dates (April 30, May 31 etc...)&lt;/P&gt;&lt;P&gt;2.) Due Dates ; Ranges from 2020 to December 2024.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im working on a formula that calculates the Previous Months Outstanding Balance based on the following criteria:&lt;/P&gt;&lt;P&gt;The Due Date is less than or equal to the Current Month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is how do I accurately capture this criteria with two date fields?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; current_month = [Current Month]&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;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;([Prior_Outstanding], 'Table'[Month &amp;amp; Year (Due_Date)] &amp;lt;= current_month)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Jun 2024 18:02:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Date-Filters-based-on-two-date-columns/m-p/3991686#M154877</guid>
      <dc:creator>CracktheCode85</dc:creator>
      <dc:date>2024-06-13T18:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Date Filters based on two date columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Date-Filters-based-on-two-date-columns/m-p/3992338#M154951</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="684198" data-lia-user-login="CracktheCode85" class="lia-mention lia-mention-user"&gt;CracktheCode85&lt;/a&gt; , &lt;/P&gt;
&lt;P&gt;Prefer a date table, assuming current month coming from selection of today&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Current Month&lt;/SPAN&gt; = if(isfiltered('Date'), Max('Date'[Date]), today()) &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Last month end date =&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; current_month = eomonth([Current Month],-1) &lt;BR /&gt;&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;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;([Prior_Outstanding], filter( all ('Date'), Date'[Date] = current_month)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;In case date and the table is not joined you can tables columns.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;You can also use closingbalancemonth&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Power BI closingbalancemonth closingbalancequarter closingbalanceyear, lastnonblankvalue- Closing Balance, Distibutre Target: &lt;A href="https://youtu.be/yPQ9UV37LOU" target="_blank"&gt;https://youtu.be/yPQ9UV37LOU&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Why previousmonth does not give result when datesmtd is giving it: &lt;A href="https://youtu.be/1KkoJehRVeg" target="_blank"&gt;https://youtu.be/1KkoJehRVeg&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :&lt;A href="https://youtu.be/OBf0rjpp5Hw" target="_blank"&gt;https://youtu.be/OBf0rjpp5Hw&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4" target="_blank"&gt;https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4&lt;/A&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :&lt;A href="https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions" target="_blank"&gt;radacad&lt;/A&gt; &lt;A href="https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/" target="_blank"&gt;sqlbi&lt;/A&gt; &lt;A href="https://www.youtube.com/playlist?list=PLPaNVDMhUXGYLz-w8ERQOo3KYARs7GgG-" target="_blank"&gt;My Video Series&lt;/A&gt; Appreciate your Kudos. &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 03:13:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Date-Filters-based-on-two-date-columns/m-p/3992338#M154951</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2024-06-14T03:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Date Filters based on two date columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Date-Filters-based-on-two-date-columns/m-p/3998625#M155644</link>
      <description>&lt;P&gt;Is it sandard practice to create a custom calendar for each dashboard build?&lt;BR /&gt;&lt;BR /&gt;Can I create a filter that says something like this:&lt;BR /&gt;Date (04/05/2024) is less than or equal to Age Date (Current Month-End).&lt;BR /&gt;These have two different data types so I don't think BI will agree with the logic I'm trying to make happen.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 16:20:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Date-Filters-based-on-two-date-columns/m-p/3998625#M155644</guid>
      <dc:creator>CracktheCode85</dc:creator>
      <dc:date>2024-06-18T16:20:54Z</dc:date>
    </item>
  </channel>
</rss>

