<?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: substraction in previous rows on a current filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/substraction-in-previous-rows-on-a-current-filter/m-p/3153597#M113039</link>
    <description>&lt;P&gt;You would use the OFFSET function for that. Give it a try.&lt;/P&gt;</description>
    <pubDate>Sat, 25 Mar 2023 01:35:14 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2023-03-25T01:35:14Z</dc:date>
    <item>
      <title>substraction in previous rows on a current filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/substraction-in-previous-rows-on-a-current-filter/m-p/3149728#M112795</link>
      <description>&lt;P&gt;i am trying to subtract previous lines to get the number of seconds of two times. i always need the calculation for my selected filter as my data set is too large and an error message comes up. i always need the calculation of times for my selected view based on the filters not for the complete file.&amp;nbsp;&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 12:44:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/substraction-in-previous-rows-on-a-current-filter/m-p/3149728#M112795</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-23T12:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: substraction in previous rows on a current filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/substraction-in-previous-rows-on-a-current-filter/m-p/3153597#M113039</link>
      <description>&lt;P&gt;You would use the OFFSET function for that. Give it a try.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2023 01:35:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/substraction-in-previous-rows-on-a-current-filter/m-p/3153597#M113039</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-03-25T01:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: substraction in previous rows on a current filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/substraction-in-previous-rows-on-a-current-filter/m-p/3154951#M113137</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
var _last=
MAXX(
    FILTER(ALLSELECTED('Table'),
    'Table'[Date1]&amp;lt;MAX('Table'[Date1])),[Date1])
return
DATEDIFF(
    _last,MAX('Table'[Date1]),SECOND)&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;Before filtering:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After filtering:&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;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 02:24:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/substraction-in-previous-rows-on-a-current-filter/m-p/3154951#M113137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-27T02:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: substraction in previous rows on a current filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/substraction-in-previous-rows-on-a-current-filter/m-p/3171044#M114296</link>
      <description>&lt;P&gt;can you tell me also how i can calculate the average time of the row?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your help&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 07:49:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/substraction-in-previous-rows-on-a-current-filter/m-p/3171044#M114296</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-04T07:49:22Z</dc:date>
    </item>
  </channel>
</rss>

