<?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: Sum of value between two dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-value-between-two-dates/m-p/3447178#M131193</link>
    <description>&lt;P&gt;The problem was solved only by using&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CALCULATE(SUM(Sales[Quantity(KG)]), 'Date'[Date] &amp;lt;= MAX(Sales[Date]))&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 26 Sep 2023 06:46:54 GMT</pubDate>
    <dc:creator>stefani_vileva</dc:creator>
    <dc:date>2023-09-26T06:46:54Z</dc:date>
    <item>
      <title>Sum of value between two dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-value-between-two-dates/m-p/3447128#M131187</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calculate the total quantity between two dates, the problem is that all of the time I get only the sum of the current day shown in the column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CALCULATE(SUM(Sales[Quantity(KG)]), DATESBETWEEN('Sales'[Date], MINX(ALL('Date'[Date]), 'Date'[Date]), MAX(Sales[Date])))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to show this value in a matrix form where as rows I have products, and the columns are dates, for example&lt;/P&gt;&lt;P&gt;the data in the source file would be&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Product quantity&lt;/TD&gt;&lt;TD&gt;20.09.2023&lt;/TD&gt;&lt;TD&gt;21.09.2023&lt;/TD&gt;&lt;TD&gt;22.09.2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;120&lt;/TD&gt;&lt;TD&gt;50&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;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;20.09.2023&lt;/TD&gt;&lt;TD&gt;21.09.2023&lt;/TD&gt;&lt;TD&gt;22.09.2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;120&lt;/TD&gt;&lt;TD&gt;170&lt;/TD&gt;&lt;TD&gt;280&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Stefani&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 06:23:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-value-between-two-dates/m-p/3447128#M131187</guid>
      <dc:creator>stefani_vileva</dc:creator>
      <dc:date>2023-09-26T06:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of value between two dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-value-between-two-dates/m-p/3447178#M131193</link>
      <description>&lt;P&gt;The problem was solved only by using&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CALCULATE(SUM(Sales[Quantity(KG)]), 'Date'[Date] &amp;lt;= MAX(Sales[Date]))&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 26 Sep 2023 06:46:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-value-between-two-dates/m-p/3447178#M131193</guid>
      <dc:creator>stefani_vileva</dc:creator>
      <dc:date>2023-09-26T06:46:54Z</dc:date>
    </item>
  </channel>
</rss>

