<?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: Date Diff between Created Date and Closing Date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Diff-between-Created-Date-and-Closing-Date/m-p/2778281#M86844</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="412207" data-lia-user-login="Alicia83B" class="lia-mention lia-mention-user"&gt;Alicia83B&lt;/a&gt;&amp;nbsp;Try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Time to Close (Days) = ( MAX(Opportunities[closingdate]) - MIN(Opportunities[createdtime]) ) * 1.&lt;/LI-CODE&gt;
&lt;P&gt;Also, you are missing a ) right before ", DAY" and so then have an extra ) at the end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2022 16:41:24 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2022-09-19T16:41:24Z</dc:date>
    <item>
      <title>Date Diff between Created Date and Closing Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Diff-between-Created-Date-and-Closing-Date/m-p/2778265#M86841</link>
      <description>&lt;P&gt;I am trying to calculate the length of time between an opportunity created date and closing date. I am using the below measure, but I get an error&amp;nbsp; "Too few arguments were passed to the DATEDIFF function. The minimum argument count for the function is 3. I have never used this function before and have followed what I have seen in other formum examples with no resolution. Can someone direct me on how to correct the error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Time to Close (Days) = &lt;/SPAN&gt;&lt;SPAN&gt;DATEDIFF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;(Opportunities[createdtime]), &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(Opportunities[closingdate], DAY))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you in advance for looking at my post.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 16:37:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Diff-between-Created-Date-and-Closing-Date/m-p/2778265#M86841</guid>
      <dc:creator>Alicia83B</dc:creator>
      <dc:date>2022-09-19T16:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Date Diff between Created Date and Closing Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Diff-between-Created-Date-and-Closing-Date/m-p/2778281#M86844</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="412207" data-lia-user-login="Alicia83B" class="lia-mention lia-mention-user"&gt;Alicia83B&lt;/a&gt;&amp;nbsp;Try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Time to Close (Days) = ( MAX(Opportunities[closingdate]) - MIN(Opportunities[createdtime]) ) * 1.&lt;/LI-CODE&gt;
&lt;P&gt;Also, you are missing a ) right before ", DAY" and so then have an extra ) at the end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 16:41:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Diff-between-Created-Date-and-Closing-Date/m-p/2778281#M86844</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-09-19T16:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Date Diff between Created Date and Closing Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Diff-between-Created-Date-and-Closing-Date/m-p/2778294#M86848</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp; Hi Greg, thanks for the reply. This did not work. I have a red swiggly line under the ) before *1&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 16:47:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Diff-between-Created-Date-and-Closing-Date/m-p/2778294#M86848</guid>
      <dc:creator>Alicia83B</dc:creator>
      <dc:date>2022-09-19T16:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Date Diff between Created Date and Closing Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Diff-between-Created-Date-and-Closing-Date/m-p/2778308#M86851</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="412207" data-lia-user-login="Alicia83B" class="lia-mention lia-mention-user"&gt;Alicia83B&lt;/a&gt;&amp;nbsp;Did you miss the leading ( ? Also, probably need single quotes around your table names:&lt;/P&gt;
&lt;P&gt;Time to Close (Days) = &lt;FONT size="4"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/FONT&gt; MAX('Opportunities'[closingdate]) - MIN('Opportunities'[createdtime]) ) * 1.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 16:54:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Diff-between-Created-Date-and-Closing-Date/m-p/2778308#M86851</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-09-19T16:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date Diff between Created Date and Closing Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Diff-between-Created-Date-and-Closing-Date/m-p/2778320#M86852</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp; Below is what I have for the measure. Still not working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Time to Close (Days) = &lt;/SPAN&gt;&lt;SPAN&gt;DATEDIFF&lt;/SPAN&gt;&lt;SPAN&gt;( (&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Opportunities'&lt;/SPAN&gt;&lt;SPAN&gt;[closingdate]&lt;/SPAN&gt;&lt;SPAN&gt;) - &lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Opportunities'&lt;/SPAN&gt;&lt;SPAN&gt;[createdtime]&lt;/SPAN&gt;&lt;SPAN&gt;) ) * &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 19 Sep 2022 16:59:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Diff-between-Created-Date-and-Closing-Date/m-p/2778320#M86852</guid>
      <dc:creator>Alicia83B</dc:creator>
      <dc:date>2022-09-19T16:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Date Diff between Created Date and Closing Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Diff-between-Created-Date-and-Closing-Date/m-p/2778452#M86864</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="412207" data-lia-user-login="Alicia83B" class="lia-mention lia-mention-user"&gt;Alicia83B&lt;/a&gt;&amp;nbsp;No, forget about the DATEDIFF, you don't need it, use the actual formula I provided. It is a 100% complete formula. Dates are decimal numbers where the integer portion is the number of days since 12/30/1899. So all you have to do is subtract them and multiply by 1. to make sure you return a number instead of a date.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 17:57:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Diff-between-Created-Date-and-Closing-Date/m-p/2778452#M86864</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-09-19T17:57:53Z</dc:date>
    </item>
  </channel>
</rss>

