<?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: ONLY FOR PBIX, DAX MASTERS! :) -&amp;gt; sum previous row value + current row value and merge it in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ONLY-FOR-PBIX-DAX-MASTERS-gt-sum-previous-row-value-current-row/m-p/779160#M4067</link>
    <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;many thanks for solution! It is what I need it..but is it possible to write here any comments? I want to implemented to my report and absolutely no idea how and what you set up..I see that steps on the right side, but it is very high level&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2019 13:30:39 GMT</pubDate>
    <dc:creator>ph</dc:creator>
    <dc:date>2019-08-29T13:30:39Z</dc:date>
    <item>
      <title>ONLY FOR PBIX, DAX MASTERS! :) -&gt; sum previous row value + current row value and merge it</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ONLY-FOR-PBIX-DAX-MASTERS-gt-sum-previous-row-value-current-row/m-p/778011#M4034</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have table with following values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Document type&lt;/TD&gt;&lt;TD&gt;Amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01.01.2019&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;02.01.2019&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03.01.2019&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;06.01.2019&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;09.01.2019&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12.01.2019&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each document type has some spaces in date (4,5,7,8,10,11 etc.. of Jan 2019 is missing, that's correct), but dimension DATE contains all values in year on each row, but document types not..&lt;BR /&gt;&lt;BR /&gt;I need to merge document types with each day in year for document type (1,2,3) and count previous value with current of the result of the day.. result should be this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01.01.2019&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;02.01.2019&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03.01.2019&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;04.01.2019&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;05.01.2019&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;06.01.2019&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;07.01.2019&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;08.01.2019&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;09.01.2019&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10.01.2019&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11.01.2019&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12.01.2019&lt;/TD&gt;&lt;TD&gt;110&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created calculated column in dimension DATE (because it contains all values), but I don know how to do SUM of previous row with current ROW...I created a measure where I sum all document types&lt;BR /&gt;(Total Amount= Measure 1 + Measure 2 +Measure 3)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;where&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Measure 1=&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CALCULATE(SUMX(Document; [Amount]);'Document Type'[Document Type]=1)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Measure 2=&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CALCULATE(SUMX(Document; [Amount]);'Document Type'[Document Type]=2)&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Measure 3=&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CALCULATE(SUMX(Document; [Amount]);'Document Type'[Document Type]=3)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;and I tried used 'earlier' in function in column&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Total Amount=Total Amount+earlier(Total Amount)&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;,but it does not works&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 14:50:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ONLY-FOR-PBIX-DAX-MASTERS-gt-sum-previous-row-value-current-row/m-p/778011#M4034</guid>
      <dc:creator>ph</dc:creator>
      <dc:date>2019-08-28T14:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: ONLY FOR PBIX, DAX MASTERS! :) -&gt; sum previous row value + current row value and merge it</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ONLY-FOR-PBIX-DAX-MASTERS-gt-sum-previous-row-value-current-row/m-p/778029#M4035</link>
      <description>Use Power Query for this. DAX is not the right tool for this kind of job. But if you like squeezing a square peg into a round hole... then DAX is the way to go :)&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;Darek</description>
      <pubDate>Wed, 28 Aug 2019 14:25:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ONLY-FOR-PBIX-DAX-MASTERS-gt-sum-previous-row-value-current-row/m-p/778029#M4035</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-28T14:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: ONLY FOR PBIX, DAX MASTERS! :) -&gt; sum previous row value + current row value and merge it</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ONLY-FOR-PBIX-DAX-MASTERS-gt-sum-previous-row-value-current-row/m-p/778031#M4036</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;OK..but my question is the same...how to do it?&lt;BR /&gt;in power query I don t see any measures etc..&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 28 Aug 2019 14:32:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ONLY-FOR-PBIX-DAX-MASTERS-gt-sum-previous-row-value-current-row/m-p/778031#M4036</guid>
      <dc:creator>ph</dc:creator>
      <dc:date>2019-08-28T14:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: ONLY FOR PBIX, DAX MASTERS! :) -&gt; sum previous row value + current row value and merge it</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ONLY-FOR-PBIX-DAX-MASTERS-gt-sum-previous-row-value-current-row/m-p/778893#M4061</link>
      <description>Bear with me a sec... I'm creating a solution. By the way, this stuff is best done in Power Query, not in DAX.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D.</description>
      <pubDate>Thu, 29 Aug 2019 08:56:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ONLY-FOR-PBIX-DAX-MASTERS-gt-sum-previous-row-value-current-row/m-p/778893#M4061</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-29T08:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: ONLY FOR PBIX, DAX MASTERS! :) -&gt; sum previous row value + current row value and merge it</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ONLY-FOR-PBIX-DAX-MASTERS-gt-sum-previous-row-value-current-row/m-p/778989#M4062</link>
      <description>&lt;P&gt;&lt;A href="https://1drv.ms/u/s!ApyQEauTSLtO6n17VLIV69_TTWjD?e=D3LdmQ" target="_self"&gt;OneDrive: How to create a running total for each day by document type&lt;/A&gt;&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>Thu, 29 Aug 2019 10:03:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ONLY-FOR-PBIX-DAX-MASTERS-gt-sum-previous-row-value-current-row/m-p/778989#M4062</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-29T10:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: ONLY FOR PBIX, DAX MASTERS! :) -&gt; sum previous row value + current row value and merge it</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ONLY-FOR-PBIX-DAX-MASTERS-gt-sum-previous-row-value-current-row/m-p/779160#M4067</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;many thanks for solution! It is what I need it..but is it possible to write here any comments? I want to implemented to my report and absolutely no idea how and what you set up..I see that steps on the right side, but it is very high level&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 13:30:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ONLY-FOR-PBIX-DAX-MASTERS-gt-sum-previous-row-value-current-row/m-p/779160#M4067</guid>
      <dc:creator>ph</dc:creator>
      <dc:date>2019-08-29T13:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: ONLY FOR PBIX, DAX MASTERS! :) -&gt; sum previous row value + current row value and merge it</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ONLY-FOR-PBIX-DAX-MASTERS-gt-sum-previous-row-value-current-row/m-p/779334#M4070</link>
      <description>&lt;P&gt;The OriginalData table is what you should import from your data source. The other tables were created using OriginalData as the source.&lt;BR /&gt;&lt;BR /&gt;OriginalData should have columns Date, DocType, Amount. In truth, they could have any names. It's just a matter of adjusting the names in the M code.&lt;BR /&gt;&lt;BR /&gt;The thing is you should first import your Original Data and then create the Calendar as I have in the file and then create the ProcessedData table that uses both: the Calendar and OriginalData.&lt;BR /&gt;&lt;BR /&gt;All the steps are there in the M code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you import your table into the file I gave you, delete the OriginalData and rename your imported table to OriginalData (and the columns will be the same with the same names as the table you've just deleted) the other tables will be there ready for you to use immediately.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 15:58:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ONLY-FOR-PBIX-DAX-MASTERS-gt-sum-previous-row-value-current-row/m-p/779334#M4070</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-29T15:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: ONLY FOR PBIX, DAX MASTERS! :) -&gt; sum previous row value + current row value and merge it</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ONLY-FOR-PBIX-DAX-MASTERS-gt-sum-previous-row-value-current-row/m-p/780315#M4104</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;thanks for it&lt;BR /&gt;&lt;BR /&gt;I also found an article how to do it in DAX and its works (&lt;A href="https://joyfulcraftsmen.com/blog/dax---cumulative-total-and-blank-handling/" target="_blank"&gt;https://joyfulcraftsmen.com/blog/dax---cumulative-total-and-blank-handling/&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;:)&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 14:07:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ONLY-FOR-PBIX-DAX-MASTERS-gt-sum-previous-row-value-current-row/m-p/780315#M4104</guid>
      <dc:creator>ph</dc:creator>
      <dc:date>2019-08-30T14:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: ONLY FOR PBIX, DAX MASTERS! :) -&gt; sum previous row value + current row value and merge it</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ONLY-FOR-PBIX-DAX-MASTERS-gt-sum-previous-row-value-current-row/m-p/780332#M4105</link>
      <description>Good advice: you should never do in DAX what you can do in Power Query if you want your model to run at the peak speed. Columns calculated in DAX are never compressed as well as the ones that come from Power Query. And compression plays a big role when the storage engine is calculating things for you in DAX.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D.</description>
      <pubDate>Fri, 30 Aug 2019 14:45:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ONLY-FOR-PBIX-DAX-MASTERS-gt-sum-previous-row-value-current-row/m-p/780332#M4105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-30T14:45:06Z</dc:date>
    </item>
  </channel>
</rss>

