<?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: YTD Sales - exlude data with future date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-Sales-exlude-data-with-future-date/m-p/4125130#M163804</link>
    <description>&lt;P&gt;You can try the TOTALYTD or DATESYTD functions. Eg:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MeasureName = CALCULATE(SUM('Table'[Values]),DATESYTD('Calendar'[Date]=TODAY()))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you~&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2024 13:48:05 GMT</pubDate>
    <dc:creator>xifeng_L</dc:creator>
    <dc:date>2024-08-29T13:48:05Z</dc:date>
    <item>
      <title>YTD Sales - exlude data with future date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-Sales-exlude-data-with-future-date/m-p/4125022#M163797</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get YTD value of a column (service fees). I have calender column and the YTD sum looks to work fine but it is summing all values.&lt;/P&gt;&lt;P&gt;My issue is that there is data in there with renewal date in the future. Eg today is 29th August i just want to see the sum of service fees from 1st Jan until today ( i want to exclude any with future renewal date if that makes sense)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how i can do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Johnny&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 12:58:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-Sales-exlude-data-with-future-date/m-p/4125022#M163797</guid>
      <dc:creator>JohnnyC</dc:creator>
      <dc:date>2024-08-29T12:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Sales - exlude data with future date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-Sales-exlude-data-with-future-date/m-p/4125104#M163803</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The&amp;nbsp; DAX is as below based on what you have asked. I am assuming there is no groupby or other filters to take care.&lt;/P&gt;&lt;P&gt;YTD =&lt;/P&gt;&lt;P&gt;calculate(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(table[values]),All(Table),table[date]&amp;gt;=date(2024,1,1)&amp;amp;&amp;amp;Table[date]&amp;lt;=today()&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 13:36:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-Sales-exlude-data-with-future-date/m-p/4125104#M163803</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2024-08-29T13:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Sales - exlude data with future date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-Sales-exlude-data-with-future-date/m-p/4125130#M163804</link>
      <description>&lt;P&gt;You can try the TOTALYTD or DATESYTD functions. Eg:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MeasureName = CALCULATE(SUM('Table'[Values]),DATESYTD('Calendar'[Date]=TODAY()))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you~&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 13:48:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-Sales-exlude-data-with-future-date/m-p/4125130#M163804</guid>
      <dc:creator>xifeng_L</dc:creator>
      <dc:date>2024-08-29T13:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Sales - exlude data with future date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-Sales-exlude-data-with-future-date/m-p/4125147#M163806</link>
      <description>&lt;P&gt;that's it - I've been all morning trying to get that (i'm not an IT guy but learning). thanks a mil&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 14:00:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-Sales-exlude-data-with-future-date/m-p/4125147#M163806</guid>
      <dc:creator>JohnnyC</dc:creator>
      <dc:date>2024-08-29T14:00:14Z</dc:date>
    </item>
  </channel>
</rss>

