<?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 Calculate Datediff between two tables with Many to Many Relationship in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Datediff-between-two-tables-with-Many-to-Many/m-p/1118156#M16407</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to calculate the number of hours betwee two dates in two tables with a many to many relationship. The relationship between the tables is based on encounter id. Table 1 contains activation events and Table 2 contains drug administrations for each encounter. I need to determine whether there were 24 hours between the activation time in Table 1 and a related administration time in Table 2 for encounters. I can't figure out how to approach this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is sincerely appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 25 May 2020 16:19:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-25T16:19:27Z</dc:date>
    <item>
      <title>Calculate Datediff between two tables with Many to Many Relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Datediff-between-two-tables-with-Many-to-Many/m-p/1118156#M16407</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to calculate the number of hours betwee two dates in two tables with a many to many relationship. The relationship between the tables is based on encounter id. Table 1 contains activation events and Table 2 contains drug administrations for each encounter. I need to determine whether there were 24 hours between the activation time in Table 1 and a related administration time in Table 2 for encounters. I can't figure out how to approach this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is sincerely appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 16:19:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Datediff-between-two-tables-with-Many-to-Many/m-p/1118156#M16407</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-25T16:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Datediff between two tables with Many to Many Relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Datediff-between-two-tables-with-Many-to-Many/m-p/1118180#M16412</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First thing, you should eliminate your many-to-many if at all possible. You can do this by creating a bridge table of distinct values between the two tables or you can create a combination key using concatenation of 2 or more columns.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 16:40:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Datediff-between-two-tables-with-Many-to-Many/m-p/1118180#M16412</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-05-25T16:40:55Z</dc:date>
    </item>
  </channel>
</rss>

