<?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: calculate from second row in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-from-second-row/m-p/1085003#M15480</link>
    <description>&lt;P&gt;I loaded your excel data into a table called Second, and made a table visual and this measure, and put it on a card.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;StartWithSecond = VAR filteredtable = FILTER('Second', 'Second'[Date]&amp;gt;min('Second'[Date]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return PRODUCTX(filteredtable, 1+'Second'[Value])-1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If this solution works for you, please mark it as the solution.&amp;nbsp; Kudos are appreciated too.&amp;nbsp; Please let me know if not.&lt;BR /&gt;Regards,&lt;BR /&gt;Pat&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 12 May 2020 01:01:21 GMT</pubDate>
    <dc:creator>mahoneypat</dc:creator>
    <dc:date>2020-05-12T01:01:21Z</dc:date>
    <item>
      <title>calculate from second row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-from-second-row/m-p/1084929#M15474</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to calculate a formula taking into account data from the second row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I show you an example in excel:&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;I have a filter in Power BI by date, which will select the numbers. Then I must apply that formula from the second row.&lt;/P&gt;&lt;P&gt;This means: data must be selected from the next day the filter was selected. In the example above, the user would select in the date slicer from 7 to 14 of May, so data must be calculated from 8 to 14th of May.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I calculated an index column in Power Query. And a "first row" measure which selects the index for the first row:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;First row = CALCULATE(MIN('Return'[Índice]); FILTER('Return'; LASTNONBLANK('Return'[Índice]; true())))&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Then I calculated a column:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Column = CALCULATE(SUM('Return'[Return])+1; ALLSELECTED('Return'[Date])&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Then I tried to calculate that product:&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Measure = CALCULATE( PRODUCT('Return'[Columna])-1)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am not able to include a filter to ignore the first row and start calculate from the second one. I tried "earlier", all kinds of filters, I just can't get to it.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you in advance! Any advice is very much appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 May 2020 23:07:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-from-second-row/m-p/1084929#M15474</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-11T23:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: calculate from second row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-from-second-row/m-p/1085003#M15480</link>
      <description>&lt;P&gt;I loaded your excel data into a table called Second, and made a table visual and this measure, and put it on a card.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;StartWithSecond = VAR filteredtable = FILTER('Second', 'Second'[Date]&amp;gt;min('Second'[Date]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return PRODUCTX(filteredtable, 1+'Second'[Value])-1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If this solution works for you, please mark it as the solution.&amp;nbsp; Kudos are appreciated too.&amp;nbsp; Please let me know if not.&lt;BR /&gt;Regards,&lt;BR /&gt;Pat&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 May 2020 01:01:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-from-second-row/m-p/1085003#M15480</guid>
      <dc:creator>mahoneypat</dc:creator>
      <dc:date>2020-05-12T01:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: calculate from second row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-from-second-row/m-p/1085446#M15496</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="226208" data-lia-user-login="mahoneypat" class="lia-mention lia-mention-user"&gt;mahoneypat&lt;/a&gt;&amp;nbsp;!!&lt;/P&gt;&lt;P&gt;I was really complicating myself with collumns and so on... It works wonderfully!! Thanks again!&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 06:45:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-from-second-row/m-p/1085446#M15496</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-12T06:45:14Z</dc:date>
    </item>
  </channel>
</rss>

