<?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: Create column based on difference between two dates from two tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-column-based-on-difference-between-two-dates-from-two/m-p/1918196#M41562</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Many to Many relationship comment-&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will look into cleansing the data, but we recieve it with values that have duplicates, from Receipt ID to another version of Receipt ID. At the moment, we cannot cleanse it and must have it as Many-Many.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Formula-&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are trying to get the First Date from "Final Merger", and compare the date to Export Worksheet.&lt;BR /&gt;So for example, We have "Frist Date, which is June 23. We want to know the when the next workday is,&lt;BR /&gt;so we created a column in our Date Table to have the next work day.&lt;BR /&gt;We then want to compare if the date the product was received (Second Date) is on time or not on time.&lt;BR /&gt;Our goal was to do an Greater than if statement.&lt;/P&gt;&lt;P&gt;Another example below.&lt;/P&gt;&lt;P&gt;IF(Second Date&amp;gt;Next Workday),"Shipment has passed date","Shipment was received on time")&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Final Merger&lt;/TD&gt;&lt;TD&gt;Export Worksheet&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;First&lt;/TD&gt;&lt;TD&gt;Inventory Stored&lt;/TD&gt;&lt;TD&gt;Next Workday&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2021-02-10 0:00&lt;/TD&gt;&lt;TD&gt;2021-02-11 0:00&lt;/TD&gt;&lt;TD&gt;2021-02-11 0:00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Wed, 23 Jun 2021 18:15:30 GMT</pubDate>
    <dc:creator>Swiftglade</dc:creator>
    <dc:date>2021-06-23T18:15:30Z</dc:date>
    <item>
      <title>Create column based on difference between two dates from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-column-based-on-difference-between-two-dates-from-two/m-p/1918128#M41560</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a Calculated column to track the difference between two dates from two different columns. The goal is to find when a shipment has been recieved (Final Merger) and when the product has been recieved and put away (Export Worksheet). I am trying to create a calcuated column using an if statement, however i run into the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The If statement is created within Export OR Final Merger&lt;/P&gt;&lt;P&gt;1. Wont allow me to select multiple tables in my If Statement. If I select either fields, I wont be able to select the other table.&lt;/P&gt;&lt;P&gt;2. Error - "Cannot Find (Column Name)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Tables&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Table&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Column&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Type&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Final_Merger&lt;/TD&gt;&lt;TD&gt;First Date&lt;/TD&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Export Worksheet&lt;/TD&gt;&lt;TD&gt;Second Date&lt;/TD&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Date Dimension&lt;/TD&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;References&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;First Table&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Second Table&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Column&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Relationship&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Final_Merger&lt;/TD&gt;&lt;TD&gt;Export Worksheet&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;Receipt ID&lt;/TD&gt;&lt;TD&gt;Many to Many&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Final Merger&lt;/TD&gt;&lt;TD&gt;Date Dimension&lt;/TD&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Many to One&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 16:55:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-column-based-on-difference-between-two-dates-from-two/m-p/1918128#M41560</guid>
      <dc:creator>Swiftglade</dc:creator>
      <dc:date>2021-06-23T16:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create column based on difference between two dates from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-column-based-on-difference-between-two-dates-from-two/m-p/1918163#M41561</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="308966" data-lia-user-login="Swiftglade" class="lia-mention lia-mention-user"&gt;Swiftglade&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I suggest you avoid creating Many-to-Many relationships. If you can share the formula, it will be clear enough.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 17:06:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-column-based-on-difference-between-two-dates-from-two/m-p/1918163#M41561</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-06-23T17:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create column based on difference between two dates from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-column-based-on-difference-between-two-dates-from-two/m-p/1918196#M41562</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Many to Many relationship comment-&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will look into cleansing the data, but we recieve it with values that have duplicates, from Receipt ID to another version of Receipt ID. At the moment, we cannot cleanse it and must have it as Many-Many.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Formula-&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are trying to get the First Date from "Final Merger", and compare the date to Export Worksheet.&lt;BR /&gt;So for example, We have "Frist Date, which is June 23. We want to know the when the next workday is,&lt;BR /&gt;so we created a column in our Date Table to have the next work day.&lt;BR /&gt;We then want to compare if the date the product was received (Second Date) is on time or not on time.&lt;BR /&gt;Our goal was to do an Greater than if statement.&lt;/P&gt;&lt;P&gt;Another example below.&lt;/P&gt;&lt;P&gt;IF(Second Date&amp;gt;Next Workday),"Shipment has passed date","Shipment was received on time")&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Final Merger&lt;/TD&gt;&lt;TD&gt;Export Worksheet&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;First&lt;/TD&gt;&lt;TD&gt;Inventory Stored&lt;/TD&gt;&lt;TD&gt;Next Workday&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2021-02-10 0:00&lt;/TD&gt;&lt;TD&gt;2021-02-11 0:00&lt;/TD&gt;&lt;TD&gt;2021-02-11 0:00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 23 Jun 2021 18:15:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-column-based-on-difference-between-two-dates-from-two/m-p/1918196#M41562</guid>
      <dc:creator>Swiftglade</dc:creator>
      <dc:date>2021-06-23T18:15:30Z</dc:date>
    </item>
  </channel>
</rss>

