<?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 datediff for first dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datediff-for-first-dates/m-p/1523939#M29783</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to calculate the time difference (datediff) in days between two dates: Timestamp and Date (blue). But I want to calculate this difference for the first date of date, for every IDs. If it is not the first date, it should return an empty value.&lt;/P&gt;&lt;P&gt;An example:&lt;/P&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;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Mon, 30 Nov 2020 10:39:17 GMT</pubDate>
    <dc:creator>Ley022</dc:creator>
    <dc:date>2020-11-30T10:39:17Z</dc:date>
    <item>
      <title>datediff for first dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datediff-for-first-dates/m-p/1523939#M29783</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to calculate the time difference (datediff) in days between two dates: Timestamp and Date (blue). But I want to calculate this difference for the first date of date, for every IDs. If it is not the first date, it should return an empty value.&lt;/P&gt;&lt;P&gt;An example:&lt;/P&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;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 10:39:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datediff-for-first-dates/m-p/1523939#M29783</guid>
      <dc:creator>Ley022</dc:creator>
      <dc:date>2020-11-30T10:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: datediff for first dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datediff-for-first-dates/m-p/1523974#M29787</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="244711" data-lia-user-login="Ley022" class="lia-mention lia-mention-user"&gt;Ley022&lt;/a&gt; , Logic is not very clear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try like&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;new column =&lt;BR /&gt;var _min = minx(filter(table,[Id] =earlier([ID])),[Date])&lt;BR /&gt;return &lt;BR /&gt;if([Date]=_min , datediff([date], [timestamp], day), blank())&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 11:00:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datediff-for-first-dates/m-p/1523974#M29787</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-30T11:00:52Z</dc:date>
    </item>
  </channel>
</rss>

