<?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: Determine if a date falls within one of many date intervals in another table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-a-date-falls-within-one-of-many-date-intervals-in/m-p/3195705#M116009</link>
    <description>&lt;P&gt;You are amazing. Quite correct, when I use the ID from the Transactions table it is correct. Thank YOU SO MUCH. This really has helped me a lot.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2023 11:55:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-04-19T11:55:12Z</dc:date>
    <item>
      <title>Determine if a date falls within one of many date intervals in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-a-date-falls-within-one-of-many-date-intervals-in/m-p/3194399#M115922</link>
      <description>&lt;P&gt;I would like the following output:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Activity&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Planned Date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;The&amp;nbsp; "Planned Date" is within a loan period&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Activity1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2023-02-28&amp;nbsp; &am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;/TD&gt;&lt;TD&gt;FALSE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;Activity3&lt;/TD&gt;&lt;TD&gt;2023-11-14&lt;/TD&gt;&lt;TD&gt;TRUE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;Activity4&lt;/TD&gt;&lt;TD&gt;2024-11-11&lt;/TD&gt;&lt;TD&gt;TRUE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;Activity3&lt;/TD&gt;&lt;TD&gt;2024-03-15&lt;/TD&gt;&lt;TD&gt;TRUE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;Activity4&lt;/TD&gt;&lt;TD&gt;2024-09-20&lt;/TD&gt;&lt;TD&gt;FALSE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;Activity1&lt;/TD&gt;&lt;TD&gt;2023-09-29&lt;/TD&gt;&lt;TD&gt;FALSE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;Activity4&lt;/TD&gt;&lt;TD&gt;2024-10-27&lt;/TD&gt;&lt;TD&gt;FALSE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;Activity2&lt;/TD&gt;&lt;TD&gt;2027-12-31&lt;/TD&gt;&lt;TD&gt;FALSE&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I can't seem to be able to work it out.&lt;BR /&gt;&lt;BR /&gt;The problem is that there are multiple Planned Dates per ID in the Activity TAble, and Multiple Loan Intervals in the Loan Table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are my fields/atbles and the link to the Power BI report is below:&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here is a link to download the Power BI Report:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.swisstransfer.com/d/e2c352c5-6edf-4012-8037-149997ea8f88" target="_blank" rel="noopener"&gt;https://www.swisstransfer.com/d/e2c352c5-6edf-4012-8037-149997ea8f88&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 19:59:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-a-date-falls-within-one-of-many-date-intervals-in/m-p/3194399#M115922</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-18T19:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if a date falls within one of many date intervals in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-a-date-falls-within-one-of-many-date-intervals-in/m-p/3195382#M115990</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You can try to create a Measure in your Activity table with below expression:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Activity in Intervals =&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; VAR _SelectedStart = SELECTEDVALUE(Activity[Planned Date])&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; VAR _EarlyStart = MIN(Interval[Loan Start])&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; VAR _EarlyFinish = MAX(Interval[Loan End])&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; VAR _Table =&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ADDCOLUMNS(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Activity,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "InSelection",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SWITCH(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TRUE(),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ISBLANK(_EarlyStart) || ISBLANK(_EarlyFinish), FALSE(),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_EarlyStart &amp;gt;= _SelectedStart || _EarlyFinish &amp;gt;= _SelectedStart, TRUE(),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FALSE()&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/P&gt;&lt;P&gt;RETURN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SELECTCOLUMNS(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _Table,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Selected", [InSelection]&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please refer to the below screenshot for the same.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Now add this measure in the “Activity Table (multiple activities/planned dates per ID)” table and it will show True if it falls within Interval Date Start to Interval End range otherwise shows False.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please refer to the below screenshot for the same.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If this answer helps, please mark it as an Accepted Solution so it would help others to find the solution.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;P&gt;Inogic Professional Service Division&lt;/P&gt;&lt;P&gt;An expert technical extension for your techno-functional business needs&lt;/P&gt;&lt;P&gt;Power Platform/Dynamics 365 CRM&lt;/P&gt;&lt;P&gt;Drop an email at &lt;A href="mailto:crm@inogic.com" target="_blank"&gt;crm@inogic.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Service:&amp;nbsp; &lt;A href="http://www.inogic.com/services/" target="_blank"&gt;http://www.inogic.com/services/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Power Platform/Dynamics 365 CRM Tips and Tricks:&amp;nbsp; &lt;A href="http://www.inogic.com/blog/" target="_blank"&gt;http://www.inogic.com/blog/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 09:09:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-a-date-falls-within-one-of-many-date-intervals-in/m-p/3195382#M115990</guid>
      <dc:creator>SamInogic</dc:creator>
      <dc:date>2023-04-19T09:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if a date falls within one of many date intervals in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-a-date-falls-within-one-of-many-date-intervals-in/m-p/3195444#M115993</link>
      <description>&lt;P&gt;Hmmm, when I apply the suggested measure (THANK YOU so much :-)) I don't get the same results as in you r screenshot. Your screenshot is correct but I am getting the following (wrong) results in for example ID 2 Activity 3:&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;I tried harmonising the date format using the FORMAT function but this didn't help either.&lt;BR /&gt;&lt;BR /&gt;Any suggestions as to why we are getting different results?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 09:33:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-a-date-falls-within-one-of-many-date-intervals-in/m-p/3195444#M115993</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-19T09:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if a date falls within one of many date intervals in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-a-date-falls-within-one-of-many-date-intervals-in/m-p/3195573#M116000</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I have used your attached report and added the newly created Measure in first table you have in your report.&amp;nbsp;&lt;BR /&gt;Also, as per your latest screenshot it seems that you have added a seperate table with columns as "ID", "Activity", "Planned Date", "Activity in Intervals" and I noticed that if we select ID from Activity table it shows the data as you given the screenshot and if we change it with ID from Transaction table it shows proper True false value.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can you also verify if your table have ID from Transaction table where you are verifying the true/false interval fall measure?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Inogic Professional Service Division&lt;/P&gt;&lt;P&gt;An expert technical extension for your techno-functional business needs&lt;/P&gt;&lt;P&gt;Power Platform/Dynamics 365 CRM&lt;/P&gt;&lt;P&gt;Drop an email at &lt;A href="mailto:crm@inogic.com" target="_blank"&gt;crm@inogic.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Service:&amp;nbsp; &lt;A href="http://www.inogic.com/services/" target="_blank"&gt;http://www.inogic.com/services/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Power Platform/Dynamics 365 CRM Tips and Tricks:&amp;nbsp; &lt;A href="http://www.inogic.com/blog/" target="_blank"&gt;http://www.inogic.com/blog/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 10:34:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-a-date-falls-within-one-of-many-date-intervals-in/m-p/3195573#M116000</guid>
      <dc:creator>SamInogic</dc:creator>
      <dc:date>2023-04-19T10:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if a date falls within one of many date intervals in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-a-date-falls-within-one-of-many-date-intervals-in/m-p/3195705#M116009</link>
      <description>&lt;P&gt;You are amazing. Quite correct, when I use the ID from the Transactions table it is correct. Thank YOU SO MUCH. This really has helped me a lot.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 11:55:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-a-date-falls-within-one-of-many-date-intervals-in/m-p/3195705#M116009</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-19T11:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if a date falls within one of many date intervals in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-a-date-falls-within-one-of-many-date-intervals-in/m-p/3196598#M116076</link>
      <description>&lt;P&gt;Hi again. I am sorry that I am getting the wrong values when a planned date is inbetween activities.&lt;BR /&gt;&lt;BR /&gt;I have added a new ID "9" with one value before minimum date and one value inbetween activities. Then I am getting the wrong answer:&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;Here is the link to the updated file:&lt;BR /&gt;&lt;A title="Planned Activities Updated" href="https://www.swisstransfer.com/d/1aa2dcad-1654-4ec2-9f70-f3512509d6a6" target="_self"&gt;https://www.swisstransfer.com/d/1aa2dcad-1654-4ec2-9f70-f3512509d6a6&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Do you have an idea as to how to correct this?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 20:54:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-a-date-falls-within-one-of-many-date-intervals-in/m-p/3196598#M116076</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-19T20:54:12Z</dc:date>
    </item>
  </channel>
</rss>

