<?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 Get the MIN dates from two dates tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-MIN-dates-from-two-dates-tables/m-p/2658137#M78697</link>
    <description>&lt;P&gt;Hello folks, hope you all doing great!!&lt;BR /&gt;&lt;BR /&gt;I need a little help with below if someone can))&lt;BR /&gt;&lt;BR /&gt;I have two dates table and I want to get the MIN between them to use it in a slicer.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Background of the issue:&lt;/STRONG&gt; I have two tables dates columns and some data, there is a calculation running on both data tables to DIVIDE some values between those tables, the problem is the data entry happens in in different dates and the period is unknown ( manual entry), so I can't use IF date less than 3 days for example to slice, that cuz the calculation to become zeros.&lt;BR /&gt;&lt;BR /&gt;I want my calculation only runs and show data if there is a data in both tables in the same dates&lt;BR /&gt;&lt;STRONG&gt;For example:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Prod (first table)&lt;/TD&gt;&lt;TD&gt;Loss ( in second table)&lt;/TD&gt;&lt;TD&gt;&lt;EM&gt;&lt;STRONG&gt;MIN&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;14/03/2022&lt;/TD&gt;&lt;TD&gt;20/03/2022&lt;/TD&gt;&lt;TD&gt;14/03/2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20/03/2022&lt;/TD&gt;&lt;TD&gt;20/03/2022&lt;/TD&gt;&lt;TD&gt;20/03/2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20/03/2022&lt;/TD&gt;&lt;TD&gt;14/03/2022&lt;/TD&gt;&lt;TD&gt;14/03/2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;14/03/2022&lt;/TD&gt;&lt;TD&gt;14/03/2022&lt;/TD&gt;&lt;TD&gt;14/03/2022&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;how can I get the MIN date column ?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jul 2022 06:24:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-07-25T06:24:50Z</dc:date>
    <item>
      <title>Get the MIN dates from two dates tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-MIN-dates-from-two-dates-tables/m-p/2658137#M78697</link>
      <description>&lt;P&gt;Hello folks, hope you all doing great!!&lt;BR /&gt;&lt;BR /&gt;I need a little help with below if someone can))&lt;BR /&gt;&lt;BR /&gt;I have two dates table and I want to get the MIN between them to use it in a slicer.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Background of the issue:&lt;/STRONG&gt; I have two tables dates columns and some data, there is a calculation running on both data tables to DIVIDE some values between those tables, the problem is the data entry happens in in different dates and the period is unknown ( manual entry), so I can't use IF date less than 3 days for example to slice, that cuz the calculation to become zeros.&lt;BR /&gt;&lt;BR /&gt;I want my calculation only runs and show data if there is a data in both tables in the same dates&lt;BR /&gt;&lt;STRONG&gt;For example:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Prod (first table)&lt;/TD&gt;&lt;TD&gt;Loss ( in second table)&lt;/TD&gt;&lt;TD&gt;&lt;EM&gt;&lt;STRONG&gt;MIN&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;14/03/2022&lt;/TD&gt;&lt;TD&gt;20/03/2022&lt;/TD&gt;&lt;TD&gt;14/03/2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20/03/2022&lt;/TD&gt;&lt;TD&gt;20/03/2022&lt;/TD&gt;&lt;TD&gt;20/03/2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20/03/2022&lt;/TD&gt;&lt;TD&gt;14/03/2022&lt;/TD&gt;&lt;TD&gt;14/03/2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;14/03/2022&lt;/TD&gt;&lt;TD&gt;14/03/2022&lt;/TD&gt;&lt;TD&gt;14/03/2022&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;how can I get the MIN date column ?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 06:24:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-MIN-dates-from-two-dates-tables/m-p/2658137#M78697</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-25T06:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get the MIN dates from two dates tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-MIN-dates-from-two-dates-tables/m-p/2658222#M78706</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , a new column &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Date new = Min([Date1], [Date2])&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 07:04:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-MIN-dates-from-two-dates-tables/m-p/2658222#M78706</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-07-25T07:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get the MIN dates from two dates tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-MIN-dates-from-two-dates-tables/m-p/2669019#M79512</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please try below steps:&lt;/P&gt;
&lt;P&gt;1.add a index column to two table in Power Query, and then create a mode&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.add a new column “Loss_Table2” in Table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Loss_Table2 = RELATED('Table (2)'[Loss])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;3.add a new column “Min_Date” to get the min date between “Prod” and “Loss_table2”&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Min_Date = Min('Table'[Prod],'Table'[Loss_Table2])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Binbin Yu&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 08:54:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-MIN-dates-from-two-dates-tables/m-p/2669019#M79512</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-29T08:54:32Z</dc:date>
    </item>
  </channel>
</rss>

