<?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 TOTALSALESTODATE in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALSALESTODATE/m-p/3637751#M140775</link>
    <description>&lt;P&gt;Hi , is there a function that shows the sales u to date . For example , if my sales start at 1/1/2018 and&lt;/P&gt;&lt;P&gt;I select February 2013 I want to see the sales from 1/1/2018 till 28/2/2013.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 14 Jan 2024 20:29:52 GMT</pubDate>
    <dc:creator>vaso</dc:creator>
    <dc:date>2024-01-14T20:29:52Z</dc:date>
    <item>
      <title>TOTALSALESTODATE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALSALESTODATE/m-p/3637751#M140775</link>
      <description>&lt;P&gt;Hi , is there a function that shows the sales u to date . For example , if my sales start at 1/1/2018 and&lt;/P&gt;&lt;P&gt;I select February 2013 I want to see the sales from 1/1/2018 till 28/2/2013.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jan 2024 20:29:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALSALESTODATE/m-p/3637751#M140775</guid>
      <dc:creator>vaso</dc:creator>
      <dc:date>2024-01-14T20:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALSALESTODATE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALSALESTODATE/m-p/3637763#M140776</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="614341" data-lia-user-login="vaso" class="lia-mention lia-mention-user"&gt;vaso&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try this pattern:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales To Date = CALCULATE( [Sales Amount] , DATESYTD( 'Date'[Date] ) )&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 14 Jan 2024 20:43:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALSALESTODATE/m-p/3637763#M140776</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2024-01-14T20:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALSALESTODATE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALSALESTODATE/m-p/3640680#M140941</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="614341" data-lia-user-login="vaso" class="lia-mention lia-mention-user"&gt;vaso&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;Good share!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your question, here is the method I provided:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's some dummy data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Table"&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a measure.&amp;nbsp;You can calculate the total number based on the selection of slicers.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total values = 
    var select_date = 
        IF(
            ISFILTERED('Table'[Date]), 
            VALUES('Table'[Date]), 
            BLANK()
        )
RETURN 
    CALCULATE(
        SUM('Table'[values]), 
        FILTER(
            ALL('Table'), 
            'Table'[Date] &amp;lt;= select_date
        )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the result&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 09:53:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALSALESTODATE/m-p/3640680#M140941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-16T09:53:26Z</dc:date>
    </item>
  </channel>
</rss>

