<?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: if a date is between 2 dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/if-a-date-is-between-2-dates/m-p/1675130#M34303</link>
    <description>&lt;P&gt;Move you logic from the date table to your measures.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Feb 2021 15:43:08 GMT</pubDate>
    <dc:creator>JW_van_Holst</dc:creator>
    <dc:date>2021-02-18T15:43:08Z</dc:date>
    <item>
      <title>if a date is between 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/if-a-date-is-between-2-dates/m-p/1674983#M34291</link>
      <description>&lt;P&gt;Hello.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 tables:&lt;/P&gt;&lt;P&gt;- "Dates": a date table with 3 columns: Date (calendar dates); inferiordate (calendar date - 2 days + 16h); superiordate (calendar date - 1 day + 15h59);&lt;/P&gt;&lt;P&gt;correcteddate: (&lt;/P&gt;&lt;P&gt;if weekday of superiordate = saturday; adds 3 days to superiordate;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if weekday of superiordate = sunday; adds 2 days to superiordate;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if weekday of superiordate = monday; adds 1 days to superiordate;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if weekday of superiordate = friday; adds 3 days to superiordate;&amp;nbsp;&lt;/P&gt;&lt;P&gt;else; adds 1 days to superiordate;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This means that the correctedate will have duplicate dates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, I have other table with production data and with "End of assignment" timestamp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to do the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If [end of assignment] is between inferiordate and superiordate, assume correcteddate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that I can't create relationships between the tables because I have repeteated dates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 14:42:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/if-a-date-is-between-2-dates/m-p/1674983#M34291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-18T14:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: if a date is between 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/if-a-date-is-between-2-dates/m-p/1675130#M34303</link>
      <description>&lt;P&gt;Move you logic from the date table to your measures.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 15:43:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/if-a-date-is-between-2-dates/m-p/1675130#M34303</guid>
      <dc:creator>JW_van_Holst</dc:creator>
      <dc:date>2021-02-18T15:43:08Z</dc:date>
    </item>
  </channel>
</rss>

