<?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: MTD, QTD and YTD slicers on cumulative values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-QTD-and-YTD-slicers-on-cumulative-values/m-p/3827432#M149643</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hope this fulfills your ask. You may use same concept in quarter calculation as MTD going forward.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2024 12:54:24 GMT</pubDate>
    <dc:creator>Rupak_bi</dc:creator>
    <dc:date>2024-04-10T12:54:24Z</dc:date>
    <item>
      <title>MTD, QTD and YTD slicers on cumulative values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-QTD-and-YTD-slicers-on-cumulative-values/m-p/3826950#M149629</link>
      <description>&lt;P&gt;i have a dataset as follows.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Month&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Particulars&lt;/TD&gt;&lt;TD&gt;Amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan-24&lt;/TD&gt;&lt;TD&gt;Sales&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Feb-24&lt;/TD&gt;&lt;TD&gt;Sales&lt;/TD&gt;&lt;TD&gt;220&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mar-24&lt;/TD&gt;&lt;TD&gt;Sales&lt;/TD&gt;&lt;TD&gt;350&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan-24&lt;/TD&gt;&lt;TD&gt;cogs&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Feb-24&lt;/TD&gt;&lt;TD&gt;cogs&lt;/TD&gt;&lt;TD&gt;170&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mar-24&lt;/TD&gt;&lt;TD&gt;cogs&lt;/TD&gt;&lt;TD&gt;240&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan-24&lt;/TD&gt;&lt;TD&gt;Salary&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Feb-24&lt;/TD&gt;&lt;TD&gt;Salary&lt;/TD&gt;&lt;TD&gt;135&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mar-24&lt;/TD&gt;&lt;TD&gt;Salary&lt;/TD&gt;&lt;TD&gt;255&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the values are cumulative.&lt;/P&gt;&lt;P&gt;When i select MTD for the month of mar'24, i want values of mar'24 - feb '24. for examp-le, sales for march'24 is 350-220.&lt;/P&gt;&lt;P&gt;when i select QTD, i want values of Mar'24 alone since it is cumulative. if the period is till Jun'24, then QTD selection should be Jun'24-Mar'24.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me with DAX and if possible upload a sample power bi file.&lt;/P&gt;&lt;P&gt;Can anyone help me with dax formula, please.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 11:13:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-QTD-and-YTD-slicers-on-cumulative-values/m-p/3826950#M149629</guid>
      <dc:creator>dataskience</dc:creator>
      <dc:date>2024-04-10T11:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: MTD, QTD and YTD slicers on cumulative values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-QTD-and-YTD-slicers-on-cumulative-values/m-p/3827380#M149642</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="721732" data-lia-user-login="dataskience" class="lia-mention lia-mention-user"&gt;dataskience&lt;/a&gt;&amp;nbsp;It may be easier for you to add a calculated column that gives you the monthly values first and then standard patterns will work.&amp;nbsp;See my article on Mean Time Between Failure (MTBF) which uses EARLIER: &lt;A href="http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/339586" target="_blank"&gt;http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/339586&lt;/A&gt;.&lt;BR /&gt;The basic pattern is:&lt;BR /&gt;Column =&amp;nbsp;&lt;BR /&gt;&amp;nbsp; VAR __Current = [Value]&lt;BR /&gt;&amp;nbsp; VAR __PreviousDate = MAXX(FILTER('Table','Table'[Date] &amp;lt; EARLIER('Table'[Date])),[Date])&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; VAR __Previous = MAXX(FILTER('Table',[Date]=__PreviousDate),[Value])&lt;BR /&gt;RETURN&lt;BR /&gt;&amp;nbsp;( __Current - __Previous ) * 1.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 12:46:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-QTD-and-YTD-slicers-on-cumulative-values/m-p/3827380#M149642</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-04-10T12:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: MTD, QTD and YTD slicers on cumulative values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-QTD-and-YTD-slicers-on-cumulative-values/m-p/3827432#M149643</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hope this fulfills your ask. You may use same concept in quarter calculation as MTD going forward.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 12:54:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-QTD-and-YTD-slicers-on-cumulative-values/m-p/3827432#M149643</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2024-04-10T12:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: MTD, QTD and YTD slicers on cumulative values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-QTD-and-YTD-slicers-on-cumulative-values/m-p/3827657#M149650</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;since there are many line items and multiple columns, the values are not calculated correctly.&lt;/P&gt;&lt;P&gt;Can you please provide a formula that will consider the value based on other column values also.&lt;/P&gt;&lt;P&gt;please&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 13:29:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-QTD-and-YTD-slicers-on-cumulative-values/m-p/3827657#M149650</guid>
      <dc:creator>dataskience</dc:creator>
      <dc:date>2024-04-10T13:29:24Z</dc:date>
    </item>
  </channel>
</rss>

