<?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: Count based on dates in two tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-dates-in-two-tables/m-p/4064865#M161369</link>
    <description>&lt;P&gt;CALCULATE(&lt;BR /&gt;COUNTROWS('Orders'),&lt;BR /&gt;FILTER(&lt;BR /&gt;'Orders',&lt;BR /&gt;'Orders'[SubmissionDate] &amp;lt;=&lt;BR /&gt;RELATED('Completions'[CompletionDate])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Sat, 27 Jul 2024 10:13:39 GMT</pubDate>
    <dc:creator>Gaga_Jin</dc:creator>
    <dc:date>2024-07-27T10:13:39Z</dc:date>
    <item>
      <title>Count based on dates in two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-dates-in-two-tables/m-p/4064444#M161361</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have two tables:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;One has an order ID and a submission date&lt;/LI&gt;&lt;LI&gt;The other has a Completion date.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to write a DAX measure to count orders where the submission date is on or before the completion date, but I'm running into an error in my syntax. Here's what I'm trying so far:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;orders pre = 
CALCULATE(
    DISTINCTCOUNT(Table1[JOB_ID])
       , Table2[Completion Date] &amp;gt;= Table1[JOB_CREATE_DATE]&lt;/LI-CODE&gt;&lt;P&gt;Is this possible? Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 21:17:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-dates-in-two-tables/m-p/4064444#M161361</guid>
      <dc:creator>zhris</dc:creator>
      <dc:date>2024-07-26T21:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Count based on dates in two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-dates-in-two-tables/m-p/4064485#M161364</link>
      <description>&lt;P&gt;You need to share details on the tables, the relationships between them and which columns are part of the relationship .&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 22:42:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-dates-in-two-tables/m-p/4064485#M161364</guid>
      <dc:creator>MattAllington</dc:creator>
      <dc:date>2024-07-26T22:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Count based on dates in two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-dates-in-two-tables/m-p/4064865#M161369</link>
      <description>&lt;P&gt;CALCULATE(&lt;BR /&gt;COUNTROWS('Orders'),&lt;BR /&gt;FILTER(&lt;BR /&gt;'Orders',&lt;BR /&gt;'Orders'[SubmissionDate] &amp;lt;=&lt;BR /&gt;RELATED('Completions'[CompletionDate])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2024 10:13:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-dates-in-two-tables/m-p/4064865#M161369</guid>
      <dc:creator>Gaga_Jin</dc:creator>
      <dc:date>2024-07-27T10:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Count based on dates in two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-dates-in-two-tables/m-p/4066025#M161412</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="781570" data-lia-user-login="zhris" class="lia-mention lia-mention-user"&gt;zhris&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sample data:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;orders pre = 
CALCULATE(
DISTINCTCOUNT(Completion[Order ID]),FILTER(Completion,[Completion Date]&amp;gt;=MAX(Submission[Submission date])))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expected?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 02:40:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-dates-in-two-tables/m-p/4066025#M161412</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-29T02:40:31Z</dc:date>
    </item>
  </channel>
</rss>

