<?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: Filter visuals by 2 date columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-visuals-by-2-date-columns/m-p/4675058#M179043</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="882998" data-lia-user-login="v-ssriganesh" class="lia-mention lia-mention-user"&gt;v-ssriganesh&lt;/a&gt;&amp;nbsp;Thank you very much. I only used the measure in the file you provided and modified it a little bit since I had already done the "Date Periods" structure. Now i need to set the filter to "is not 1" to work but that is fine with me. Appreciate the help!&lt;/P&gt;</description>
    <pubDate>Wed, 30 Apr 2025 16:19:55 GMT</pubDate>
    <dc:creator>aey</dc:creator>
    <dc:date>2025-04-30T16:19:55Z</dc:date>
    <item>
      <title>Filter visuals by 2 date columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-visuals-by-2-date-columns/m-p/4673043#M178962</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to filter measures in my Dashboard by 2 date columns. I have the columns "date of invoice sent" and "date of invoice paid". For my reporting, I need to set the filter so that "date of invoice sent" is my reporting period (e.g. 01.01.2025-30.04.2025) but at the sime time the "date of invoice paid" needs to either be blank or after 30.04.2025. I am trying to get this done through a date slicer if it is possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do that? I could not find any solutions while searching through the forum and internet. Would appreciate any help!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 13:18:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-visuals-by-2-date-columns/m-p/4673043#M178962</guid>
      <dc:creator>aey</dc:creator>
      <dc:date>2025-04-29T13:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filter visuals by 2 date columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-visuals-by-2-date-columns/m-p/4673057#M178963</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1267868" data-lia-user-login="aey" class="lia-mention lia-mention-user"&gt;aey&lt;/a&gt;&amp;nbsp;Create a calculated column to determine if the "date of invoice paid" is either blank or after 30.04.2025&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;InvoicePaidStatus = &lt;BR /&gt;IF(&lt;BR /&gt;ISBLANK('Table'[date of invoice paid]) || 'Table'[date of invoice paid] &amp;gt; DATE(2025, 4, 30),&lt;BR /&gt;1,&lt;BR /&gt;0&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a measure to filter the data based on the "date of invoice sent" and the calculated column:&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;FilteredInvoices = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNTROWS('Table'),&lt;BR /&gt;'Table'[date of invoice sent] &amp;gt;= DATE(2025, 1, 1) &amp;amp;&amp;amp; 'Table'[date of invoice sent] &amp;lt;= DATE(2025, 4, 30),&lt;BR /&gt;'Table'[InvoicePaidStatus] = 1&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add a slicer to your report for the "date of invoice sent" and set the date range to your desired reporting period (e.g., 01.01.2025-30.04.2025).&lt;/P&gt;
&lt;P&gt;Use the measure in your visualizations to ensure that only the filtered data is displayed.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 13:26:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-visuals-by-2-date-columns/m-p/4673057#M178963</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-04-29T13:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filter visuals by 2 date columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-visuals-by-2-date-columns/m-p/4673078#M178964</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625922" data-lia-user-login="bhanu_gautam" class="lia-mention lia-mention-user"&gt;bhanu_gautam&lt;/a&gt;&amp;nbsp;thank you for the quick response!!&lt;BR /&gt;&lt;BR /&gt;Is it possible to have the reporting period dynamic? Right now I use a slicer for selecting the reporting period in combination to a date slicer that lets me use a custom period for "date of invoice sent". That slicer is connected to a date table that is related to my master table. (the additional filter for "date of invoice paid" is not included in the current version)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Slicers used in dashboard:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure in date table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 13:43:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-visuals-by-2-date-columns/m-p/4673078#M178964</guid>
      <dc:creator>aey</dc:creator>
      <dc:date>2025-04-29T13:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filter visuals by 2 date columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-visuals-by-2-date-columns/m-p/4673351#M178975</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1267868" data-lia-user-login="aey" class="lia-mention lia-mention-user"&gt;aey&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;place the following measure in the filter pane of the visual, select 'Is no blank' and apply tye filter&lt;/P&gt;
&lt;P&gt;Due Payments Filter =&lt;BR /&gt;COUNTROWS (&lt;BR /&gt;FILTER (&lt;BR /&gt;'MASTER',&lt;BR /&gt;'MASTER'[date of invoice paiddd/mm/yy]&lt;BR /&gt;&amp;gt; MAX ( 'Date Periods - Date of Invoice sent'[Date of Invoice sentdd/mm/yy] )&lt;BR /&gt;|| 'MASTER'[date of invoice paiddd/mm/yy] = BLANK ()&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 17:34:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-visuals-by-2-date-columns/m-p/4673351#M178975</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2025-04-29T17:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filter visuals by 2 date columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-visuals-by-2-date-columns/m-p/4673862#M179001</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1267868" data-lia-user-login="aey" class="lia-mention lia-mention-user"&gt;aey&lt;/a&gt;,&lt;BR /&gt;Thank you for sharing your scenario in the community forum.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I’ve reproduced your requirement in Power BI and validated the logic using sample data. The expected output is achieved successfully invoices are correctly filtered based on the selected reporting period such that:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Only those invoices are shown where the 'Date of Invoice Sent' falls within the selected period.&lt;/LI&gt;
&lt;LI&gt;And the 'Date of Invoice Paid' is either blank or after the reporting period ends.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;For your reference, I’ve attached a &lt;STRONG&gt;.pbix &lt;/STRONG&gt;file demonstrating this logic end-to-end, including:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Sample MASTER and Date Period tables.&lt;/LI&gt;
&lt;LI&gt;The DAX measure [IsValidInvoice] used for filtering.&lt;/LI&gt;
&lt;LI&gt;A working visual that dynamically updates based on the selected reporting period.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If this information is helpful, please &lt;STRONG&gt;“Accept as solution”&lt;/STRONG&gt; and give a &lt;STRONG&gt;"kudos"&lt;/STRONG&gt; to assist other community members in resolving similar issues more efficiently.&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 05:29:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-visuals-by-2-date-columns/m-p/4673862#M179001</guid>
      <dc:creator>v-ssriganesh</dc:creator>
      <dc:date>2025-04-30T05:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Filter visuals by 2 date columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-visuals-by-2-date-columns/m-p/4674953#M179040</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;I have tried using this method but it still displayed invoices that were paid in the reporting period. Do you happen to know why this might happen?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 14:51:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-visuals-by-2-date-columns/m-p/4674953#M179040</guid>
      <dc:creator>aey</dc:creator>
      <dc:date>2025-04-30T14:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Filter visuals by 2 date columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-visuals-by-2-date-columns/m-p/4675058#M179043</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="882998" data-lia-user-login="v-ssriganesh" class="lia-mention lia-mention-user"&gt;v-ssriganesh&lt;/a&gt;&amp;nbsp;Thank you very much. I only used the measure in the file you provided and modified it a little bit since I had already done the "Date Periods" structure. Now i need to set the filter to "is not 1" to work but that is fine with me. Appreciate the help!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 16:19:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-visuals-by-2-date-columns/m-p/4675058#M179043</guid>
      <dc:creator>aey</dc:creator>
      <dc:date>2025-04-30T16:19:55Z</dc:date>
    </item>
  </channel>
</rss>

