<?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 with argument in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-with-argument/m-p/4109138#M163061</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looking for some help.&lt;/P&gt;&lt;P&gt;In my dataset I have 1 colum with a "create date" and 2 other colums "current" and "New". (This are serialnumbers.)&lt;/P&gt;&lt;P&gt;When In the table "current" a same number exist in the colum "New" I need to calculate the amount of days between the different days.&lt;/P&gt;&lt;P&gt;Anyone any idea to solve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thnx.&lt;BR /&gt;Jeffrey&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2024 12:22:32 GMT</pubDate>
    <dc:creator>Jeffrey_VC</dc:creator>
    <dc:date>2024-08-20T12:22:32Z</dc:date>
    <item>
      <title>Datediff with argument</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-with-argument/m-p/4109138#M163061</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looking for some help.&lt;/P&gt;&lt;P&gt;In my dataset I have 1 colum with a "create date" and 2 other colums "current" and "New". (This are serialnumbers.)&lt;/P&gt;&lt;P&gt;When In the table "current" a same number exist in the colum "New" I need to calculate the amount of days between the different days.&lt;/P&gt;&lt;P&gt;Anyone any idea to solve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thnx.&lt;BR /&gt;Jeffrey&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 12:22:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-with-argument/m-p/4109138#M163061</guid>
      <dc:creator>Jeffrey_VC</dc:creator>
      <dc:date>2024-08-20T12:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Datediff with argument</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-with-argument/m-p/4109240#M163068</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Create a Calculated Column for the Matching Serial Numbers: First, create a calculated column to identify the matching serial numbers between the “current” and “new” columns.&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV class="" tabindex="-1"&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;MatchingSerial = 
IF(
    'Table'[current] IN VALUES('Table'[new]),
    'Table'[current],
    BLANK()
)&lt;BUTTON type="button" aria-label="Copy"&gt;&lt;/BUTTON&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Create a Calculated Column for the Create Date of the Matching Serial Numbers: Next, create a calculated column to get the create date for the matching serial numbers.&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV class="" tabindex="-1"&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;MatchingCreateDate = 
CALCULATE(
    MAX('Table'[create date]),
    FILTER(
        'Table',
        'Table'[new] = EARLIER('Table'[current])
    )
)&lt;BUTTON type="button" aria-label="Copy"&gt;&lt;/BUTTON&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Create a Calculated Column for the Number of Days Between Dates: Finally, create a calculated column to calculate the number of days between the create dates.&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV class="" tabindex="-1"&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;DaysBetween = 
DATEDIFF(
    'Table'[create date],
    'Table'[MatchingCreateDate],
    DAY
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV class="" tabindex="-1"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 20 Aug 2024 13:29:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-with-argument/m-p/4109240#M163068</guid>
      <dc:creator>Kaviraj11</dc:creator>
      <dc:date>2024-08-20T13:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Datediff with argument</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-with-argument/m-p/4110729#M163142</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="663143" data-lia-user-login="Kaviraj11" class="lia-mention lia-mention-user"&gt;Kaviraj11&lt;/a&gt;&amp;nbsp; thnx this works for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 08:28:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-with-argument/m-p/4110729#M163142</guid>
      <dc:creator>Jeffrey_VC</dc:creator>
      <dc:date>2024-08-21T08:28:54Z</dc:date>
    </item>
  </channel>
</rss>

