<?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: Cumulative upto in Dax in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-upto-in-Dax/m-p/786276#M4331</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&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;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could I please kindly ask you to stop using EARLIER, which is a rather hard-to-understand function and confusing for newcomers, and use the modern and easy way to address previous row contexts? The way is called VARiables. EARLIER is a remnant of the past and should rest in peace.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D.&lt;/P&gt;</description>
    <pubDate>Sat, 07 Sep 2019 18:45:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-09-07T18:45:57Z</dc:date>
    <item>
      <title>Cumulative upto in Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-upto-in-Dax/m-p/786248#M4328</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I hope my query doesn't sound funny but I am trying to create a progress chart for the car usage per sequence ( trip ).&lt;BR /&gt;&lt;BR /&gt;Here is an example of how the table looks like and the last column is the result I am trying to generate using Dax.&lt;BR /&gt;&lt;BR /&gt;Sequence Car type Hours/Sequence&lt;BR /&gt;1 Toyota 5&lt;BR /&gt;2 Toyota 9&lt;BR /&gt;3 Toyota 1&lt;BR /&gt;4 Toyota 3&lt;BR /&gt;1 Ford 19&lt;BR /&gt;2 Ford 7&lt;BR /&gt;3 Ford 4&lt;BR /&gt;4 Ford 6&lt;BR /&gt;1 GMC 10&lt;BR /&gt;2 GMC 1&lt;BR /&gt;3 GMC 16&lt;BR /&gt;4 GMC 5&lt;BR /&gt;1 Nissan 7&lt;BR /&gt;2 Nissan 0&lt;BR /&gt;3 Nissan 3&lt;BR /&gt;4 Nissan 1&lt;BR /&gt;&lt;BR /&gt;And the additional generated column using DAX should look like this.&lt;BR /&gt;&lt;BR /&gt;Cumulative Hours upto this sequence&lt;BR /&gt;5&lt;BR /&gt;14&lt;BR /&gt;15&lt;BR /&gt;18&lt;BR /&gt;19&lt;BR /&gt;26&lt;BR /&gt;30&lt;BR /&gt;36&lt;BR /&gt;10&lt;BR /&gt;11&lt;BR /&gt;27&lt;BR /&gt;32&lt;BR /&gt;7&lt;BR /&gt;7&lt;BR /&gt;10&lt;BR /&gt;11&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Do you think its possible to create a Dax loop to distinguish between different car types and calculate the sum of hours up to each sequence.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 07 Sep 2019 16:58:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-upto-in-Dax/m-p/786248#M4328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-07T16:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative upto in Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-upto-in-Dax/m-p/786268#M4329</link>
      <description>&lt;P&gt;Right, you want to use EARLIER like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Column = 
VAR __table = FILTER(ALL('Table2'),[Car] = EARLIER([Car]) &amp;amp;&amp;amp; [Sequence] &amp;lt;= EARLIER([Sequence]))
RETURN SUMX(__table,[Hours])&lt;/PRE&gt;</description>
      <pubDate>Sat, 07 Sep 2019 18:10:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-upto-in-Dax/m-p/786268#M4329</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2019-09-07T18:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative upto in Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-upto-in-Dax/m-p/786276#M4331</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&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;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could I please kindly ask you to stop using EARLIER, which is a rather hard-to-understand function and confusing for newcomers, and use the modern and easy way to address previous row contexts? The way is called VARiables. EARLIER is a remnant of the past and should rest in peace.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Sep 2019 18:45:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-upto-in-Dax/m-p/786276#M4331</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-07T18:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative upto in Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-upto-in-Dax/m-p/786281#M4334</link>
      <description>&lt;P&gt;Dear&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly explain how does it work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 07 Sep 2019 19:19:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-upto-in-Dax/m-p/786281#M4334</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-07T19:19:41Z</dc:date>
    </item>
  </channel>
</rss>

