<?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: Show Total amount from the beginning irrespective of date slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Total-amount-from-the-beginning-irrespective-of-date-slicer/m-p/1582309#M31620</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;Try these&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Amount = 
    CALCULATE(
        SUM(Amounts[Amount]),
        VALUES('Calendar'[Date])
    )

Product Total = 
    CALCULATE(
        SUM(Amounts[Amount]),
        FILTER(
            ALL(Amounts[Product]),
            Amounts[Product] = SELECTEDVALUE(Products[Product])
        ),
        FILTER(
            ALL('Calendar'[Date]),
            'Calendar'[Date] &amp;lt;= MAX('Calendar'[Date])
        )
    )

Net Amount = [Product Total] - [Total Amount]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Results...&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jan 2021 15:11:54 GMT</pubDate>
    <dc:creator>littlemojopuppy</dc:creator>
    <dc:date>2021-01-05T15:11:54Z</dc:date>
    <item>
      <title>Show Total amount from the beginning irrespective of date slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Total-amount-from-the-beginning-irrespective-of-date-slicer/m-p/1581897#M31602</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Following is my sample data,&lt;/P&gt;&lt;P&gt;Product&amp;nbsp; &amp;nbsp; &amp;nbsp;Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Amount&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10-01-2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1000&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;02-02-2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 500&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;21-03-2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 700&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;19-01-2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 500&lt;BR /&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11-02-2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1500&lt;BR /&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;23-03-2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 400&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my table visual i need these columns as follows and this my expected output,&lt;/P&gt;&lt;P&gt;Product&amp;nbsp; &amp;nbsp;Net Amount&amp;nbsp; Balance&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;500&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1500&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1500&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2000&lt;/P&gt;&lt;P&gt;In the report, i have selected range of date in between date slicer as from 01-02-2020 to 29-02-2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Net Amount is the sum of Amount between the selected date range. But, Balance is the sum of amount from the start date (first non blank value in the date column ie..10-01-2020) to the selected max date (ie...29-02-2020) in the between date slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I nedd a dax formula (measure) to calculate Balance of Amount.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 11:33:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Total-amount-from-the-beginning-irrespective-of-date-slicer/m-p/1581897#M31602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-05T11:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Show Total amount from the beginning irrespective of date slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Total-amount-from-the-beginning-irrespective-of-date-slicer/m-p/1582012#M31610</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try a measure like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;calculate(sum(Table[Value]), filter(all(Table), Table[Product] = max(Table[Product])))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If date is coming from a date table joined to this&lt;/P&gt;
&lt;P&gt;try like&lt;/P&gt;
&lt;P&gt;calculate(sum(Table[Value]), all(Date))&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 12:47:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Total-amount-from-the-beginning-irrespective-of-date-slicer/m-p/1582012#M31610</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-01-05T12:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Show Total amount from the beginning irrespective of date slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Total-amount-from-the-beginning-irrespective-of-date-slicer/m-p/1582309#M31620</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;Try these&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Amount = 
    CALCULATE(
        SUM(Amounts[Amount]),
        VALUES('Calendar'[Date])
    )

Product Total = 
    CALCULATE(
        SUM(Amounts[Amount]),
        FILTER(
            ALL(Amounts[Product]),
            Amounts[Product] = SELECTEDVALUE(Products[Product])
        ),
        FILTER(
            ALL('Calendar'[Date]),
            'Calendar'[Date] &amp;lt;= MAX('Calendar'[Date])
        )
    )

Net Amount = [Product Total] - [Total Amount]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Results...&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 15:11:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Total-amount-from-the-beginning-irrespective-of-date-slicer/m-p/1582309#M31620</guid>
      <dc:creator>littlemojopuppy</dc:creator>
      <dc:date>2021-01-05T15:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Show Total amount from the beginning irrespective of date slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Total-amount-from-the-beginning-irrespective-of-date-slicer/m-p/1582312#M31621</link>
      <description>&lt;P&gt;Assumes you have both a date table and a master products table.&amp;nbsp; You can &lt;A href="https://drive.google.com/file/d/1ttNYFg3ydZLJaUPuB8NbUAv2sY6CSB4N/view?usp=sharing" target="_self"&gt;download the pbix file here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 15:13:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Total-amount-from-the-beginning-irrespective-of-date-slicer/m-p/1582312#M31621</guid>
      <dc:creator>littlemojopuppy</dc:creator>
      <dc:date>2021-01-05T15:13:45Z</dc:date>
    </item>
  </channel>
</rss>

