<?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: Need to subtract two date columns that are in different tables/queries in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-subtract-two-date-columns-that-are-in-different-tables/m-p/2372535#M60940</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="307422" data-lia-user-login="akhaliq7" class="lia-mention lia-mention-user"&gt;akhaliq7&lt;/a&gt; , You can do that using a common dimension &lt;/P&gt;
&lt;P&gt;This is an example for direct query but true for import mode too&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Decoding-Direct-Query-in-Power-BI-Part-2-Date-Difference-Across/ba-p/934397#M451" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Decoding-Direct-Query-in-Power-BI-Part-2-Date-Difference-Across/ba-p/934397#M451&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2022 12:03:39 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-03-03T12:03:39Z</dc:date>
    <item>
      <title>Need to subtract two date columns that are in different tables/queries</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-subtract-two-date-columns-that-are-in-different-tables/m-p/2372394#M60933</link>
      <description>&lt;P&gt;Hi I have very basic knowledge of dax but need to subtract two date fields that are stored in two different queries/tables. A calculated column is what I want to use as I want it to be part of my data model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example of it in SQL:&lt;/P&gt;&lt;P&gt;Trunc(table1.datecolumn) - Trunc(table2.datecolumn)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to store the column in table2 thanks&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 10:48:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-subtract-two-date-columns-that-are-in-different-tables/m-p/2372394#M60933</guid>
      <dc:creator>akhaliq7</dc:creator>
      <dc:date>2022-03-03T10:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need to subtract two date columns that are in different tables/queries</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-subtract-two-date-columns-that-are-in-different-tables/m-p/2372535#M60940</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="307422" data-lia-user-login="akhaliq7" class="lia-mention lia-mention-user"&gt;akhaliq7&lt;/a&gt; , You can do that using a common dimension &lt;/P&gt;
&lt;P&gt;This is an example for direct query but true for import mode too&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Decoding-Direct-Query-in-Power-BI-Part-2-Date-Difference-Across/ba-p/934397#M451" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Decoding-Direct-Query-in-Power-BI-Part-2-Date-Difference-Across/ba-p/934397#M451&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 12:03:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-subtract-two-date-columns-that-are-in-different-tables/m-p/2372535#M60940</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-03T12:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need to subtract two date columns that are in different tables/queries</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-subtract-two-date-columns-that-are-in-different-tables/m-p/2372572#M60945</link>
      <description>&lt;P&gt;Thats not what I am looking for.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 12:22:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-subtract-two-date-columns-that-are-in-different-tables/m-p/2372572#M60945</guid>
      <dc:creator>akhaliq7</dc:creator>
      <dc:date>2022-03-03T12:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need to subtract two date columns that are in different tables/queries</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-subtract-two-date-columns-that-are-in-different-tables/m-p/2372610#M60946</link>
      <description>&lt;P&gt;Hi Khalid&lt;BR /&gt;Can you provide more details about your tables? Any common or related columns between the two tables? Do both tables have the same number of rows?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 12:37:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-subtract-two-date-columns-that-are-in-different-tables/m-p/2372610#M60946</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-03T12:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need to subtract two date columns that are in different tables/queries</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-subtract-two-date-columns-that-are-in-different-tables/m-p/2372619#M60948</link>
      <description>&lt;P&gt;table2 is a fact table and table1 a dim table therefore they don't have the same number of rows, saleID is used to connect both tables&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 12:42:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-subtract-two-date-columns-that-are-in-different-tables/m-p/2372619#M60948</guid>
      <dc:creator>akhaliq7</dc:creator>
      <dc:date>2022-03-03T12:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need to subtract two date columns that are in different tables/queries</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-subtract-two-date-columns-that-are-in-different-tables/m-p/2372635#M60950</link>
      <description>&lt;P&gt;Then if the calculated column is in table2 then you can use RELATED to grap the date value from table1 so you can just sbtract Table2[Date] - RELATED ( Table1[Date] )&lt;BR /&gt;However if the calculated column is in table1 the you need to provide some kind of aggregation like MAX or MIN. Example: Table1[Date] - MAX ( RELATEDTABLE ( Table2[Date] ) )&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 12:50:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-subtract-two-date-columns-that-are-in-different-tables/m-p/2372635#M60950</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-03T12:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need to subtract two date columns that are in different tables/queries</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-subtract-two-date-columns-that-are-in-different-tables/m-p/2372740#M60960</link>
      <description>&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 13:50:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-subtract-two-date-columns-that-are-in-different-tables/m-p/2372740#M60960</guid>
      <dc:creator>akhaliq7</dc:creator>
      <dc:date>2022-03-03T13:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need to subtract two date columns that are in different tables/queries</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-subtract-two-date-columns-that-are-in-different-tables/m-p/2373022#M60982</link>
      <description>&lt;P&gt;That makes sense with the aggregation happening only in the dimension table. Thanks also I got the result I was looking for.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 15:35:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-subtract-two-date-columns-that-are-in-different-tables/m-p/2373022#M60982</guid>
      <dc:creator>akhaliq7</dc:creator>
      <dc:date>2022-03-03T15:35:06Z</dc:date>
    </item>
  </channel>
</rss>

