<?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 subtraction between the two date with filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/subtraction-between-the-two-date-with-filters/m-p/1691912#M34787</link>
    <description>&lt;P&gt;&lt;SPAN&gt;HELLO, HELP ME PLEASE! I have a table and I would like to do the subtraction between the two rows of dates that I have selected (in gray).&amp;nbsp;But I would have to take the first date with the status "NEW" and the first date with and status "FEASIBILITY ERROR" and make the difference.I want to filter only on messages that contain "322".&amp;nbsp;&amp;nbsp;and finally I would like to do this with client 1 / Value 1, client 1 / Value 2 etc, Client 2 / value 1, 2,3 etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank's a lot for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2021 10:54:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-02-26T10:54:57Z</dc:date>
    <item>
      <title>subtraction between the two date with filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/subtraction-between-the-two-date-with-filters/m-p/1691912#M34787</link>
      <description>&lt;P&gt;&lt;SPAN&gt;HELLO, HELP ME PLEASE! I have a table and I would like to do the subtraction between the two rows of dates that I have selected (in gray).&amp;nbsp;But I would have to take the first date with the status "NEW" and the first date with and status "FEASIBILITY ERROR" and make the difference.I want to filter only on messages that contain "322".&amp;nbsp;&amp;nbsp;and finally I would like to do this with client 1 / Value 1, client 1 / Value 2 etc, Client 2 / value 1, 2,3 etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank's a lot for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 10:54:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/subtraction-between-the-two-date-with-filters/m-p/1691912#M34787</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-26T10:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: subtraction between the two date with filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/subtraction-between-the-two-date-with-filters/m-p/1691959#M34792</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try a measure like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure = &lt;BR /&gt;VAR __id = MAX ('Table'[compte] )&lt;BR /&gt;VAR __date1 = CALCULATE ( MAX('Table'[Date] ), ALLSELECTED ('Table' ), 'Table'[compte] = __id &amp;amp;&amp;amp; 'Table'[Status] = "NEW" &amp;amp;&amp;amp; search("322",'Table'[message],,0)&amp;gt;0) &lt;BR /&gt;VAR __date2 = CALCULATE ( MAX('Table'[Date] ), ALLSELECTED ('Table' ), 'Table'[compte] = __id &amp;amp;&amp;amp; 'Table'[Status] = "FEASIBILITY ERROR" &amp;amp;&amp;amp; search("322",'Table'[message],,0)&amp;gt;0) &lt;BR /&gt;return &lt;BR /&gt;datediff( CALCULATE ( min ('Table'[Date] ), VALUES ('Table'[compte] ),'Table'[compte] = __id,'Table'[Date] &amp;gt;= __date1 &amp;amp;&amp;amp; 'Table'[Status] = "NEW" &amp;amp;&amp;amp; search("322",'Table'[message],,0)&amp;gt;0 ) , CALCULATE ( min ('Table'[Date] ), VALUES ('Table'[compte] ),'Table'[compte] = __id,'Table'[Date] &amp;gt;= __date2 &amp;amp;&amp;amp; 'Table'[Status] = "FEASIBILITY ERROR" &amp;amp;&amp;amp; search("322",'Table'[message],,0)&amp;gt;0),day)&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 11:12:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/subtraction-between-the-two-date-with-filters/m-p/1691959#M34792</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-02-26T11:12:58Z</dc:date>
    </item>
  </channel>
</rss>

